public D_Note(NoteLevel level, int length, NoteTie note_tie = NoteTie.none, int octave = 1, NoteAlteration alteration = NoteAlteration.none, bool is_rest = false) { this.level = level; this.length = length; this.octave = octave; this.alteration = alteration; this.is_rest = is_rest; this.length_modifier = has_length_modifier(length); this.note_tie = note_tie; }
static NoteTieType getNoteTie(NoteTie tie) { return(note_ties[tie]); }