View Single Post
Old 09-21-2018, 09:41 PM   #7
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 14,686
Default

While I do agree that writing to files (and reading files other than for initialization) is a no-go for such a realtime processor building tool, there might be workarounds.

If gmem would be accessible not only for jsfxes, but also for ReaScripts, and file writing is enabled for those (which run in the environment of the GUI thread), appropriate software could be done. In fact a JSFX already can send out Midi data, theses can be routed by MidiToReaControlPath and received by a ReaScript. Seems to make sense for very small data amounts.

This said, in fact JSFXes already can write to files . A friend of mine uses this in a project he created. Just have the JSFX output an audio stream and then render. If rendering to lossless compressed FLAC, sending out a stream of constants does not take much place besides your useful data. Now you can use appropriate software to decode the data.

Moreover Midi data sent by a JSFX can be saved in the Reaper Project file.

-Michael

Last edited by mschnell; 09-21-2018 at 11:50 PM.
mschnell is offline   Reply With Quote