(note: Note)
| 806 | } |
| 807 | |
| 808 | public addNote(note: Note): void { |
| 809 | note.beat = this; |
| 810 | note.index = this.notes.length; |
| 811 | this.notes.push(note); |
| 812 | if (note.isStringed) { |
| 813 | this.noteStringLookup.set(note.string, note); |
| 814 | } |
| 815 | } |
| 816 | |
| 817 | public removeNote(note: Note): void { |
| 818 | const index: number = this.notes.indexOf(note); |
no test coverage detected