diff --git a/DSP/README.org b/DSP/README.org index 960257d..b866ed8 100644 --- a/DSP/README.org +++ b/DSP/README.org @@ -1,14 +1,20 @@ * Bjornmossa DSP algorythms library This repo contains SC code for synthesis, processing and analysys algorythms. -* Installation -- Put in startup file: "SC_ALGS_PATH".setenv("path to library".standardizePath); -- install NodeDictionary extention - +* Usage #+BEGIN_SRC sclang ( -var s = (("SC_ALGS_PATH".getenv) +/+ "synths/substractive/sin.instr.scd").load; -var d = NodeDictionary.newFrom(s); +var sin_dict = BmDspAlgs.getDict("synths/distorted_sin.scd"); +sin_dict[\postAmp] = true; +sin_dict.makeSourceSynthDef.add(); + +~synth = (); +~synth[\name] = \synth; -d.makeSourceSynthDef(); +Ndef(~synth[\name]).clear; +Ndef(~synth[\name]).ar(2); +Ndef(~synth[\name]).prime(sin_dict[\name]); + +Ndef(~synth[\name]).play; ) #+END_SRC + diff --git a/readme.org b/readme.org index 9a12f01..2eab3ee 100644 --- a/readme.org +++ b/readme.org @@ -8,3 +8,4 @@ between my SuperCollider projects nodes from declarative definitions - quarks Quarks and Extentions I usally use for projects +