2021-07-24 16:40:59 +00:00
|
|
|
pub mod buffers;
|
2021-09-16 13:26:41 +00:00
|
|
|
pub mod crossfade;
|
2021-07-31 09:23:11 +00:00
|
|
|
pub mod delay;
|
2021-08-13 19:42:24 +00:00
|
|
|
pub mod envelope;
|
2021-07-24 16:40:59 +00:00
|
|
|
pub mod logs;
|
|
|
|
pub mod pitch;
|
2021-07-24 20:25:18 +00:00
|
|
|
pub mod threeband;
|
2021-08-02 14:56:42 +00:00
|
|
|
|
|
|
|
pub fn hermite(frac: f32, xm1: f32, x0: f32, x1: f32, x2: f32) -> f32 {
|
|
|
|
let c = (x1 - xm1) * 0.5;
|
|
|
|
let v = x0 - x1;
|
|
|
|
let w = c + v;
|
|
|
|
let a = w + v + (x2 - x0) * 0.5;
|
|
|
|
let b_neg = w + a;
|
|
|
|
|
|
|
|
(((a * frac) - b_neg) * frac + c) * frac + x0
|
|
|
|
}
|