instance value genrated by a #0 in a bpatcher ?


    Apr 26 2007 | 10:59 am
    bonjour,
    how to get the instance value generated by a #0 in a bpatcher ?
    how do i extract its value from an object such as a [send #0_something] so i can use this value outside of the bpatcher ?
    thanks in advance

    • Apr 26 2007 | 12:58 pm
      I don't know exactly what you're trying to do. Do you just want to get the number value from the bpatcher to be able to send messages to it? Here's an example:
      main patch:
      save as bpatch:
      One other thing: There must be a (any) character behind the #0 message, otherwise it doesn't work (you can try this).
      If you're using many bpatchers (as #0 suggests), you must build something to keep track of the numbers, use a coll for example.
    • Apr 26 2007 | 1:08 pm
      > One other thing: There must be a (any) character behind the #0 message, otherwise it doesn't work (you can try this).
      >
      > If you're using many bpatchers (as #0 suggests), you must build something to keep track of the numbers, use a coll for example.
      >
      >
      >
      ----------------------------------------------------
      thanks a lot that is exactly what i was aiming for and trying to do. and i of course forgot about adding a symbol after the #0 to get the instance value when loading as you did here :
      best,
    • Apr 26 2007 | 7:06 pm
      karl-otto von oertzen schrieb:
      > thanks a lot that is exactly what i was aiming for and trying to do.
      > and i of course forgot about adding a symbol after the #0 to get the
      > instance value when loading as you did here :
      And in case you need the #0 as number, you can do this:
      --
      Stefan Tiedje------------x-------
      --_____-----------|--------------
      --(_|_ ----|-----|-----()-------
      -- _|_)----|-----()--------------
      ----------()--------www.ccmix.com
    • Apr 26 2007 | 8:03 pm
      Quote: (karrrlo) wrote on Thu, 26 April 2007 04:59
      ----------------------------------------------------
      > bonjour,
      > how to get the instance value generated by a #0 in a bpatcher ?
      > how do i extract its value from an object such as a [send #0_something] so i can use this value outside of the bpatcher ?
      > thanks in advance
      >
      >
      ----------------------------------------------------
      a simple [loadbang]-[#0]-[outlet] should work, because the
      arguments to a subpatcher are always initialised first.
      if [loadbang]-[#0]-[outlet] does not work for you then
      try [loadbang]-[#0]-[pipe 0]-[outlet]
    • Apr 27 2007 | 12:57 am
      Thanks Stefan and Roman, your solutions work just fine
      i have it all figured out now. it was simple indeed ;)
      best,