This is possible now. Envelope passing for Synths and Patterns
Thanks for that example. The bytecode compilation limits the size and complexity of the Envelope to a fixed number of points. For many common use cases, like an ADSR or perc type env, of course this is sufficient. But it may not work for envelopes that may be flat or arbitrarily curvy over a long timespan. Or at least the bytecode default would have to be much longer. My bytecode default of 128 points (~ 128 * 4 bytes) was making my compiled synthdefs very heavy and slow to load.
Glad to know that code composition is well-developed! I work primarily with the server and not the sc language, and since bytecode synthdefs can’t call each other, I had to reconstruct that on my end. I came to the same conclusion as you did, that because of the structure of the compiled bytecode, it has to be done on the language side, not the bytecode side.