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(canvas, e) → {Array}

Parameters:
Name Type Description
canvas DOMObject
e Event
Source:
Returns:

[diatonicNoteNum, m21Element]

Type
Array

<static> Score#getMaxMeasureWidths() → {Array.<number>}

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:
Type
Array.<number>

<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
Music21j, Copyright © 2013-2016 Michael Scott Cuthbert and cuthbertLab.
Documentation generated by JSDoc 3.4.3 on Wed Jul 26th 2017 using the DocStrap template.