X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooTrackView.java;h=4b033c1f4184fe7c8395b7092d4301eb74fdd0b9;hb=948e069926266ead58bc5466520e131941f2466c;hp=7b9decfc393446a76a87541409f44b35cd084d00;hpb=202c33e20594aa60904a90e827b3a4a22fb4aa30;p=moosique.git diff --git a/MooTrackView.java b/MooTrackView.java index 7b9decf..4b033c1 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -79,13 +79,13 @@ public class MooTrackView extends JPanel { } } - int beatsPerSixteenth = Moosique.getSequence().getResolution() / 4; + int ticksPerSixteenth = Moosique.getSequence().getResolution() / 4; MooNote mn = elem.getNote(); Insets insets = getInsets(); int x, y, height; x = insets.left; - y = insets.top + (int)(mn.getTick() / beatsPerSixteenth) * NOTE_HEIGHT; - height = (mn.getDuration() / beatsPerSixteenth) * NOTE_HEIGHT; + y = insets.top + (int)(mn.getTick() / ticksPerSixteenth) * NOTE_HEIGHT; + height = (mn.getDuration() / ticksPerSixteenth) * NOTE_HEIGHT; if (height == 0) height = NOTE_HEIGHT; r = new Rectangle(x, y, NOTE_WIDTH, height); while(isOccupied(r)) r.translate(NOTE_WIDTH, 0);