Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
294
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from mididings import *
  2. config(
  3. client_name='IDM01/Yamaha', ### Input from
  4. in_ports=[
  5. ('IDM01', '32:0'),
  6. # ('MtronCtrl', '28:0'),
  7. # ('ArdTrans', '28:0'),
  8. ],
  9. out_ports=[
  10. ('TronKeysCtrl', 'TronKeysCtrlAj:0'),
  11. ('ArdTrans', 'Midipus:0'),
  12. ('ArdKeys', 'MidiKeysIn:0'),
  13. ('MiscKeys'),
  14. ],
  15. )
  16. run(
  17. ChannelFilter(1) >> [
  18. #IDM01 to Melotron Voice Selector/Melotron Keys
  19. # PortFilter('MtronCtrl') >> Educational
  20. KeyFilter(1,10) >> ~KeyFilter(5,7) >> Transpose(26),
  21. KeyFilter(43,79) >> Port('TronKeysCtrl'),
  22. #IDM01 to Ardour Transport
  23. # PortFilter('ArdTrans') >>
  24. KeyFilter(notes=[10,11,12]) >> ## Use chain ('>>') Not selector ('%')
  25. Ctrl(EVENT_PORT,2,EVENT_CTRL,EVENT_VALUE) >>
  26. Port('ArdTrans'),
  27. # Send Only 24-127 to ArdKeys
  28. KeyFilter(24,97) >> Port('ArdKeys')
  29. ]
  30. )
Advertisement
RAW Paste Data Copied
Advertisement