Members
-
<constant> aggregation
-
Aggregation -- closer to true multiple inheritance -- prefers last class's functions. See
https://stackoverflow.com/questions/29879267/es6-class-multiple-inheritancenot currently used...
- Source:
-
callbacks :Object
-
An object of callbacks on events.
default:
- click: this.clickHandler
Type:
- Object
- Source:
-
<constant> config :Object
-
Type:
- Object
- Source:
-
<constant> global_usedChannels :Array.<number>
-
Type:
- Array.<number>
- Source:
-
<constant> info :Array.<{fn: string, name: string, midiNumber: number}>
-
Type:
- Array.<{fn: string, name: string, midiNumber: number}>
- Source:
-
<constant> lowestLines :Object
-
Type:
- Object
- Source:
-
<constant> maxMidi :number
-
Type:
- number
- Source:
-
<constant> midiToName :Array.<string>
-
Type:
- Array.<string>
- Source:
-
<constant> nameToLine :Object
-
Type:
- Object
- Source:
-
<constant> nameToMidi :Object
-
Type:
- Object
- Source:
-
<constant> nameToSign :Object
-
Type:
- Object
- Source:
-
<constant> nameToSteps :Object
-
Type:
- Object
- Source:
-
<constant> pathSimplify
-
- Source:
-
<constant> recorderWorkerJs
-
This code does NOT go through babel, so no arrow functions, let, const, etc.
- Source:
-
<constant> stepsToName :Array.<string>
-
Type:
- Array.<string>
- Source:
Methods
-
add(intervalList) → {music21.interval.Interval}
-
Parameters:
Name Type Description intervalList
Array.<music21.interval.Interval> - Source:
Returns:
-
clefFromString(clefString, octaveShift) → {music21.clef.Clef}
-
Parameters:
Name Type Argument Default Description clefString
string octaveShift
number <optional>
0 - Source:
Returns:
- Type
- music21.clef.Clef
-
convertKeyStringToMusic21KeyString(textString) → {string}
-
Parameters:
Name Type Description textString
string - Source:
Returns:
- Type
- string
-
fromRoman(num) → {int}
-
fromRoman - Convert a Roman numeral (upper or lower) to an int.
Parameters:
Name Type Description num
string roman numeral representation of a number
- Source:
Returns:
integer value of roman numeral;
- Type
- int
-
getM21attribute(attribute) → {undefined|*|string}
-
Parameters:
Name Type Argument Default Description attribute
string <optional>
m21conf - Source:
Returns:
- Type
- undefined | * | string
-
loadConfiguration() → {Object}
-
- Source:
Returns:
- Type
- Object
-
makeLayoutFromScore(score, containerWidth) → {LayoutScore}
-
Divide a part up into systems and fix the measure
widths so that they are all even.Note that this is done on the part level even though
the measure widths need to be consistent across parts.This is possible because the system is deterministic and
will come to the same result for each part. Opportunity
for making more efficient through this...Parameters:
Name Type Description score
music21.stream.Score containerWidth
number - Source:
Returns:
- Type
- LayoutScore
-
midiNumDiffFromFrequency(frequency) → {Array.<int>}
-
Parameters:
Name Type Description frequency
Number - Source:
Returns:
[miniNumber, centsOff]
- Type
- Array.<int>
-
mixin()
-
Mix in another class into this class -- a simple form of multiple inheritance.
See articulations.Marcato for an example.- Source:
-
notesToGeneric()
-
Convert two notes or pitches to a GenericInterval;
- Source:
-
posMod(a, b) → {int}
-
posMod - return a modulo value that is not negative
Parameters:
Name Type Description a
int value
b
int modulo
- Source:
Returns:
a mod b between 0 and b - 1
- Type
- int
-
renderHTML()
-
- Source:
Returns:
undefined
-
toRoman(num) → {string}
-
toRoman - Convert a number from 1 to 3999 to a roman numeral
Parameters:
Name Type Description num
int number to convert
- Source:
Returns:
as roman numeral
- Type
- string
-
warnBanner() → {boolean}
-
- Source:
Returns:
- Type
- boolean