-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
In order to correctly discern between the score's tree and the actual formatted object graph, we must make the following distinction:
-
add()will now be the method for the developer-facing score model. -
addChild()will now be the method for the internal composite structure. -
Each class will keep track of a
nextLevelDownattribute, so that the implementation of theadd()method can be encapsulated in ScoreComponent as:add(child) { this.nextLevelDown.addChild(child); }Thus, the constructor of ScoreComponent should contain
this.nextLevelDown = thisas the default, and subclasses can modify if needed. For example, Part should havethis.nextLevelDown = this.voiceGroup.