Module music_theory::theory::traits
source · Expand description
All traits defined in this crate.
Traits§
- Music theory types that have the ability to have an Interval added to them.
- Convert to Chord.
- Convert to a vector of EnharmonicNote.
- Convert to a vector of EnharmonicNote.
- Try to convert to an Ionian relative string. For example the Ionian relative string of Phrygian is 1 ♭2, ♭3, 4, 5, ♭6, ♭7.
- Convert to PCs.
- Try to convert to relative intervals.
- Convert to RootedChord.
- Convert to Scale.
- Try to convert to Scale.
- Convert to Steps.
- Try convert to Steps.
- The ability to generate subs sets of it’s self.
- Can always generate a next and previous value.
- The ability to spawn an iterator that yields modes.
- Types that have modes (rotations of scales).
- Music theory types that have a notion of being in a certain octave, and can shift or set that octave.
- The ability to spawn an iterator that yields notes. Not very useful for types that already yield notes with their natural iterator.
- Convert to Chord.
- Convert to EnharmonicNote.
- Try to convert to EnharmonicNote.
- Convert to a vector of EnharmonicNote.
- Convert to a vector of EnharmonicNote.
- Convert to Interval.
- Try to convert to an Ionian relative string. For example the Ionian relative string of Phrygian is 1 ♭2, ♭3, 4, 5, ♭6, ♭7.
- Try to convert to Letter.
- Convert to NamedInterval.
- Convert to NamedOctaveInterval.
- Convert to Note.
- Convert to PC.
- Convert to PCs.
- Try to convert to relative intervals.
- Convert to RootedChord.
- Convert to Scale.
- Try to convert to Scale.
- Convert to Steps.
- Try convert to Steps.
- Wrapper around existing vector types. Used for the new type pattern.
- Wrapper around existing types. Used for the new type pattern.