Skip to content

Commit

Permalink
firmware: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Feb 10, 2024
1 parent 5881a90 commit a1c3be6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions firmware/src/gem_oscillator.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,7 @@ static void GemOscillator_update_pulse_width_(struct GemOscillator* osc, struct
if (inputs.tweak_pulse_knob_code != UINT16_MAX) {
pulse_width = inputs.tweak_pulse_knob_code;
}
pulse_width +=
(fix16_mul(F16(GEM_PULSE_WIDTH_MOD_MAX), fix16_mul(lfo_factor, inputs.lfo_amplitude))) >> 16;
pulse_width += (fix16_mul(F16(GEM_PULSE_WIDTH_MOD_MAX), fix16_mul(lfo_factor, inputs.lfo_amplitude))) >> 16;
}

// Up until this point, pulse width is defined as 0 -> 4095, however, the pulse width's
Expand Down

0 comments on commit a1c3be6

Please sign in to comment.