private MooNote note;
private int columns;
private boolean selected;
+ public static final Color bgColor = new Color(160, 218, 255);
/**
* Creates a new note element.
*/
public MooNoteElement (MooNote mn) {
note = mn;
- columns = mn.getDuration() / 24;
+ columns = mn.getDuration() / (Moosique.getSequence().getResolution() / 4);
+ setBorder(BorderFactory.createLineBorder(Color.black));
+ setBackground(bgColor);
}
/**