pub trait Scale {
    fn sorted_pitch_of(&self, degree: i32) -> Pitch;
fn find_by_pitch_sorted(&self, pitch: Pitch) -> Approximation<i32>; fn as_sorted_tuning(self) -> SortedTuning<Self>
    where
        Self: Sized
, { ... } }
Expand description

A Scale is a tuning whose Pitches can be accessed in a sorted manner.

Accessing pitches in order can be important, e.g. when handling pitches in a certain frequency window.

Required methods

Returns the Pitch at the given scale degree in the current Scale.

Finds a closest scale degree Approximation for the given Pitch in the current Scale.

Provided methods

Wraps self in a type adapter s.t. it can be used in functions that are generic over Tuning<i32>.

Implementations on Foreign Types

impl forwarding for references.

Implementors