I would like to change parameters like “frequency” or “amp” in a GUI while this Synth is running. I tried to figure out how I could put this Routine (inf.do) in a Tdef and apply a GUI to it, but I don’t seem to be able to find out how to do this or whether what I wish to do should be done in a different way.
NdefGui is a good choice for that in general but here you don’t have one Synth running but many, each fired every 0.1 seconds. So gui-ing that is going to be a challenge. Turn the anonymous routine into a Pdef and use PdefGui to change the common arguments of the events.
But even then it’s unclear what do you want to vary from a gui here since all the Synth arguments are set to random values… maybe the endpoints of the random ranges? Assuming you want something like that, just showing how to do it for freq(s) and dur: