public void addNote(BaseNote note) { if (currentBar == null) { currentBar = new Bar(); } currentBar.addNote(note, getMaxBarDuration()); if (currentBar.getDuration() >= getMaxBarDuration()) { newBar(); } }
public void addNote(BaseNote note, float duration) { notes.Add(note); }