pub fn morph_fields<D: Driver + ?Sized>(
d: &D,
a: &[u8],
b: &[u8],
t: f32,
seed: u64,
) -> Result<Vec<u8>, DriverError>Expand description
Step t (0.0..=1.0) of the way from a to b, over the free fields
(Driver::morph’s default): a dial (Control::Continuous in a)
interpolates; every other free field is a’s until t reaches its
group’s threshold (from seed, within 0.15..0.85), then b’s. So 0 is
a, 1 is b’s sound, and a field never turns back on the way.
Non-free fields and the name are a’s. Parent values out of range are
clamped; a value the program refuses stays a’s.