Arg if abstraction, 1 if not?

Dec 14, 2011 at 6:04pm

Arg if abstraction, 1 if not?

I like to test my subpatches before adding them to the patch they’ll be in. I use args for a number of things, but when the patch is being tested I get errors like: [some object] doesn’t understand “#1″.

What is the best way to substitute args with default values in a subpatch running independently?

I don’t want to have to temporarily modify the patch, or manually trigger messages if possible.


Dec 14, 2011 at 6:34pm

i #1
if $i1 == 0 then 25

Dec 14, 2011 at 7:00pm

Roman’s method will work, but is a little “wordy.”

I think [patcherargs] will be your friend here, with the caveat that the arguments are offset by one if used as a subpatcher.

Dec 14, 2011 at 8:15pm

I was using #1 in a message instead of [i #1] so the if statement complained about not understanding me.

Thanks much for the advice. I’ll check patcherargs as well, I have not experimented with it yet.


You must be logged in to reply to this topic.