RustAudio / dasp

The fundamentals for Digital Audio Signal Processing. Formerly `sample`.
Other
874 stars 63 forks source link

Inversion around equilibrium #61

Open andrewcsmith opened 7 years ago

andrewcsmith commented 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.

mitchmindtree commented 6 years ago

How about a method called .invert_amplitude()?