Examples of spectral plugins?

I was looking at how the type line is parsed (because I want to add support for something like “;type generate stereo”) and I noticed that there’s

      if (len >= 3 && tokens[2] == wxT("spectral")) {;
         mIsSpectral = true;

So that would allow one to write (already) “;type generate spectral” (though I have no idea what that would do, even in theory) and “;type process spectral” etc. Are there any examples of the “spectral” plugins?

Ok, for process, the answer seems to be yes https://forum.audacityteam.org/t/spectral-bandpass-filter-plugin/61476/1 , although it does not appear to me that the feature is documented (at least at https://wiki.audacityteam.org/wiki/Nyquist_Plug-ins_Reference) What about “generate spectral”?

See: https://github.com/audacity/audacity/tree/master/plug-ins

The bigger problem is that Audacity creates the track (if required) for Generate effects before the plug-in is parsed. To create a “stereo generator” plug-in, you would need to change the order so that the plug-in is parsed before the (currently mono only) track is added.

You’re correct, of course, and I think I have a better idea how that should work now.