Re: SynthDefs, synthDefDir
[email protected] Wed, 2 Jun 2021 07:31:32 +0800
| Newsgroups | gmane.comp.audio.supercollider.user |
|---|---|
| Message-ID | <CAFniQ7Utvd_f1TUturg8A_Asi3Zz+skVemGwyG+Re7eOta=u3w@mail.gmail.com> |
On Wed, Jun 2, 2021 at 4:08 AM <[email protected]> wrote: > This doesn't happen, at least for me, the content of Platform.userAppSupportDir +/+ "synthdefs" > doesn't get automatically loaded when sclang boots. // written to disk only ( SynthDef(\test1, { |out, gate = 1, freq = 440, amp = 0.1| var sig = SinOsc.ar(freq) * amp; var eg = EnvGen.kr(Env.adsr, gate, doneAction: 2); Out.ar(out, (sig * eg).dup); }).writeDefFile; ) thisProcess.recompile; s.boot; x = Synth(\test1); // no error x.release; Not a problem here. What I did find, though, is that the SynthDescLib does not automatically read from disk by default: SynthDescLib.at(\test1); -> nil // force a read from the default synthdef dir SynthDescLib.read; SynthDescLib.at(\test1); -> SynthDesc 'test1' Controls: ControlName P 0 out control 0.0 ControlName P 1 gate control 1.0 ControlName P 2 freq control 440.0 ControlName P 3 amp control 0.10000000149012 O audio Out out 2 I thought SynthDescLib reading was part of the startup process, but, I guess not. hjh _______________________________________________ sc-users mailing list info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/