Skip to content

Commit

Permalink
Remove unnecessary parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
joculatrix committed Sep 12, 2024
1 parent 3ffc1ee commit 462f730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/synth/osc/oscillator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl PitchController {
/// then combined with `lsb` via bitwise OR.
fn pitch_bend(&mut self, lsb: u8, msb: u8) {
let mut pitch_bend: u16 = (msb as u16) << 7;
pitch_bend |= (lsb as u16);
pitch_bend |= lsb as u16;
self.pitch_bend = (pitch_bend as f64 - 8192_f64) / 8191_f64;
}

Expand Down

0 comments on commit 462f730

Please sign in to comment.