Properly handle efx and rev/delay preset names. Tweak tests

This commit is contained in:
hirsch 2016-09-04 10:33:14 -04:00
parent 06ea5cc6de
commit a43240727f
3 changed files with 25 additions and 9 deletions

View file

@ -21,13 +21,13 @@ cc = mido.Message('control_change')
type = 0
def analog_send( outport, sleeptime=0.25 ):
for value in [ 0, 32, 64, 96, 127, 96, 64, 32, 0 ]:
for value in [ 0, 32, 64, 96, 127, 0 ]:
cc.value = value
outport.send( cc )
sleep( sleeptime )
def discrete_send( outport, max ):
for value in it.chain( range(0,max+1), range(max,-1,-1) ):
for value in it.chain( range(0,max+1), range(0,1) ):
cc.value = value
outport.send( cc )
sleep( 0.25 )