From 43e2823caf1642779839312ad71bf5c86d8162ad Mon Sep 17 00:00:00 2001 From: Einar Pehrson Date: Wed, 21 May 2003 06:38:16 +0000 Subject: [PATCH] no message --- MooTrackTitle.java | 9 ++++++++- MooTrackView.java | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/MooTrackTitle.java b/MooTrackTitle.java index f7f5c07..3ec0b63 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -175,7 +175,14 @@ public class MooTrackTitle extends JPanel { Moosique.setTrackSolo(track, selected); } else if (source == record) { Sequencer sequencer = Moosique.getSequencer(); + boolean quantize = false; if (record.getText() == "Record") { + /* Show a dialog with: + "Track" combo box, + ("Channel" combo box,) + "Quantize" checkbox and + "Start Recording" button. + */ record.setText("Stop"); mtv.enableKeyboardRecording(); sequencer.recordEnable(track, channel); @@ -186,7 +193,7 @@ public class MooTrackTitle extends JPanel { mtv.disableKeyboardRecording(); sequencer.stopRecording(); sequencer.recordDisable(track); - mtv.placeNoteElements(); + mtv.placeNoteElements(quantize); } } } diff --git a/MooTrackView.java b/MooTrackView.java index 96bfd00..873e2d8 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -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; -- 2.39.2