}
}
- 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);