quartic 0.1.0

Music theory primitives
Documentation
  • Coverage
  • 70.97%
    44 out of 62 items documented1 out of 31 items with examples
  • Size
  • Source code size: 49.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 5.83 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • tiehuis/quartic
    4 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tiehuis

A library for dealing with music theory fundamentals.

Currently this only provides support for some chord representation and simplistic parsing.

Examples

use quartic::chord::{Chord, ChordStructure, Note, NoteClass, PitchClass};

/// Manual construction of a A#Maj13(#5,#11)
let root = Note::new(NoteClass::A, 1);
let structure = ChordStructure::new()
                    .insert_many(&[
                        (PitchClass::N3, 0),
                        (PitchClass::N5, 1),
                        (PitchClass::N7, 1),
                        (PitchClass::N9, 0),
                        (PitchClass::N11, 1),
                        (PitchClass::N13, 0),
                    ]);

let a = Chord::new(root, structure);