[PD] Preset system in pd?

Jonathan Wilkes jancsika at yahoo.com
Mon Oct 1 17:12:53 CEST 2012


As I wrote, I think you just implement linear interpolation.  Let the user insert other objects in the chain to build their own
curve.  To be specific about the example:


[hsl] <-- from 0 to 1

|

[recall $1(
|
[expr pow($f1-int($f1),2)+int($f1)]
|
[preset_hub]




>________________________________
> From: Ivica Ico Bukvic <ico at vt.edu>
>To: 'Jonathan Wilkes' <jancsika at yahoo.com>; 'flad chester' <flad.chester at gmail.com>; pd-list at iem.at 
>Sent: Monday, October 1, 2012 8:17 AM
>Subject: RE: [PD] Preset system in pd?
> 
>
>I thought you wanted values to interpolate between the origin and destination (making a curve over time). Finding a value between is trickier and may require some kind of implementation that belongs to preset_hub. Of course, then the question is how do you weigh such interpolation (or what function do you use?) and the next thing you know preset_hub has become expr and line and tons of other things in one, making it huge, redundant, and unwieldy to maintain. In other words, where do you draw the line? Will the linear interpolation be enough?
> 
> 
>From:Jonathan Wilkes [mailto:jancsika at yahoo.com] 
>Sent: Sunday, September 30, 2012 11:43 PM
>To: Ivica Ico Bukvic; 'flad chester'; pd-list at iem.at
>Subject: Re: [PD] Preset system in pd?
> 
>Hi Ivica,
>     I don't understand how [line] could fill in for interpolation between states.
>
>On the other hand, I don't think you would actually need all the interpolation
>states that pattrstorage provides.  If you just did linear interpolation by allowing
>to set the preset with a float (like 1.5) that is between two states, then the user
>could easily build all the interpolation schemes that pattrstorage's interp message
>provides simply by putting the necessary objects after [recall $1( .  For example,
>if you want a quartic curve you'd just do [expr pow($f1-int($f1), 2)+int($f1)] and
>then feed that into preset_hub.
>
>That of course wouldn't work for more complex stuff like cubic interpolation,
>but that is conspicuously absent in pattrstorage, too.
> 
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121001/10fe1fc8/attachment-0001.htm>


More information about the Pd-list mailing list