Created
September 26, 2017 12:14
-
-
Save dropmeaword/eb0ec7ff9f719be800460cb12af5e16c to your computer and use it in GitHub Desktop.
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
// install the Arduino SC Quarks | |
Quarks.update("arduino"); | |
Quarks.install("arduino"); | |
Quarks.gui; | |
// create an Arduino instance | |
( | |
p = ArduinoSMS("/dev/tty.wchusbserial1420", 9600); | |
) | |
( | |
SynthDef(\Sine, { arg add = 0; | |
var sine; | |
sine = SinOsc.ar(LinExp.kr(add, 0, 1024, 2000, 200),0,0.2,0); | |
Out.ar(0,[sine,sine]); | |
}).send(s); | |
) | |
( | |
x = Synth(\Sine); | |
p.action = { | ... msg | x.set(\add,msg); }; | |
) | |
( | |
p.close; | |
) | |
( | |
x.free; | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment