#include <curves.h>
A warped-range map, based on 1/x.
Static Methods | |
| static Reciprocal< Sample > | barkScale () |
| Decent approximation to the Bark scale. | |
| static Reciprocal< Sample > | barkRange (Sample lowHz, Sample highHz) |
| Returns a map from 0-1 to the given (non-negative) Hz range. | |
Methods | |
| Reciprocal (Sample y0, Sample y1, Sample y2) | |
| If no x-range given, default to the unit range. | |
| 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 Reciprocals together in sequence. | |
|
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 Reciprocals together in sequence.