staff

Crates.iostaff
lib.rsstaff
version0.11.0
sourcesrc
created_at2022-08-10 21:27:27.749607
updated_at2023-09-18 05:36:54.300866
descriptionMusic theory library with midi, notes, chords, scales, and more
homepagehttps://staff-rs.github.io
repositoryhttps://github.com/staff-rs/staff
max_upload_size
id642905
size95,393
Matt Hunzinger (matthunz)

documentation

README

Staff

crate documentation

Website

Music theory and score rendering library with midi, notes, chords, scales, and more.

Usage

use staff::{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));

Features

  • render: Enable render module
    • svg: Enable rendering to SVG
  • synth: Enable synth module for
  • serde: Impl Deserialize and Serialize for many crate types
Commit count: 316

cargo fmt