Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed May 15, 2020
1 parent 7a40f1a commit e501861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/midi_fm.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void midi_fm_pitchBend(u8 chan, u16 bend)
{
MidiFmChannel* fmChan = &fmChannels[chan];
u16 freq = freqNumber(fmChan->pitch);
s16 bendRelative = bend - 0x2000;
s16 bendRelative = bend - MIDI_PITCH_BEND_CENTRE;
freq = freq + (bendRelative / 75);
synth_pitch(chan, octave(fmChan->pitch), freq);
}
Expand Down

0 comments on commit e501861

Please sign in to comment.