/**
* Creates a new note element.
- * @param mn The note that will be graphically represented
+ * @param mn the note that will be graphically represented
+ * @param rows the number of rows that the note will occupy
*/
- public MooNoteElement (MooNote mn) {
+ public MooNoteElement (MooNote mn, int rows) {
note = mn;
}
if (note instanceof MooNote) {
// Adds the note element to the note area.
MooNote mn = (MooNote)note;
- elem = new MooNoteElement(mn);
+ elem = new MooNoteElement(mn, mn.getDuration() / 24);
add(elem);
// Moves the note element to the appropriate place.