MUSIQ

MUSIQ: a javascript library for note and chord analysis
Properties:
Name Type Description
noteNames array array of common note names
notePositions array array of semitones for the notes in noteNames
sharpNames array all notes represented with sharps
flatNames array all notes represented with flats
accidentals array accidentals that can be used for the notes
cofPositions array position on the circle of fifths
tonicPositions array preferred tonics for note lookup
signatures array signatures (-1 means 1 flat, 1 means 1 sharp)
solfege array solfege names
intervalNames array names of the intervals
chordExtensionNotes array
chords array a list of the most commonly occuring chords (in JSON format)
scales array
Source:

Members

<static> accidentals

accidentals that can be used for the notes
Source:

<static> chords

a list of the most commonly occuring chords in JSON format
Source:

<static> cofPositions

position on the circle of fifths
Source:

<static> flatNames

the flat names for all the notes
Source:

<static> guitar

guitar stuff
Source:

<static> intervalNames

names of the intervals
Source:

<static> NOTE_REGEX

SOME REGULAR EXPRESSION MATCHES
Source:

<static> noteNames

the normal names of the notes
Source:

<static> notePositions

positions of the normal notes
Source:

<static> sharpNames

the sharp names for all the notes
Source:

<static> signatures

signatures -1 means 1 flat, 1 means 1 sharp
Source:

<static> solfege

solfege names
Source:

<static> tonicPositions

preferred tonics for note lookup
Source:

Methods

<static> isValidChord(string notation) → array

Parameters:
Name Type Description
notation string string notation to check if valid
Source:
Returns:
matches from the regular expression if it's a valid chord 0 : the whole matched name 1 : the note 2 : any specified accidentals 3 : chord indicator / name
Type
array

<static> isValidChordList(array list) → boolean

Parameters:
Name Type Description
list array list of strings with chord names
Source:
To Do:
  • - implement function
Returns:
true if all chords are valid
Type
boolean

<static> isValidNote(string notation) → boolean

isValidNote
Parameters:
Name Type Description
notation string a string notation for a note
Source:
Returns:
true if the note can be parsed into a Note object
Type
boolean

<static> isValidNoteList(array list) → boolean

Parameters:
Name Type Description
list array
Source:
Returns:
true if the list (in string format) is a valid list we can use thesse delimiters: " " (space), "," (comma) and "|" (pipe) more probably to follow...
Type
boolean

<static> isValidScale(string notation) → boolean

Parameters:
Name Type Description
notation string -
Source:
Returns:
true if it's a valid scale
Type
boolean

<static> isValidScaleList() → boolean

Source:
To Do:
  • implement function
Returns:
true if
Type
boolean

<static> match(string name) → array

the very powerful match() function takes a string and tries to find all the matches, be it notes, chords or scales.
Parameters:
Name Type Description
name string a name of a note, chord or scale
Source:
Returns:
- an array of match objects (Note/Scale/Chord)
Type
array