Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

set_noise_clock

Function set_noise_clock 

Source
pub fn set_noise_clock(shift: u8, step: u8)
Expand description

Set the shared noise-generator clock, SPUCNT bits 8..=13: shift (0..=15) halves the frequency per step, 0 = highest pitch; step (0..=3) selects the +4..+7 fine increment. Applies to every voice routed to noise via Voice::set_noise_mask.