SoundPetal icon indicating copy to clipboard operation
SoundPetal copied to clipboard

The SynthDef mode

Open zeffii opened this issue 10 years ago • 5 comments

~~Possibly~~ first sounds today.

zeffii avatar Nov 15 '14 09:11 zeffii

image

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.

zeffii avatar Nov 15 '14 19:11 zeffii

  • [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 of links[0].from_node.name

zeffii avatar Nov 16 '14 15:11 zeffii

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);
});


zeffii avatar Nov 16 '14 18:11 zeffii

image

zeffii avatar Nov 16 '14 20:11 zeffii

generated first SynthDef from nodeTree!

zeffii avatar Nov 17 '14 12:11 zeffii