-
Notifications
You must be signed in to change notification settings - Fork 0
Valid JSON Notation
Element118 edited this page Oct 10, 2017
·
3 revisions
This article tries to explain the grammar of the notation used.
{
title: String,
composer: String,
arranger: String, // If left out, this takes the value of composer
transcriber: String,
noteMapping: Object, // Used as a hash table
instruments: [{ // An array of objects. All the instruments would be played concurrently.
type: String, // A string, or "custom"
wave: PeriodicWave, // Use audioContext.createPeriodicWave(real, imag) to get a wave
notes: String // described in the grammar below as notes
}]
}- notes:
- number(sections)notes
- "" (empty string)
- number
- integer.digits
- integer:
- (1 to 9)digits
- digits:
- (0 to 9)digits
- ""
- sections:
- section sections
- ""
- section:
- /modifier[section]
- chords
- modifier:
- octave modifier
- integer modifier
- ""
- octave:
- +octave
- -octave
- "" (empty string)
- chords:
- chord,chords
- "" (empty string)
- chord:
- note chord
- note
- note:
- pitch integer
- pitch:
- character octave
- &
- character:
- Any character specified in noteMapping.