Class: Score

music21.stream. Score

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
svg DOMObject
e Event
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
xPxScaled number <optional>
systemIndex number <optional>
Source:
Returns:

usually a Measure

Type
music21.stream.Stream

<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
params object
  • 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 .left and .top attributes 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 scaledYRelativeToSystem

Parameters:
Name Type Description
y number

the scaled Y

Source:
Returns:

Array systemIndex, scaledYRelativeToSystem

Music21j, Copyright © 2013-2018 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.5.5 on Wed Jul 4th 2018 using the DocStrap template.