Trait klib::core::note::ToUniversal

source ·
pub trait ToUniversal {
    // Required method
    fn to_universal(self) -> Self;
}
Expand description

A trait which allows for converting a note to the same octave, but using universal Pitches.

Essentially, this would convert an F#4 into a Gb4, since Pitches prefer the flats.

Required Methods§

source

fn to_universal(self) -> Self

Converts this note to a universal pitch.

Object Safety§

This trait is not object safe.

Implementors§