Hi,
I have made some experiments with making data recording abstractions using [qlist].
Looks like this:
It works OK but I think there are better ways to do this.
I use it for
- recording and looping on the fly,
- background recording of session and
- along with more advanced processing (neural network is the plan).
The data that I record is often sensor data over serial connection using [comport] with arduinos, but the idea is that you can take any data stream inside Pd and record it.
I use this in my live rig but I also want to include it in installations and have the data being automatically saved to disk, maybe also upload it to cloud on the fly.
One problem is that there is quite a lot of messages coming in when recording the serial data (I use a high baud rate) and when saving the text file the system can get unstable and PD crash at times. Usually the text file is intact though. The text file gets quite large also, I suspect that there could be more suitable file formats. When saving Pd gets locked up too so it is not a realtime solution as it is.
Maybe one should write the data to disk right away instead of having it in a buffer like [qlist]?
Would using [text sequence] be more stable?
So how would you do this?
Thankful for input!