Skip to main content

unison_offsets

Function unison_offsets 

Source
pub fn unison_offsets(voices: u8, power: f64) -> Vec<f64>
Expand description

The offsets of voices unison voices as fractions of the outer offset, from lowest to highest.

Position i of ceil(voices / 2) sits at t = (2i + bump) / max(1, voices - 1), with bump 1 for an even count. Its offset is power_scale(t, power), one voice up and one down; an odd count puts one voice at the centre. Renders on the open engine confirm the offsets for 4 and 8 voices at powers 0 and 1.5 within 0.03 cents. Odd counts are not rendered.