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

Method addNote

packages/alphatab/src/model/Beat.ts:808–815  ·  view source on GitHub ↗
(note: Note)

Source from the content-addressed store, hash-verified

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);

Callers 4

_buildModelMethod · 0.95
readGraceMethod · 0.95
ensureBeatMethod · 0.95
cloneMethod · 0.95

Calls 2

pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected