Created
January 19, 2017 01:28
-
-
Save tatecarson/6e3f2702a570fab7345f9a45c38070ea to your computer and use it in GitHub Desktop.
This explains how to
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
How to send midi to other software such as live ! | |
make sure the IAC bus is turned on | |
check out this if you don't know how | |
https://help.ableton.com/hc/en-us/articles/209774225-Using-virtual-MIDI-buses-in-Live | |
*/ | |
//initialize the midi client | |
MIDIClient.init; | |
//open the port | |
m = MIDIOut(0); | |
( | |
Pbindef(\miditest, | |
\type, \midi, | |
\midiout, m, | |
\chan, Prand([0, 1, 2], inf), //sends to multiple instruments in DAW | |
\amp, 0.4, //midi velocity | |
\degree, Pseq([Pseq([0], 3), 1, Pseq([0], 5), 1, Pseq([0], 7), 1], inf), | |
\dur, Pexprand(0.2, 2), | |
\octave, 4, | |
).play; | |
) | |
Pdef(\miditest).stop; | |
/* | |
check http://doc.sccode.org/Tutorials/A-Practical-Guide/PG_08_Event_Types_and_Parameters.html#MIDI%20output | |
for more commands | |
Happy sequencing! | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment