Properly handle efx and rev/delay preset names. Tweak tests
This commit is contained in:
parent
06ea5cc6de
commit
a43240727f
3 changed files with 25 additions and 9 deletions
4
test.py
4
test.py
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue