- } 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);
- sequencer.startRecording();
- Moosique.setEdited();
- } else {
- record.setText("Record");
- mtv.disableKeyboardRecording();
- sequencer.stopRecording();
- sequencer.recordDisable(track);
- mtv.placeNoteElements(quantize);
- }