Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Jul 27, 2024
1 parent 89046f7 commit 83d8246
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/midi_fm_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ static SpecialModeOperator smOperators[SM_OP_LEN];

void midi_fm_sm_note_on(u8 op, u8 pitch, s8 cents, u8 velocity)
{
SpecialModeOperator* smOp = &smOperators[op];
smOp->pitch = pitch;
smOp->cents = cents;

synth_specialModePitch(op, midi_fm_pitchToOctave(smOp->pitch),
midi_fm_pitchCentsToFreqNum(smOp->pitch, smOp->cents));
midi_fm_sm_pitch(op, pitch, cents);
synth_specialModeVolume(op, velocity);
}

Expand Down

0 comments on commit 83d8246

Please sign in to comment.