From 2340e94828ac5dffa4b359254e404b411cb20ef4 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 3 May 2021 12:13:09 -0700 Subject: [PATCH] Can get sine wave from supercollider --- README.md | 3 +++ audio.sc => osc.scd | 2 +- sine.scd | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) rename audio.sc => osc.scd (88%) create mode 100644 sine.scd diff --git a/README.md b/README.md index aff240e..ae3dc97 100644 --- a/README.md +++ b/README.md @@ -1 +1,4 @@ # Radio + +`python radio.py` +`sclang sine.scd` diff --git a/audio.sc b/osc.scd similarity index 88% rename from audio.sc rename to osc.scd index 576d362..b30dda0 100644 --- a/audio.sc +++ b/osc.scd @@ -1,4 +1,4 @@ thisProcess.openUDPPort(5005); n = NetAddr.new("0.0.0.0", 5005) o = OSCFunc({ arg msg, time, addr, recvPort; [msg, time, addr, recvPort].postln; }, '/block', n); -OSCFunc.trace(true); \ No newline at end of file +OSCFunc.trace(true); diff --git a/sine.scd b/sine.scd new file mode 100644 index 0000000..f5ff184 --- /dev/null +++ b/sine.scd @@ -0,0 +1,4 @@ +s = Server.local; +s.waitForBoot { + { SinOsc.ar() }.play; +};