Trait monochord::tuning::Tuning [] [src]

pub trait Tuning {
    fn reference_pitch(&self) -> Hz;
    fn pitch(&self, step: i32) -> Option<Hz>;

    fn interval(&self, from: i32, to: i32) -> Option<Cents> { ... }
}

A general trait for tunings.

tun.pitch(0) should be the same as Some(tun.reference_pitch())

Required Methods

Returns the reference pitch of the tuning

Returns the pitch of a step

Provided Methods

Returns an interval from one step to another

Implementors