Hi!
Newby alert!
I try to resize a canvas(?) programmatically, but cant find a way.
So I do have a array named "accel" that has 3600 entries. This array is filled with [tabwrite accel(. Works so far.
The data of the array is displayed (works too), but getting the graph within the bounds is my problem.
The minimum and maximum values within the array do change, depending on different parameters. For example, they range from 0…6, or from -1200…2100 or any other odd values.
I tried using "normalize". That works, but only kind of and it isn't what I want. I have to keep the values unchanged for further processing.
So, I found [; accel bounds ...(.
Well, that would do it, but I cant get it working with variables.
What I'd like to send to the table accel is:
"accel bounds 0 aMin 3600 aMax".
Variables aMin and aMax were collected while the array was filled with data.
Trying "accel 0 $f1 3600 $f2" doesn't work either.
Sorry for the low level question. I started playing with Pd just a week ago.
Thanks for any help (that I hopefully understand).
Nick