I’m using Cabbage as a frontend for CSound and I’m trying to user hdf5write/hdf5read to save and restore datas to disk.
More precisely, in my instrument I make use of thos 2 lines:
hdf5write “test.h5”, kAvg, kWindowNumber, kWindowWriteIdx, kWindowReadIdx ; Write variables to an hdf5 file
;kAvg, kWindowNumber, kWindowWriteIdx, kWindowReadIdx hdf5read "test.h5", "kAvg", "kWindowNumber", "kWindowWriteIdx", "kWindowReadIdx" ; Open hdf5 file and read variable
but if I remove the comment from the second one Cabbage suddenly crashes.
Both of these lines are used just when the user activate a button of the GUI (they are under 2 separate if) so should be a compile time issue.
Anyone as a problem like this?
Any alternative hints on how to save/load a k-array to/from disk?
I’m running under the following SW stack:
- Windows 10
- CSound 6.16 (double samples) Jul 17 2021
- Cabbage 2.8.0
Thank you in advance