Expand description
A faster implementation of sine. It’s not that much faster than Rust’s built in sine function. But YMMV.
Don’t forget to call init_cos_tab before using this!
use synfx_dsp::*;
init_cos_tab(); // Once on process initialization.
// ...
assert!((fast_sin(0.5 * std::f32::consts::PI) - 1.0).abs() < 0.001);