diff options
author | dakkar <dakkar@thenautilus.net> | 2020-08-23 12:30:36 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2020-08-23 12:30:36 +0100 |
commit | ed2e5f90bb2273e4444aed9bb73411b9f8752d1e (patch) | |
tree | c25752f22adc7891c26bbf8a590d07c8ca80c231 /sf-compile/static-tsf.h | |
parent | soundfont works! (diff) | |
download | lego-piano-ed2e5f90bb2273e4444aed9bb73411b9f8752d1e.tar.gz lego-piano-ed2e5f90bb2273e4444aed9bb73411b9f8752d1e.tar.bz2 lego-piano-ed2e5f90bb2273e4444aed9bb73411b9f8752d1e.zip |
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
Diffstat (limited to 'sf-compile/static-tsf.h')
-rw-r--r-- | sf-compile/static-tsf.h | 24 |
1 files changed, 24 insertions, 0 deletions
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, +}; |