From ed2e5f90bb2273e4444aed9bb73411b9f8752d1e Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 23 Aug 2020 12:30:36 +0100 Subject: vague attempt at dumping a tsf object statically I don't think it can be done, the `fontSamples` are a float array but we can't see how big --- sf-compile/static-tsf.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sf-compile/static-tsf.h (limited to 'sf-compile/static-tsf.h') diff --git a/sf-compile/static-tsf.h b/sf-compile/static-tsf.h new file mode 100644 index 0000000..bb45da1 --- /dev/null +++ b/sf-compile/static-tsf.h @@ -0,0 +1,24 @@ +tsf_preset g_presets[] = PROGMEM { + { + .presetName= {0x50,0x69,0x61,0x6e,0x6f,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, +0x0,0x0,0x0,0x0,}, + .preset= 2, + .bank= 0, + .regionNum= 4, + }, +}; +tsf theSoundFont PROGMEM = { + .presets= g_presets, + .fontSamples = 0x7fed29afd010, + .voices= 0, + .channels= 0, + .outputSamples= 0, + .presetNum= 1, + .voiceNum= 0, + .maxVoiceNum= 0, + .outputSampleSize= 0, + .voicePlayIndex= 0, + .outputmode= TSF_MONO, + .outSampleRate= 20000, + .globalGainDB= 0, +}; -- cgit v1.2.3