Skip to content

Instantly share code, notes, and snippets.

@soxsa
Created October 11, 2020 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soxsa/1ec89e49285ad3f72c933bb72254af3c to your computer and use it in GitHub Desktop.
Save soxsa/1ec89e49285ad3f72c933bb72254af3c to your computer and use it in GitHub Desktop.
EEL2 script for Cuckos OSCII-Bot to send a midi pulse to VCV Rack
@input remoteosc OSC "*:4560"
//@input remoteosc OMNI-OSC
@output localhost MIDI "loopMIDI Port"
@init
t = time;
destdevice = localhost;
@timer
@oscmsg
dt = time-t;
t = time;
printf("%f dt=%f OSC IN: %s \n", time, dt, oscstr);
oscmatch("/pulse") ? (
//Send a 500ms MIDI note_on/note_off to Channel 16 on the given note
//e.g. "/pulse, 49" that's Db3
note = oscparm(0,d);
//printf("%f MIDI Out Note %d\n", time, note);
//Note on
//9=note_on, F=chanel 16
msg1 = 0x9F;
msg2 = note;
msg3 = 127;
midisend(-1);
sleep(500);
//Note off
//8=note_off, F=chanel 16
msg1 = 0x8F;
msg2 = note;
msg3 = 0;
midisend(-1);
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment