[PD] Preset system in pd?

Ivica Ico Bukvic ico at vt.edu
Mon Oct 1 14:17:03 CEST 2012


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/e92c2a38/attachment.htm>


More information about the Pd-list mailing list