questions about select


    Apr 10 2006 | 10:50 am
    hi,
    anyone know if there's an object like select, but instead of banging out the
    left it outputs the value?
    i was looking for a more elegant way to do this...
    max v2;
    thanks
    --
    robin

    • Apr 10 2006 | 11:21 am
    • Apr 10 2006 | 11:43 am
      > anyone know if there's an object like select, but instead of
      > banging out the left it outputs the value?
      >
      > i was looking for a more elegant way to do this...
      take a look at [if]
      vb
    • Apr 10 2006 | 11:58 am
      tap.sieve, one of Tim Place's Tap Tools, does exactly
      that,
      cheers
      roger
    • Apr 10 2006 | 12:09 pm
      You may want to look at my "member" external. Essl ported it a while back
      an includes it in his RTC library.
      Cheers,
      Gary Lee Nelson
      TIMARA Department
      Oberlin College
      www.timara.oberlin.edu/GaryLeeNelson
    • Apr 10 2006 | 2:39 pm
      thanks guys, loads of solutions - i'll go with [if] for now, it's just that
      i haven't ever got used to the syntax of it. now's the time i guess
      --
      robin
    • Apr 10 2006 | 3:06 pm
      On 10 avr. 06, at 16:39, Robin Foster wrote:
      > thanks guys, loads of solutions - i'll go with [if] for now, it's
      > just that i haven't ever got used to the syntax of it. now's the
      > time i guess
      Not that difficult, here we have :
      if $i1 != $i2 then out2 $i1 else $i1
      which means :
      if the number wich comes in the first inlet (left one) is not the
      same as the number wich arrives from the right inlet, then the object
      will send the value of the left inlet to the right outlet (out2),
      else (if the 2 numbers are the same) the value of the first inlet
      will be sent to the default outlet (leftmost).
      best,
      ej
    • Apr 10 2006 | 3:21 pm
      woohoo! i don't even have to read about it now. thankyou!
      --
      robin
    • Apr 10 2006 | 3:31 pm
      On 10 avr. 06, at 17:21, Robin Foster wrote:
      > woohoo! i don't even have to read about it now. thankyou!
      You'll have to, because there's many other useful features :-)
      ej
    • Apr 10 2006 | 4:10 pm
      i think your [if] works, but i'm probably doing something extremely obvious
      wrong with the right to left ordering.
      basically i'm trying to make a simulated dice roll, where you roll, then
      count up to that number, like you would on a board game, moving the player
      over each square on the board - so if i rolled a six, i'd count one, two,
      three, four, five, six. my patch then chooses another random number for the
      next roll.
      i need to then be able to seperate the count up from the actual number, so i
      have 1,2,3,4,5 out one outlet, then the 6 out another.
      a bit like this
      max v2;
      except something doesn't quite work every time.
      if someone could have a quick look i'd be extremely grateful
      --
      robin
    • Apr 10 2006 | 6:01 pm
      oops! posted the wrong code. ignore that
      --
      robin