Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Commit

Permalink
Tidy up formatting for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchmindtree committed Jul 3, 2016
1 parent bd23241 commit 13c6c35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/oscillator/amplitude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ impl Amplitude for Dynamic {
}
}
}

6 changes: 3 additions & 3 deletions src/oscillator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ impl<W, A, F, FW> Oscillator<W, A, F, FW> {

/// Calculate and return the amplitude at the given ratio.
#[inline]
pub fn amp_at(&self, phase: f64, playhead_perc: f64) -> f32 where
A: Amplitude,
W: Waveform,
pub fn amp_at(&self, phase: f64, playhead_perc: f64) -> f32
where A: Amplitude,
W: Waveform,
{
self.waveform.amp_at_phase(phase) * self.amplitude.amp_at_playhead(playhead_perc)
}
Expand Down
2 changes: 0 additions & 2 deletions src/oscillator/waveform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub trait Waveform {
fn process_hz(&self, hz: f64) -> f64 { hz }
}


/// Twice PI.
const PI_2: f64 = ::std::f64::consts::PI * 2.0;

Expand Down Expand Up @@ -125,4 +124,3 @@ impl Waveform for NoiseWalk {
pitch::ScaledPerc(perc, 0.6).hz() as f64
}
}

0 comments on commit 13c6c35

Please sign in to comment.