[][src]Trait johnston::Ratio

pub trait Ratio {
    fn cents(&self) -> f32;
fn harmonic(self, partial: u32) -> Rational;
fn ordinal(&self) -> Ordinal;
fn invert_ordinal(self) -> Rational;
fn limit(&self) -> i32;
fn walk(&self, times: usize) -> Vec<Pitch>;
fn flatten(self) -> Rational; }

Required methods

fn cents(&self) -> f32

fn harmonic(self, partial: u32) -> Rational

fn ordinal(&self) -> Ordinal

fn invert_ordinal(self) -> Rational

fn limit(&self) -> i32

fn walk(&self, times: usize) -> Vec<Pitch>

fn flatten(self) -> Rational

Loading content...

Implementations on Foreign Types

impl Ratio for Rational[src]

Loading content...

Implementors

Loading content...