]> ruin.nu Git - moosique.git/blobdiff - MooTrackView.java
no message
[moosique.git] / MooTrackView.java
index 96bfd006fc521ff7a5718a7e0bbdb6a8cfe95567..873e2d80191b575d080e91286dd22ed06f567c5d 100644 (file)
@@ -133,7 +133,9 @@ public class MooTrackView extends JPanel {
                // 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;