Possible changes to SynthDef format
https://github.com/supercollider/supercollider/pull/7395 introduces SynthDef v3.
Most importantly, it adds a size (int32) field at the beginning of the synth definition so that it can be extended in the future without having to bump the version. The idea is that fields can be added to the end of the synth definition and parsers can simply check the remaining bytes to determine which of these new fields are present. New fields must be optional so that older parsers can just ignore them.
Since we are bumping the version from 2 to 3, this is our historic chance to make any further modifications to the SynthDef file structure :)
For example, here's another upcoming change: the reblock/resample PR (https://github.com/supercollider/supercollider/pull/7402) will add some new mandatory fields.
The purpose of this issue is to collect ideas so that they are not forgotten:
we could add the number of local soundbuffers as a field. This way we can actually allocate the SndBuf array as part of the Graph structure itself, like we do with all the other arrays. The
MaxLocalBufsUGen is just a hack that wouldn't have been necessary if the old SynthDef format was extendable. We likely have to keep it for backwards compatibility, but with the new version it would simply do nothing.add a list of symbols, similar to the list of constants. This would allow users to pass symbols as UGen inputs. (The UGen would interpret the input as an index into the symbol table. See https://github.com/supercollider/supercollider/issues/7403#issuecomment-4019902381 and the following posts.)
?
Source: supercollider/supercollider