Forums > MaxMSP

Multiple Buffers in Abstraction

March 20, 2009 | 9:06 pm

Hey,

I have a patch with multiple instances of the same abstraction. This abstraction uses 2 buffers, one for a window function and one for osc waveform…

I want to be able to select different windows and waveforms for each instance using a umenu for each one to load it in but everytime I change one window or waveform, they all change in every version of the abstraction!

Is there a way around this?

Thanks a million!


March 20, 2009 | 9:21 pm

Give each buffer~ a different name.
For instance #0-cool-name. (#0 will be replaced by a unique number inside each instance).
Jean-François.


March 20, 2009 | 9:25 pm

Do you mean name each buffer in each instance of the abstraction differently?

I have 10 versions of graingen in my patch, with 2 buffers in each one called window and waveform.

Should I just create ten different versions of the abstraction and name the buffers slightly differently?

Thanks for the reply! Smile


March 20, 2009 | 10:26 pm

Sorry I get what u mean now. Thanks!


March 21, 2009 | 12:57 am

Well, in your subpatch to be inside poly~, you name #0-waveform, and #0-window or something like that.
Then, when the voices are instantiated, each instance gets automatically a different substitute for #0, thus a different name.
J-F.


March 21, 2009 | 11:27 am

Yep, working now! Thanks!


Viewing 6 posts - 1 through 6 (of 6 total)