Always-on computer music
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sine.scd 445B

12345678910111213141516
  1. s = Server.local;
  2. s.waitForBoot {
  3. // Set up OSC communications
  4. thisProcess.openUDPPort(5005);
  5. n = NetAddr.new("0.0.0.0", 5005);
  6. o = OSCFunc({ arg msg, time, addr, recvPort; [msg, time, addr, recvPort].postln; }, '/radio', n);
  7. OSCFunc.trace(true);
  8. // Start some oscillators
  9. {
  10. var x = SinOsc.ar(MouseX.kr(1, 100));
  11. SinOsc.ar(300 * x + 800, 0, 0.1)
  12. +
  13. PinkNoise.ar(0.1 * x + 0.1)
  14. }.play;
  15. };