SoundPetal
SoundPetal copied to clipboard
The SynthDef mode
~~Possibly~~ first sounds today.
first synthdef as string, sent sent via OSC to SuperCollider, and triggered and freed. Next step is to generate the synthdef. I think most of the wiring is done now, time to solder it all together.
- [x] only nodes connected send their internal values to global map
- [x] globally map
nodename_variablename: variable_value
- [x] if variable is a link to a node, then
variable_value
is the nodename oflinks[0].from_node.name
A little bit closer:
SynthDef.new("tone", {
arg
out__channelsArray = None,
sinosc_001__add = 0.0,
sinosc_001__freq = 439.10001,
sinosc_001__mul = 1.0,
sinosc_001__phase = 0.0,
sinosc__add = 0.0,
sinosc__freq = 440.0,
sinosc__mul = 1.0,
sinosc__phase = 0.0,
splay__center = 0.0,
splay__inArray = None,
splay__level = 1.0,
splay__levelComp = false,
splay__spread = 1.0,
xline__add = 0.0,
xline__doneAction = 0,
xline__dur = 1.0,
xline__end = 2.0,
xline__mul = 1.0,
xline__start = 1.0;
var sinosc_001__ = SinOsc.ar(sinosc_001__freq, sinosc_001__phase, sinosc_001__mul, sinosc_001__add);
var sinosc__ = SinOsc.ar(sinosc_001__, sinosc__phase, xline__, sinosc__add);
var xline__ = XLine.ar(xline__start, xline__end, xline__dur, xline__mul, xline__add, xline__doneAction);
var splay__ = Splay.ar(sinosc__, splay__spread, splay__level, splay__center, splay__levelComp);
var out__ = Out.ar(splay__, out__channelsArray);
});
generated first SynthDef from nodeTree!