[PD] passing variables to an abstraction

Hans-Christoph Steiner hans at eds.org
Sun May 16 21:02:30 CEST 2004

Take a look at 3.audio.examples/D07.additive.pd in the Pd docs, (under  
the Help menu, select Pure Documentation...).  It does exactly this.


On May 12, 2004, at 9:43 AM, Al Riley wrote:

> I know this is probably a very simple query but I've
> looked through the documentation and haven't found the
> answer.
> I am programming a twenty osciallator additive synth
> with each partial being represented as a version of an
> identical abstraction. I can pass fixed numbers to
> each instance of the abstraction (e.g. I type "partial
> 5  6.33", and retrieve the numbers with "float $1"
> etc) in the object call.
> The problem is that the partial weightings are varied
> by the user in real-time so I need to pass this
> variable instead of a fixed number. There are twenty
> weighting values and the correct one has to be passed
> to the relevant instance of the abstraction. I
> initially tried a send object with the corresponding
> receive for each partial embedded in the relevant
> abstraction. I soon realised that changes to the
> abstraction wouldn't be saved so this method wouldn't
> work.
> Do I have to create twenty separate abstractions or is
> there a way round this?
> Hope this makes sense, Al.
> ____________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html
> _______________________________________________
> PD-list mailing list
> PD-list at iem.at
> to manage your subscription (including un-subscription) see
> http://iem.at/cgi-bin/mailman/listinfo/pd-list


"If nature has made any one thing less susceptible than all others of  
exclusive property, it is the action of the thinking power called an  
idea, which an individual may exclusively possess as long as he keeps  
it to himself; but the moment it is divulged, it forces itself into the  
possession of everyone, and the receiver cannot dispossess himself of  

                                                     - Thomas Jefferson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2204 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20040516/6ee44394/attachment.bin>

More information about the Pd-list mailing list