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