[PD] using a constant without bang

Frank Barknecht fbar at footils.org
Fri Nov 21 19:14:28 CET 2008


Hallo,
Mike McGonagle hat gesagt: // Mike McGonagle wrote:

> On 11/21/08, Lao Yu <noise.now at gmail.com> wrote:
> > I'm on a resynth with a big number of oscillators inside
> > abstractions. each of these abstractions needs to have an input of a
> > constant by which controller input values are multiplied (in order to
> > obtain a different 'harmonic' per oscillator). once the system is
> > working it is ok to [loadbang] the [float] which I currently use to
> > store and recall the constant. however while I'm still developing I
> > need to close and re-open the patch at every change so that the
> > constant is reloaded. in addition, with 100+ abstractions the
> > additional cable connections from the [loadbang] object(s) make the
> > patch barely readable.
> >
> > I'm a beginner, on a more experienced level there may be ways to do
> > what I want to do with [pack] objects etc... but I can't do or
> > imagine that at this point.

This looks like a case for a dollar argument. Say you're abstraction
looks like this: 

  [inlet freq]  
  |
  [* CONSTANT_HARM]
  |
  [osc~]          [inlet amp]
  |               |
  [*~ CONSTANT_AMP]
  |
  [outlet~]

Then just replace it with this: 


  [inlet freq]  
  |
  [* $1]
  |
  [osc~] [inlet amp]
  |     /
  [*~ $2]
  |
  [outlet~]
 
and create your abstractions with

 [myosc~ 1 1]

 [myosc~ 2 0.9]
 
 [myosc~ 3.21 0.6]

and so on. You also can replace the inlets with receivers and the
outlets with [throw~] or even better use one of the poly-abstractions
like [polypoly] or the patches by Hans to automate things a bit. This
will give you massive time savings!

I also would recommend to test and develop with less object instances
than you will need in the final version to get shorter loading times
when doing changes to the abstraction.

Ciao
-- 
 Frank Barknecht            Do You RjDj.me?          _ ______footils.org__




More information about the Pd-list mailing list