Function spectrusty_audio::music::equal_tempered_scale_note_freqs
source · pub fn equal_tempered_scale_note_freqs(
hz: f32,
n0: i16,
steps: i16
) -> impl IntoIterator<Item = f32> + Clone + ExactSizeIterator
Expand description
Returns an iterator of equal-tempered scale frequencies (in a single octave) obtained from a given base frequency.
hz
base frequency is in Hz (use 440.0 as a good default).
n0
an index from the base frequency to the first note in the table: 0 is for “A” note, -9 for “C”.
steps
determines how many halftones will be rendered, (12 is the usual number).