Argument #0 - I didn't know that


    May 05 2006 | 12:41 pm
    I'm using #0 extensively in a new project to create unique send/receive and
    coll objects within instances of a patch. I discovered something new to me
    by accident. (I know, it's probably in the manual.) :-)
    It goes like this. #0 gets replaced bt a unique 4-digit number that can be
    used as part of the name for something created in a patch. It turns out
    that the same number is passed down to any subpatches created with the
    patcher object or encapsulation.
    I guess I am just getting old but things like this make me happy - like a
    cookie and warm milk.
    Make a new folder. Name this firehose and save it to that folder.
    Name this fireman and then put it in the same folder.
    When you open fireman, firehose and it's subpatcher get the same number in
    place of #0.
    NOTE: This doesn't work if the subpach "putoutfire" is saved as a separate
    file.
    Cheers,
    Gary Lee Nelson
    TIMARA Department
    Oberlin College
    www.timara.oberlin.edu/GaryLeeNelson

    • May 05 2006 | 2:55 pm
      Indeed.
      However, I wouldn't put money on the assumption that the ID number is
      always going to be four digits. They do currently appear to start at
      1000, so 8999 patchers later you'll be in trouble.
      nick rothwell -- composition, systems, performance -- http://
      www.cassiel.com
    • May 07 2006 | 9:57 pm
      Nick Rothwell wrote:
      > However, I wouldn't put money on the assumption that the ID number is
      > always going to be four digits. They do currently appear to start at
      > 1000, so 8999 patchers later you'll be in trouble.
      lost, I remeber I did a test, it will go on with 5 digit numbers.
      The behaviour Gary describes has been there forever, its the same with
      #1..#9 arguments in a [p ] they remain the same as in the main patcher.
      Stefan
      --
      [][] [][][] [][] [][][]
      [][][][][][][][][][][][][][][]
      Stefan Tiedje
      Klanggestalter
      Electronic Composition
      &
      Improvisation
      /~~~~~
      \ /|() ()|
      ))))) )| | |( \
      /// _/)/ )))))
      ___/ ///
      -------------------------x----
      --_____-----------|-----------
      --(_|_ ----|-----|-----()----
      -- _|_)----|-----()-----------
      ----------()------------x-----
      14, Av. Pr. Franklin Roosevelt,
      94320 Thiais, France
      Phone at CCMIX +33-1-57 42 91 09