Skip to content

Instantly share code, notes, and snippets.

@moutend
Created March 20, 2018 02:14
Show Gist options
  • Save moutend/09c2475bd6caa02c4f5e5948cb2b9d71 to your computer and use it in GitHub Desktop.
Save moutend/09c2475bd6caa02c4f5e5948cb2b9d71 to your computer and use it in GitHub Desktop.
desc:MIDI easy chord
//tags: MIDI processing
slider1:1<-16,16,0.1>Velocity Multiply
in_pin:none
out_pin:none
@init
@slider
@block
while (midirecv(offset,msg1,msg2,msg3)) (
msg1 == $x90 || msg1 == $x80 ? (
midisend(offset,msg1,msg2,msg3);
midisend(offset,msg1,msg2+4,msg3);
midisend(offset,msg1,msg2+7,msg3);
) : (
midisend(offset,msg1,msg2,msg3);
);
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment