[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] SynthDefs, synthDefDir
On Thu, Jun 3, 2021 at 1:07 PM <clfest@xxxxxxxxxx> wrote:
> How can you examine an arbitrary scsyndef file and tell what's in it?
// pick one at random
p = (SynthDef.synthDefDir +/+ "*.scsyndef").pathMatch.choose;
-> /home/(redacted)/.local/share/SuperCollider/synthdefs/system_env_0_audio.scsyndef
// new SynthDescLib can contain only defs in 'p'
// also the SynthDescLib needs a name :-\ ok...
d = SynthDescLib.new(p.basename).read(p);
// names of SynthDefs in the file
d.synthDescs.keys;
-> Set[ system_env_0_audio ]
// SynthDesc object; prints as list of controls
d.synthDescs['system_env_0_audio'];
-> SynthDesc 'system_env_0_audio'
Controls:
ControlName P 0 i_bus scalar 0.0
ControlName P 1 env control [ 0.0, 4.0, -99.0, -99.0, 0.0, 1.0, 1.0,
0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 1.0, 1.0, 0.0 ]
... snip
hjh
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/