Skip to content

Instantly share code, notes, and snippets.

@adamjmurray
Created May 24, 2010 18:17
Show Gist options
  • Save adamjmurray/412223 to your computer and use it in GitHub Desktop.
Save adamjmurray/412223 to your computer and use it in GitHub Desktop.
# Here's how I envision inline midi message processing could work.
# This is an octave transposer.
# It filters for note on and note off events and changes their pitch before passing them along.
# Other event types will be passed through automatically.
INPUTS/'Akai' >> midi_processor /note_(on|off)/ { |event,device|
event.pitch += 12
device.receivers.each_send(event)
} >> OUTPUTS/'TO ABLETON'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment