Created
August 3, 2013 00:00
-
-
Save ryanbriones/6144388 to your computer and use it in GitHub Desktop.
JSON musical notation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key_signature": { | |
"name": "C major", | |
"sharps": [], | |
"flats": [], | |
}, | |
"time_signature": { | |
"upper": 4, | |
"lower": 4 | |
}, | |
"notes": [ | |
{"note": "C2", "length": 0.25}, | |
{"note": "C2", "length": 0.25}, | |
{"note": "G2", "length": 0.25}, | |
{"note": "G2", "length": 0.25}, | |
{"note": "A2", "length": 0.25}, | |
{"note": "A2", "length": 0.25}, | |
{"note": "G2", "length": 0.5}, | |
] | |
} |
@danmelnick I was kind of a fan of the "implicit meaning" of an array of notes, but this is better. You could add a "name" property for displaying the chords above the staff notation for guitars or whatnot.
Is there a general name for the "atoms" of musical notation (notes, chords, rests, tempo changes, etc)?
http://www.lilypond.org/text-input.html
This is interesting... except for the LaTeX. Thanks to @trptcolin
may I recommend this course & teacher? I took it & found it helpful
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not totally crazy, but I'm wondering how you'd stack notes for chords.
You could nest a chord I guess:
You'd also need a type for rests, and some way to notate ties.