This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template<typename Sample=double> | |
| struct BarkScale { | |
| Sample barkToHz(Sample bark) const { | |
| return (a + b*bark)/(c + d*bark); | |
| } | |
| Sample hzToBark(Sample hz) const { | |
| return (c*hz - a)/(b - d*hz); | |
| } | |
| Sample barkToBw(Sample bark) const { | |
| Sample div = c + d*bark; |
OlderNewer