Open andrewcsmith opened 7 years ago
Basically, Sample should have a built-in function to switch from 1.0 to -1.0. It's sort of "negation" but in reality we're talking about an inversion around the equilibrium point, so it makes sense that it would live in the Sample crate.
Sample
1.0
-1.0
How about a method called .invert_amplitude()?
.invert_amplitude()
Basically,
Sample
should have a built-in function to switch from1.0
to-1.0
. It's sort of "negation" but in reality we're talking about an inversion around the equilibrium point, so it makes sense that it would live in theSample
crate.