- } 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 (disabled?,
- "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);
- java.util.List newNotes = Moosique.convertTrack(track, quantize);
- mtv.placeNewNotes(newNotes);
- }