json2asw - serialising and de-serialising AudioSynthWavetable::instrument_data to and from a JSON file.

wearyhacker

Well-known member
I have just made the first beta release of this project json2asw.
This project provides the following.
  1. A script to preprocess the cpp and h file pairs produced by Jannick Manicken's SoundFontDecoder. This script may also handle files generated by the original WaveTableSynthesis project, but this has not been tested. The script will produce two files, instrument.cpp and instrument.h.
  2. A c++ program to produce a JSON encoded file. This program needs to recompiled every time new instrument files are made. Running the program will produce a new JSON file from the instrument sources.
  3. A platformio library package for a class to de-serialise the JSON file and load the data into a newly created AudioSynthWavetable::instrument_data object.
  4. A platformio teensy project that demonstrates how to use the library.
The library and sketch source files should be easy to convert to Arduino IDE format. Any volunteers?

Wearyhacker.
 
Hello wearyhacker, good to know of your project, just what I was wanting to be able to do...
So, can you point me in the right direction? I cannot seem to find anywhere a "tools" folder, neither on the json2asw nor the asw2json gits... If I understand correctly, there, inside the folder, should be an executable to do the rewrite-instrument step, am I correct? Also, one should take out the sf2 extension so that it gets named in an explorer (windows) "irish2"? instead of "irish2.sf2" ? or is it something the command does with sf2´s?

well, hope the new year finds you right, thanks for your work... will leave a copy of this on github...
 
Back
Top