Loadbang and scripting

Gary Lee Nelson's icon

I created an object that uses patcherargs to collect parameters and
scripting to customize the insides. The cycle and Label (Peter Elsea)
objects are recreated depending on the number of items in the @parameter
arg.

Scplayer bubbles @parameters pit vel dur chan

Input is a list (len = 4 in this case) and output is a message suitable for
udpsend.

The object formats messages for supercollider synthdefs Arg #1 (bubbles) is
the name of the synthdef.

It works perfectly when a patch is loaded but if I edit the object to change
parameter count or names, the innards are not updated. I added a bang to do
this by hand but obviously it should be made automatic. Any suggestions?

Max Patch
Copy patch and select New From Clipboard in Max.

Cheers
Gary Lee Nelson
Oberlin College
www.timara.oberlin.edu/GaryLeeNelson

robotic-audio's icon

qlim is your friend,- just put it after the loadbang object (deferlow will do it too ;)

Emmanuel Jourdan's icon
Emmanuel Jourdan's icon
Gary Lee Nelson's icon
Mattijs's icon

Quote: Emmanuel Jourdan wrote on Sat, 03 February 2007 01:37
----------------------------------------------------
> For the synchronization, there's trigger. On my computer (4.6.x), the
> patcherargs send the argument of an abstraction at "loadbang"
> automatically. I don't need any extra loadbang object.
>
> Best,
> ej
>

Patcherargs outputs automatically, but after all loadbangs in a patch. The order in which loadbangs execute is not defined, idem for patcherargs.

I made a little abstraction that manages loading order without the need for trigger. Check the .help file in the zip and tell me if you like it.

Cheers,
Mattijs