mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
changed difinition of Vex.Flow.Music
- changed NUM_TONES from static to const - added definitions of helper tables
This commit is contained in:
Vendored
+14
-1
@@ -552,8 +552,21 @@ declare module Vex {
|
||||
postFormat() : void;
|
||||
}
|
||||
|
||||
module Music {
|
||||
const NUM_TONES : number;
|
||||
const roots : string[];
|
||||
const root_values : number[];
|
||||
const root_indices : {[root : string] : number};
|
||||
const canonical_notes : string[];
|
||||
const diatonic_intervals : string[];
|
||||
const diatonic_accidentals : {[diatonic_interval : string] : {note : number, accidental : number}};
|
||||
const intervals : {[interval : string] : number};
|
||||
const scales : {[scale : string] : number[]};
|
||||
const accidentals : string[];
|
||||
const noteValues : {[value : string] : {root_index : number, int_val : number}};
|
||||
}
|
||||
|
||||
class Music {
|
||||
static NUM_TONES : number;
|
||||
isValidNoteValue(note : number) : boolean;
|
||||
isValidIntervalValue(interval : number) : boolean;
|
||||
getNoteParts(noteString : string) : {root : string, accidental : string};
|
||||
|
||||
Reference in New Issue
Block a user