def stop_all(): for section in open_sections: sprout(section.stop) events.disable() for pitch in [octave*12+p for p in (0,1,2,3,4,5,6,7,8,9,10,11) for octave in (0,1,2,3,4,5,6,7,8)]: midi.note(pitch, 5., 127, 5) midi.setSustain(False) print 'stopping' midi.silence = True
def stop_all(): for section in open_sections: sprout(section.stop) events.disable() for pitch in [ octave * 12 + p for p in (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) for octave in (0, 1, 2, 3, 4, 5, 6, 7, 8) ]: midi.note(pitch, 5., 127, 5) midi.setSustain(False) print 'stopping' midi.silence = True
def test2(): for velocity in range(0, 127): midi.note(60, 0.5, velocity) print velocity time.sleep(1)
def test1(): velocity = 0 pitch = 60 for x in range(1000): midi.note(pitch, min_piano_dur, velocity) time.sleep(min_piano_dur + min_piano_up)
def test1(): velocity = 0 pitch = 60 for x in range(1000): midi.note(pitch, min_piano_dur, velocity) time.sleep(min_piano_dur + min_piano_up) def test2(): for velocity in range(0, 127): midi.note(60, 0.5, velocity) print velocity time.sleep(1) def test3(): echo = effects.Echo() route(echo, midi) midi.setSustain(True) velocity = 100 for x in range(1000): pitch = 60 + x echo.note(pitch, 0.1, velocity) time.sleep(0.15) ''' midi.note(60, 1, 64, 1) time.sleep(2)''' test1()
def test2(): for velocity in range(0,127): midi.note(60, 0.5, velocity) print velocity time.sleep(1)
# needs .2 min_piano_dur = 0.2 min_piano_up = 0.01 def test1(): velocity = 0 pitch = 60 for x in range(1000): midi.note(pitch, min_piano_dur, velocity) time.sleep(min_piano_dur + min_piano_up) def test2(): for velocity in range(0,127): midi.note(60, 0.5, velocity) print velocity time.sleep(1) def test3(): echo = effects.Echo() route(echo, midi) midi.setSustain(True) velocity = 100 for x in range(1000): pitch = 60 + x echo.note(pitch, 0.1, velocity) time.sleep(0.15) ''' midi.note(60, 1, 64, 1) time.sleep(2)''' test1()