Skip to content

tiehuis/quartic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quartic

Build Status Docs Crate

A library for dealing with music theory fundamentals.

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

quartic = "0.1.0"

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);

About

Music Fundamentals Library

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages