Struct monochord::Hz [] [src]

pub struct Hz(pub f32);

Hertz is the standard unit of frequency.

It is also the standard unit of pitch as well.

Trait Implementations

impl Debug for Hz
[src]

Formats the value using the given formatter.

impl Clone for Hz
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Hz
[src]

impl PartialEq for Hz
[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 Hz
[src]

You can add an interval to Hz. For example:

Hz(440.0) + Cents(702.0); // Hz(660.0)

The resulting type after applying the + operator

The method for the + operator

impl Sub<Cents> for Hz
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<f32> for Hz
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<Hz> for Hz
[src]

Hz(b) / Hz(a) is equivalent to Cents::from_ratio(b / a).

The method for the / operator