• MuellerNick

    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

    posted in technical issues read more
  • MuellerNick

    Thanks for the answer (I have read it long ago, but didn't find time to try it).
    So, I'm coming back …

    I'm still a (supposedly) simple step missing:
    Writing
    [10 100(
    |
    [; accell bounds 0 $1 3600 $2(

    does work. I'd have to manually edit the "10" and "100" to fit my values and I get exactly what I want.
    Problem, the values for $1 and $2 were calculated and stored in variables. They are named aMin and aMax.
    So how do I get from
    [10 100(
    to something that does the same, except it fetches the lower and upper limit from aMin and aMax.
    [aMin aMax(
    doesn't work, the symbol and not it's values are sent. So I'm missing that simple step.
    I tried for two hours now and give up. :)

    TIA,
    Nick

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!