Sfoglia il codice sorgente

Multiple sound sources

tags/kitchen
Pete Shadbolt 3 anni fa
parent
commit
e63af42a5c
1 ha cambiato i file con 13 aggiunte e 2 eliminazioni
  1. +13
    -2
      audio.scd

+ 13
- 2
audio.scd Vedi 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…
Annulla
Salva