new Score()
Scores with multiple parts
- Source:
Extends
Methods
-
<static> Score#estimateStaffLength() → {number}
-
Overrides the default music21.stream.Stream#estimateStaffLength
- Source:
Returns:
- Type
- number
-
<static> Score#evenPartMeasureSpacing() → {music21.stream.Score}
-
Fixes the part measure spacing for all parts.
- Source:
Returns:
this
- Type
- music21.stream.Score
-
<static> Score#findNoteForClick(svg, e) → {Array}
-
Returns a list of [clickedDiatonicNoteNum, foundNote] for a
click event, taking into account that the note will be in different
Part objects (and different Systems) given the height and possibly different Systems.Parameters:
Name Type Description svgDOMObject eEvent - Source:
Returns:
[diatonicNoteNum, m21Element]
- Type
- Array
-
<static> Score#getMaxMeasureWidths()
-
call after setSubstreamRenderOptions
gets the maximum measure width for each measure
by getting the maximum for each measure of
Part.getMeasureWidths();Does this work? I found a bug in this and fixed it that should have
broken it!- Source:
Returns:
Array
-
<static> Score#getStreamFromScaledXandSystemIndex(xPxScaled, systemIndex) → {music21.stream.Stream}
-
Returns the measure that is at X location xPxScaled and system systemIndex.
Always returns the measure of the top part...
Parameters:
Name Type Argument Description xPxScalednumber <optional>
systemIndexnumber <optional>
- Source:
Returns:
usually a Measure
-
<static> Score#numSystems() → {Int}
-
How many systems are there? Calls numSystems() on the first part.
- Source:
Returns:
- Type
- Int
-
<static> Score#playStream(params) → {music21.stream.Score}
-
Overrides the default music21.stream.Stream#playStream
Works crappily -- just starts n midi players.
Render scrollable score works better...
Parameters:
Name Type Description paramsobject - passed to each part
- Source:
Returns:
this
- Type
- music21.stream.Score
-
<static> Score#setSubstreamRenderOptions() → {music21.stream.Score}
-
overrides music21.stream.Stream#setSubstreamRenderOptions
figures out the
.leftand.topattributes for all contained parts- Source:
Returns:
this
- Type
- music21.stream.Score
-
<static> Score#stopPlayStream() → {music21.stream.Score}
-
Overrides the default music21.stream.Stream#stopPlayScore()
- Source:
Returns:
this
- Type
- music21.stream.Score
-
<static> Score#systemIndexAndScaledY(y)
-
systemIndexAndScaledY - given a scaled Y, return the systemIndex
and the scaledYRelativeToSystemParameters:
Name Type Description ynumber the scaled Y
- Source:
Returns:
Array
systemIndex, scaledYRelativeToSystem