#109 inlets for setting window size and period in env~

open
nobody
puredata (65)
5
2012-02-14
2012-02-14
sistisette
No

Even if one doesn't need to actually change them at any time, being able to set them at runtime through inlets is absolutely necessary if one wants them to be computed as a function of some of the containing patch's creation arguments.

At least untill we will be able to write expressions in creation arguments that would be evaluated at creation time. (but even then, we won't be able to write _programs_ in creation arguments!)

Imagine for example you want to make an abstraction that computes the amplitude of the signal and takes an approximate RATE (analysis per second) as creation argument. You just can't.

Discussion

  • Mathieu BOUCHARD

    BTW, you need not use [env~], you can use [*~] of the signal on itself, then [lop~] it with the level that you want, and then do [sqrt~] or [powtodb~]. Half of the time, I want a smooth continuous output, and that's what it gives.

    But [sqrt~] is broken in pd-extended 43, so you might need [expr~ sqrt($v1)] or [expr~ pow($v1,0.5)] instead.

     
  • sistisette

    sistisette - 2012-02-14

    Yeah I should have said "you just can't USING ENV" :)

     


Anonymous

Cancel  Add attachments