2025.02.07

This commit is contained in:
sshlien
2025-02-07 13:41:40 -05:00
parent 835b91dc6f
commit 5054b25701

View File

@@ -1002,7 +1002,7 @@ int chan, pitch, vol;
int start_time,initvol; int start_time,initvol;
int cents,centvalue,pitchbend; int cents,centvalue,pitchbend;
int newpitchint; int newpitchint;
float newpitch; float newpitch,fcents;
start_time = close_note(chan, pitch, &initvol); start_time = close_note(chan, pitch, &initvol);
if (start_time <= 0) return; if (start_time <= 0) return;
@@ -1015,7 +1015,8 @@ if (sysexBentPitches[pitch] >0.0) {
} }
else else
{pitchbend = chanbend[chan+1]; {pitchbend = chanbend[chan+1];
cents = (pitchbend - 8192)/200; fcents = 100.0 * (float) (pitchbend - 8192)/4096.0;
cents = (int) (fcents + 0.5);
if (cents < 0) { if (cents < 0) {
pitch--; pitch--;
cents +-100; cents +-100;