Skip to main content

Module math

Module math 

Source

Re-exports§

pub use genetic::crossover;
pub use genetic::mutate;
pub use genetic::Genome;
pub use harmony::fold_octave;
pub use harmony::golden_freq;
pub use harmony::golden_pentatonic;
pub use harmony::rand_f32;
pub use harmony::rand_u32;
pub use harmony::PHI;
pub use life::Life;
pub use pulse::beat_phase;
pub use pulse::phrase_phase;
pub use pulse::pulse_decay;
pub use pulse::pulse_sine;
pub use rnd::brown_walk;
pub use rnd::perlin1d;
pub use rnd::value_noise;
pub use sigmoid::ease_in_out;
pub use sigmoid::sigmoid;
pub use sigmoid::smoothstep;
pub use sigmoid::softexp;

Modules§

genetic
Simple evolutionary operators on track parameters.
harmony
Golden-ratio harmony helpers — f32, TUI-facing.
life
Conway’s Game of Life — deterministic, toroidal (wrapping) grid.
pulse
Tempo-synced pulse envelopes.
rhythm
Euclidean rhythm generator (Bjorklund-style) + step-grid helpers.
rnd
Deterministic pseudo-random scalar fields for modulation.
sigmoid
Shaping functions for smooth modulation in [0.0, 1.0].