shithub: sf2mid

Download patch

ref: f199706563056d6af9641858cc83678e9d8e4231
parent: f2ff7e6fc8804418da1747da0896868e16a6cee5
author: Bernhard Schelling <[email protected]>
date: Sun Nov 14 20:46:50 EST 2021

Improve all control off message

--- a/tsf.h
+++ b/tsf.h
@@ -1755,9 +1755,12 @@
 			c->midiVolume = c->midiExpression = 16383;
 			c->midiPan = 8192;
 			c->bank = 0;
+			c->midiRPN = 0xFFFF;
+			c->midiData = 0;
 			tsf_channel_set_volume(f, channel, 1.0f);
 			tsf_channel_set_pan(f, channel, 0.5f);
 			tsf_channel_set_pitchrange(f, channel, 2.0f);
+			tsf_channel_set_tuning(f, channel, 0);
 			return;
 	}
 	return;