Sending SuperCollider midi to LogicPro
Supercollider sending midi through the IAC bus.
Here is a little podcast talking you through this and below is the code you can just copy and paste, you can try it while you follow this video, I think the text is not so clear but the code I am using on this podcast is further below.
// make sure you setup the IAC midi device in audio/midi setup (it’s in utilities!)
// evaluate this to init midi:
MIDIClient.init(0, 1);
// evaluate this to set the midi out port:
m = MIDIOut(0, MIDIClient.destinations[0].uid);
// here is a prototype line you can use where you are sending to midi channel 0
// the words with a backslash are called ‘keys’, there is a value for each of these keys. The key \midinote, for instance has the value 39, that means we are sending midinote 39 in this Pdef.
Pdef(\julioLogic, Pbind( \type, \midi, \midiout, m, \channel, 0,\dur, 0.5, \midinote, 39)).play;
// you can change any values above while playing but if you want to add new keys that you discover in the helpfile for Event you will need to use a ‘Pbindef’ once your Pbind is playing, here I have added the \legato key which is new and will set this new key & value pair. If you try this on the Pdef it will not work for deep reasons you are not allowed to know at this stage !!
Pbindef(\julioLogic, \legato, 0.5, \dur, 0.125, \midinote, 37).play;
// you can stop the thing with this:
Pdef(\julioLogic).stop
// but this will also work:
Pbindef(\julioLogic).stop
// you can use pattern classes you will find under ’streams’ in the SuperCollider Help window, the help files for these classes need you to know about streams so you can test them, so my suggestion is if you want to leave that for later just jump to the examples at the end of the help file and you will see how to use them…
//the following one will cycle infinitely through the values within square brackets:
Pseq( [ 37, 40, 78, 50 ], inf )
//this one will choose, every time it cycles through, one number from the list [80,70,30]. The curly brackets around the “[ ].choose” ensure that the choice is made every time
Pseq( [ {[80, 70, 30 ].choose}, 78, 50 ], inf )
// hope this helps !
To learn more about the different messages you can sequence, check out the help file for Event, if you want to know what other keys are available you can also evaluate this:
Event.default.parent.associationsDo(_.postln); “”
Then look at the post window where you will get a dump of all the keys and what they are set to originally.
//julio d’escrivan 2009
Sub-Pages
latest twitter !
- At Leeds Met today for some external examining, awesome place!
- @AndresKerese ?If I can do something it will be on the Andorran peak. If it doesn?t happen I will have lost the tour" Menchov en velonews
- @AndresKerese no creo que Menchov pueda cerrar la brecha ya...
- @AndresKerese Como ves la vuelta? Moncouti, Martinez?o Crees que Frank Schleck o Sastre se recuperan en la montaña?
- Music of the sea! great link sent by @jonessimon : The Sea Organ http://t.co/mb6594N via @youtube
designing sound
- David Farmer Special: Game Changer Gear September 8, 2010
- Say Hello to Sonic Terrain, Our New Brother Blog Dedicated to Field Recording September 8, 2010
- Small Motors, New SFX Library from Rabbit Ears Audio September 8, 2010
- SWC: The Sound of “HALO: REACH” September 8, 2010
- Something is Coming in the Field… September 8, 2010
- Your Questions to David Farmer September 8, 2010
Acousmatic Composition
Blogroll
software support
students
Recent Posts
Archives
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- May 2007
- April 2007