Skip to content

Instantly share code, notes, and snippets.

@scarybot
Created September 19, 2016 07:31
Show Gist options
  • Save scarybot/5a688c05dfc32561c498c6da1728d106 to your computer and use it in GitHub Desktop.
Save scarybot/5a688c05dfc32561c498c6da1728d106 to your computer and use it in GitHub Desktop.
Detect when a MIDI or HUI capable device enters and leaves record mode
In order to detect the Record punch-in and punch-out sequences:
Add an HUI control service (HUI-partial in Reaper) and assign it to your MIDI output.
Watch for the following Control change sequences on channel 1:
Record start (punch-in):
Pitch: 2C (dec 44), Velocity: 45 (dec 69)
Record stop (punch-out):
Pitch: 2C (dec 44), Velocity: 5 (dec 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment