Type Alias music_theory::theory::scale::Mode

source ยท
pub type Mode = usize;
Expand description

A mode is an index into all possible modes.

Example:

use music_theory::theory::*;
let W = Interval::WHOLE;
let S = Interval::SEMI;
assert_eq!(
    Steps::wrap(
        vec![W, W, S, W, W, W, S] // Ionian mode
    ).unwrap().mode(2 /* this is the mode type (usize) */),
    Steps::wrap(
        vec![S, W, W, W, S, W, W] // Phrygian mode
    ).unwrap()
);