I've been working on this for over a year. I have the python sf2 decoder script using struct and numpy to convert the 32-bit hex to 16-bit hex. Does anyone have any idea how to change the synth functionality to accept 16-bit samples? Do I have to change this section
My python script automagically decodes the entire sf2, puts the samples into separate files, put each instrument into a separate file and includes only the samples it needs adds to FLASHMEM instead of loading inline const_casts and the whole library is changed because i removed const from the sample_data struct using a const_cast instead. The python script also checks for samples that have the same name. The entire library has been changed but for my purposes could you help me? Right now it's crashing when I change the 32 to a 16 in the audio synth plugin
Also would this line be affected (mine is slightly modified)
if (!isLoadingFromSD) {
tmp1 = *((uint32_t*)(s->sample + index));
}
I can fork the project if you want me to, it requires deleting all the text from teensys wavetable include thats part of the library
I've been working on this for over a year. I have the python sf2 decoder script using struct and numpy to convert the 32-bit hex to 16-bit hex. Does anyone have any idea how to change the synth functionality to accept 16-bit samples? Do I have to change this section
by changing the length bits from 32-bit to 16-bits and also here in the actual synth audio plugin
My python script automagically decodes the entire sf2, puts the samples into separate files, put each instrument into a separate file and includes only the samples it needs adds to FLASHMEM instead of loading inline const_casts and the whole library is changed because i removed const from the sample_data struct using a const_cast instead. The python script also checks for samples that have the same name. The entire library has been changed but for my purposes could you help me? Right now it's crashing when I change the 32 to a 16 in the audio synth plugin
Also would this line be affected (mine is slightly modified)
I can fork the project if you want me to, it requires deleting all the text from teensys wavetable include thats part of the library