Crate freqiterator

source ·
Expand description

§FreqIterator

A frequency generator and a scale generator as iterators.

Each generator is very modular and both combined can make scales in any mode and variable TET. Perfect for uses where you need a lot of frequencies and can’t be bothered to calculate everything yourself. Just start a generator, skip some items and you have it.

Structs§

  • Frequency generator. Acts as an iterator yielding notes from low to high pitch. The number of notes in the resulting equal-tempered scale (aka TET) is adjustable.
  • Scale generator. Acts as an iterator yielding notes from low to high pitch. Uses a FreqGenerator to know the next candidate frequency and skips these candidates if they’re not part of the scale. Supports modes. To change the key, shift the first note yielded by its FreqGenerator with skip.

Constants§

  • Frequency of an A at octave 0. Good base for a frequency generator.