Struct monochord::tuning::MidiTuning [] [src]

pub struct MidiTuning { /* fields omitted */ }

A map from MIDI notes to pitches

This is what your synth should actually use

Methods

impl MidiTuning
[src]

Lineary maps the tuning to MIDI steps. refkey is a MIDI note of the reference pitch.

Creates MidiTuning from a slice of pitches

Trait Implementations

impl Debug for MidiTuning
[src]

Formats the value using the given formatter.

impl Clone for MidiTuning
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for MidiTuning
[src]

Makes 12EDO tuning with A440 at MIDI note 69

impl Tuning for MidiTuning
[src]

Returns the reference pitch of the tuning

Returns the pitch of a step

Returns an interval from one step to another

impl Index<usize> for MidiTuning
[src]

The returned type after indexing

The method for the indexing (container[index]) operation