Hi! I've been searching for this for a while and feel like I need to ask here now I'm trying to paint an exponential curve in a table. I've done it before using tabwrite and a metro banging out a number feeding into x^2. But it's not fast nor reliable. What I'm looking for is a simple message to say set table to x^2. One click action sort of how the message ; array1 const 0 works. Is there a way to combine expressions and writing to tables in this manner?
-
Exponential curve in a table
-
Hi, I've done this recently with something like this for a table with index 0-127:
| 128 (
|
|until |
|
|f | x |+ 1|
|
|/ 127 |
|
|t f f|
| /
|* |
|
to tableYou'll need extra parts to reset the counter and update index for each iteration, but the 'until' object is great for filling tables with expressions, it does each iteration as fast as allowable.
If an actual patch would be helpful, let me know.
-
@bamsehopp If you do a file search for "exponential" in the Pd program folder (extended, and probably with Deken extensions) there are a few methods that have been patched.
David. -
Certainly! I've attached it.
yesplease.pd -
Just to be clear, x^2 is a quadratic, not an exponential function. 2^x is exponential. This won't change the method of populating the array though.
-
@LiamG thanks for clearing that up!