math idiot seeks helpwith osc conversion


    Jan 08 2007 | 3:36 am
    I am trying to generate a midi note from a laser and a photocell. I have the laser hooked up and with it directed at the photocell. I am getting the value of around 186 in my patch (from the Make controller ADC, ( I have that part of the patch reading the sensor and giving me OpenSoundControl values (1-1024) When I pluck the beam and interupt the light, the resistance jumps up to 800 or 900 depending on the room light. How do I make a patch that will generate lets say midi note 64, at full velocity (I'll worry about velocity later, I want to use force resistor sensor which I have the circuit working nicely in the 0 to 5v, range) when I interupt the beam, the value from the sensor exceeds 200,say, (in osc values), a note will be generated, and then midiflush perhaps to avoid retriggering the note until the beam is set...I'm sure there's someone out there that could figure this out in a snap I'm a newbie any help would be appreciated.....an patch where when the number jumps from 200 to 800 a note triggers....

    • Jan 08 2007 | 4:21 am
      Take a look at the scale or zmap objects.
    • Jan 08 2007 | 5:33 pm
      Quote: mykeymuse@mac.com wrote on Sun, 07 January 2007 19:36 ---------------------------------------------------- > I am trying to generate a midi note from a laser and a photocell.
      mzed
    • Jan 08 2007 | 7:13 pm
      molecular gastrononist I need one of those, too (; I don't understand how to build a patch from those numbers but I'll try!
    • Jan 08 2007 | 9:03 pm
      Michael, Select the text, copy, and paste into a new patcher in max.
      -- Owen
      Michael kessler wrote: > molecular gastrononist > I need one of those, too > (; > I don't understand how to build a patch from those numbers but I'll try!
    • Jan 08 2007 | 9:44 pm
      yes now it makes sense! thanks