Skip to main content

mutate

Function mutate 

Source
pub fn mutate(g: &Genome<'_>, seed: &mut u64, strength: f32)
Expand description

Mutate a single gene slot. strength in [0, 1]: 0.0 → no-op, 0.3 → gentle drift (default), 1.0 → wild.

Freq snaps to the closest golden-pentatonic note around its current value so the voice never strays into clashing intervals.