Get standard arguments of a synthdef as a dictionary or array?

Hello, i want to get the standard arguments as pairs/array or dictionary or from a synth def.
Lets say i have this SynthDef:

	|amp = 0.3, freq = 220, rel = 1|,!2)*,0,rel,doneAction:2));


Then i want a function or method that gives me [\amp, 0.3, \freq, 220, \rel, 1] or something similar. The arguments might also be initialized in the synthdef by \ or something.

Is this possible somehow? It would help me out a lot.
Thank you!

Like this!\test_synth).controlDict.collect(_.defaultValue)

Thank you very much, especially for the quick response, keeps me coding (:

Your welcome!
Take a peek at SynthDesc and ControlName if you want to see why this works.

1 Like

Interesting, I didn’t know you could just do .at directly with the Synth name, I thought you had to go through the \global SynthDescLib. Anyhow, I did something similar (maybe with a bit fancier output, and including things like lag info) for Bacalao: