Example #1
0
 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
Example #2
0
 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
Example #3
0
def test2():
    for velocity in range(0, 127):
        midi.note(60, 0.5, velocity)
        print velocity
        time.sleep(1)
Example #4
0
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)
Example #5
0
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()
Example #6
0
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)
Example #7
0
def test2():
    for velocity in range(0,127):
        midi.note(60, 0.5, velocity)
        print velocity
        time.sleep(1)
Example #8
0
# 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()