Re: SynthDefs, synthDefDir
[email protected] Fri, 4 Jun 2021 18:13:58 +0800
| Newsgroups | gmane.comp.audio.supercollider.user |
|---|---|
| Message-ID | <CAFniQ7UzbTpD0bMw6Gh81jKUQWdayfvaabNFzwkJO7W+n0-djA@mail.gmail.com> |
On Thu, Jun 3, 2021 at 1:07 PM <clfest-f/[email protected]> 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: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/