Toggle switch using MIDI keyboard


    Nov 17 2006 | 1:40 am
    I'm trying to setup a toggle switch that would be controlled from MIDI keyboard. So if I press a certain key the switch would be switched on, and if I press the same key again it would switch off.
    I came very close using [noetin]->[select 54]->[Ggate]
    When note with pitch 54 is pressed select sends a bang out to Ggate which changes the output, but the problem is that when I depress the key the value 54 is sent once again with note-off message, and select sends another bang which toggles the Ggate back to the first output.
    So in my example due to this the effect is active only while I hold the MIDI key and deactivated as soon as I depress it, but I would like it to stay on till the next time I press the same MIDI key. Any solutions/suggestions would be greatly appreciated.

    • Nov 17 2006 | 2:22 am
      Use 'stripnote' after the notein and before the select - it removes noteoffs (noteons with a velocity of 0).
      On Nov 16, 2006, at 6:41 PM, Jernej Marusic wrote:
      > > I'm trying to setup a toggle switch that would be controlled from > MIDI keyboard. So if I press a certain key the switch would be > switched on, and if I press the same key again it would switch off. > > I came very close using [noetin]->[select 54]->[Ggate] >
      ---- Steven M. Miller
      Associate Professor of Contemporary Music College of Santa Fe Contemporary Music Program 1600 St. Michaels Drive Santa Fe NM 87505 http://pubweb.csf.edu/~smill (505) 473-6197
      SFIFEM Atrium Sound Space OVOS http://sfifem.csf.edu http://atrium.csf.edu http://pubweb.csf.edu/ ~smill/ovos.html
      ---- Steven M. Miller
      Associate Professor of Contemporary Music College of Santa Fe Contemporary Music Program 1600 St. Michaels Drive Santa Fe NM 87505 http://pubweb.csf.edu/~smill (505) 473-6197
      SFIFEM Atrium Sound Space OVOS http://sfifem.csf.edu http://atrium.csf.edu http://pubweb.csf.edu/ ~smill/ovos.html
    • Nov 17 2006 | 5:19 pm
      Thanks a lot, 'stripnote' did the trick