add ability to save ins/wave as .dmp/.dmw

also saving wavetables as raw data
This commit is contained in:
tildearrow 2022-08-13 15:43:13 -05:00
parent 041a76ad81
commit 02fb5abc02
5 changed files with 282 additions and 9 deletions

View file

@ -46,6 +46,20 @@ struct DivWavetable {
* @return whether it was successful.
*/
bool save(const char* path);
/**
* save this wavetable to a file in .dmw format.
* @param path file path.
* @return whether it was successful.
*/
bool saveDMW(const char* path);
/**
* save this wavetable to a file in raw format.
* @param path file path.
* @return whether it was successful.
*/
bool saveRaw(const char* path);
DivWavetable():
len(32),
min(0),
@ -56,4 +70,4 @@ struct DivWavetable {
}
};
#endif
#endif