// Calculates coordinates.
x = insets.left;
if (quantizeRecording) {
-
+ // Snap to nearest sixteenth
+ y = insets.top + Math.round(mn.getTick() / ticksPerSixteenth) * NOTE_HEIGHT;
+ height = (mn.getDuration() / ticksPerSixteenth) * NOTE_HEIGHT;
} else {
y = insets.top + (int)((mn.getTick() * NOTE_HEIGHT) / ticksPerSixteenth);
height = (mn.getDuration() * NOTE_HEIGHT) / ticksPerSixteenth;