| 5 | #include <cstdlib> |
| 6 | |
| 7 | double randomInRange(double low, double high) { |
| 8 | // There are better randoms than this, and you should use them instead 😛 |
| 9 | double unitRand = rand()/double(RAND_MAX); |
| 10 | return low + unitRand*(high - low); |
| 11 | } |
| 12 | |
| 13 | // This is a simple delay class which rounds to a whole number of samples. |
| 14 | using Delay = signalsmith::delay::Delay<double, signalsmith::delay::InterpolatorNearest>; |