Re: Unlimited Size WAV Record V0.4
Posted: Tue Oct 24, 2017 3:12 pm
My little "dream" would be to have a way to record easily long stereo audios (30-60mins) from within flowstone, both from external sources (realtime) and internal exports (full processing speed), and without overusing RAM..
But this seems to be impossible in current version of FS, or at least - nobody figured out how to do it. The problem with wave read/write prims is, these use float-based indexes, which means - rounding the counter at some point, which means - let's forget about (even not too) long auditions.
Thanks to KG, I can load and use such long audio files (although I need there some additional nodes too; asm), but that's it. Export will work only via vst transport, not from exe files.
As for recording from external sources, your little project works pretty well, with the exception of RAM usage. As for exporting internally, I'm not sure what are the limits, because I haven't reach yet there in my current project.
So, after finding your project, i started to think about general-purpose dll, for handling audio recording. This also means data logger (DAQ configured as audio interface) at samplerate up to audio sample rate.
General thoughts on what I would see in such dll solution:
1. it receives trigger/state for start/stop recording, where "stop" (1to0) = save the file (in other words, bypass sending arrays of floats to flowstone; when flowstone loads file to mem, then mem data can be handled without unpacking it).
2. it optionally sends a trigger, that file has been saved (if saving of long audio works fast, then maybe this can be bypassed in flowstione via delay).
3. optional switch for mono/stereo format.
4. optional input for samplerate (with acceptance of low samplerates, like 256sps - this probably involves some interpolation/averaging methods; low SR datastreams usually involve many-hours sessions)
5. optional input for triggering continuous split (split audio during recording, so that segments are continuous with each other)
6. output node (float, not array), at 100Hz, that sends (averaged) value of current audio - this could help to produce live recording graph from within the flowstone.
But this seems to be impossible in current version of FS, or at least - nobody figured out how to do it. The problem with wave read/write prims is, these use float-based indexes, which means - rounding the counter at some point, which means - let's forget about (even not too) long auditions.
Thanks to KG, I can load and use such long audio files (although I need there some additional nodes too; asm), but that's it. Export will work only via vst transport, not from exe files.
As for recording from external sources, your little project works pretty well, with the exception of RAM usage. As for exporting internally, I'm not sure what are the limits, because I haven't reach yet there in my current project.
So, after finding your project, i started to think about general-purpose dll, for handling audio recording. This also means data logger (DAQ configured as audio interface) at samplerate up to audio sample rate.
General thoughts on what I would see in such dll solution:
1. it receives trigger/state for start/stop recording, where "stop" (1to0) = save the file (in other words, bypass sending arrays of floats to flowstone; when flowstone loads file to mem, then mem data can be handled without unpacking it).
2. it optionally sends a trigger, that file has been saved (if saving of long audio works fast, then maybe this can be bypassed in flowstione via delay).
3. optional switch for mono/stereo format.
4. optional input for samplerate (with acceptance of low samplerates, like 256sps - this probably involves some interpolation/averaging methods; low SR datastreams usually involve many-hours sessions)
5. optional input for triggering continuous split (split audio during recording, so that segments are continuous with each other)
6. output node (float, not array), at 100Hz, that sends (averaged) value of current audio - this could help to produce live recording graph from within the flowstone.