Browse Source

Multiple sound sources

tags/kitchen
Pete Shadbolt 3 years ago
parent
commit
e63af42a5c
1 changed files with 13 additions and 2 deletions
  1. +13
    -2
      audio.scd

+ 13
- 2
audio.scd View File

@@ -1,6 +1,6 @@
s = Server.local;
s.waitForBoot {
var module, sound, msg;
var module, sound, msg, modules;

// Connect to OSC
thisProcess.openUDPPort(5005);
@@ -29,9 +29,20 @@ s.waitForBoot {
});
module.load(s);
s.sync;

modules = [];
modules.add(Synth.new("module", [\hue, 0.5, \saturation, 0.9, \value, 0.5, \pan, 0.5]));
modules.add(Synth.new("module", [\hue, 0.9, \saturation, 0.9, \value, 0.5, \pan, 0.5]));
// Make a sound
sound = Synth.new("module", [\hue, 0.5, \saturation, 0.1, \value, 0.5, \pan, 0.5]);
// modules = [];
// 5.do({
// arg index;
// var synth;
// synth = Synth.new("module", [\hue, 0.5, \saturation, 0.1, \value, 0.5, \pan, 0.5]);
// modules.add(synth);
// });

// Hook up OSC
f = { |msg, time, addr|


Loading…
Cancel
Save