(beat: Beat)
| 114 | } |
| 115 | |
| 116 | public addBeat(beat: Beat): void { |
| 117 | beat.voice = this; |
| 118 | beat.index = this.beats.length; |
| 119 | this.beats.push(beat); |
| 120 | if (!beat.isEmpty) { |
| 121 | this._isEmpty = false; |
| 122 | } |
| 123 | if (!beat.isRest) { |
| 124 | this._isRestOnly = false; |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | private _chain(beat: Beat, sharedDataBag: Map<string, unknown> | null = null): void { |
| 129 | if (!this.bar) { |