Struct monochord::Cents [] [src]

pub struct Cents(pub f32);

Cent is the standard unit of musical interval.

12 EDO semitone is 100 cents large while an octave is 1200 cents large.

Methods

impl Cents
[src]

Trait Implementations

impl Debug for Cents
[src]

Formats the value using the given formatter.

impl Clone for Cents
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Cents
[src]

impl PartialEq for Cents
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Add<Cents> for Cents
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Cents> for Cents
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<f32> for Cents
[src]

The resulting type after applying the * operator

The method for the * operator