Skip to content

Instantly share code, notes, and snippets.

@dropmeaword
Created September 26, 2017 12:14
Show Gist options
  • Save dropmeaword/eb0ec7ff9f719be800460cb12af5e16c to your computer and use it in GitHub Desktop.
Save dropmeaword/eb0ec7ff9f719be800460cb12af5e16c to your computer and use it in GitHub Desktop.
// 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