Arg if abstraction, 1 if not?

    Dec 14 2011 | 6:04 pm
    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.
    Thanks! MH

    • Dec 14 2011 | 6:34 pm
      loadbang i #1 if $i1 == 0 then 25
    • Dec 14 2011 | 7:00 pm
      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 | 8:15 pm
      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.