music-note

Crates.iomusic-note
lib.rsmusic-note
version0.3.1
sourcesrc
created_at2022-04-25 00:20:08.13573
updated_at2022-08-10 21:26:50.899684
descriptionMusic theory library with midi, notes, chords, scales, and more
homepage
repositoryhttps://github.com/matthunz/music-theory
max_upload_size
id573376
size44,292
Matt Hunzinger (matthunz)

documentation

README

Music theory library with midi, notes, chords, scales, and more

use music_note::{midi, Chord, Pitch};

let chord = Chord::from_midi(
    midi!(C, 4),
    [midi!(E, 3), midi!(G, 3), midi!(C, 4)]
);

assert_eq!(chord.to_string(), "C/E");

let pitches = [Pitch::E, Pitch::G, Pitch::C];
assert!(chord.into_iter().eq(pitches));
Commit count: 308

cargo fmt