MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / ensureStaveCount

Method ensureStaveCount

packages/alphatab/src/model/Track.ts:149–153  ·  view source on GitHub ↗
(staveCount: number)

Source from the content-addressed store, hash-verified

147 public style?: TrackStyle;
148
149 public ensureStaveCount(staveCount: number): void {
150 while (this.staves.length < staveCount) {
151 this.addStaff(new Staff());
152 }
153 }
154
155 public addStaff(staff: Staff): void {
156 staff.index = this.staves.length;

Callers 10

_parseTrackMethod · 0.95
readTrackMethod · 0.95
_parseScorePartMethod · 0.95
constructorMethod · 0.80
_parseStavesMethod · 0.80
_parseLayoutMethod · 0.80
_parseAttributesMethod · 0.80
_newTrackMethod · 0.80
startNewStaffMethod · 0.80

Calls 1

addStaffMethod · 0.95

Tested by

no test coverage detected