#include <curves.h>
A warped-range map, based on 1/x.
Static Methods | |
static Reciprocal< Sample > | barkScale () |
Decent approximation to the Bark scale. More... | |
static Reciprocal< Sample > | barkRange (Sample lowHz, Sample highHz) |
Returns a map from 0-1 to the given (non-negative) Hz range. More... | |
Methods | |
Reciprocal (Sample y0, Sample y1, Sample y2) | |
If no x-range given, default to the unit range. More... | |
Reciprocal (Sample x0, Sample x1, Sample x2, Sample y0, Sample y1, Sample y2) | |
Sample | operator() (double x) const |
Reciprocal | inverse () const |
Sample | inverse (Sample y) const |
Sample | dx (Sample x) const |
Reciprocal | then (const Reciprocal &other) const |
Combine two Reciprocal s together in sequence. More... | |
|
inline |
If no x-range given, default to the unit range.
|
inlinestatic |
Returns a map from 0-1 to the given (non-negative) Hz range.
|
inlinestatic |
Decent approximation to the Bark scale.
The Bark index goes from 1-24, but this map is valid from approximately 0.25 - 27.5. You can get the bandwidth by barkScale.dx(barkIndex)
.
|
inline |
Combine two Reciprocal
s together in sequence.