18 lines
373 B
Rust
18 lines
373 B
Rust
pub mod buffers;
|
|
pub mod crossfade;
|
|
pub mod delay;
|
|
pub mod envelope;
|
|
pub mod logs;
|
|
pub mod pitch;
|
|
pub mod threeband;
|
|
|
|
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
|
|
}
|