picture: http://www.keithmcmillen.com/softstep/photos
patch = [ Press(Button(5), flash(5)) ]
Press(Button(5), [ led_on(5), display('Pres'), midi_PC(5, midi_out), ]) Release(Button(5), [ led_off(5), display('Rel'), midi_PC(6, midi_out) ])
Pressure(Button(5), [ display('P>'), midi_CC(7, midi_out), ])
Expression( up = Button(5,'tl') + Button(5,'tr'), down = Button(5,'bl') + Button(5, 'br'), callback= display('Exp') )
Expression( up = Button(0), down = Button(5), callback= [ display('2>'), midi_CC(7, midi_out) ] )
MultiState( Button(5), [ [led_on(5, 'red'), display('off')], [led_on(5, 'green'), display('on')], ], ),
MultiState( next=Button('nav_right'), prev=Button('nav_left'), states = [[display('PC%2d' % i), midi_PC(i, midi_out)] for i in range(1,11)] )