X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooTrackView.java;h=4b033c1f4184fe7c8395b7092d4301eb74fdd0b9;hp=7b9decfc393446a76a87541409f44b35cd084d00;hb=bad66a3619fc01696605892caeef49249df364ae;hpb=9d5d6dc48ef1650f70db268b2606c5d15a7a4093 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);