Information passed from Audacity to Nyquist

Yes I agree. I wrote something along the same lines a long time ago: Sample Printer - #19 by steve

It would often be useful if Nyquist knew more about “s”.
Audacity has information about the track that is not available to Nyquist.
The number of samples is passed to Nyquist in the variable “LEN” and the actual audio data in “S”, but that’s all.
What I would like to see is additional track data passed to Nyquist, possibly as a property list, to include:

Track name,
Channel allocation (for mono tracks),
Peak Amplitude (solves the Normalising issue for some situations),
RMS,
Start time,
Envelope Points,
Bit-depth.

Those were some ideas off the top of my head, not a definitive list. It’s interesting to see that you came up with such a similar idea.
I also like the idea of taking an incremental approach.

At some point I’ll start a more formal proposal for this feature, which you will of course be very welcome to contribute to.