- } else if (command == "Jump...") {
-
- } else if (command == "Add") {
-
- } else if (command == "Delete") {
-
- } else if (command == "Copy track") {
-
- } else if (command == "Move") {
-
- } else if (command == "Insert Measure...") {
-
- } else if (command == "Delete Measure...") {
-
- } else if (command == "Time Signature...") {
-
- } else if (command == "Tempo...") {
-
- } else if (command == "Scale Velocity...") {
-
+ } else if (command == "Set position...") {
+ MooDialog newDialog = new MooDialog(MooDialog.SET_POSITION);
+ // Moosique.setPosition(???); Räkna ut från msr, beats, ticks, time sig.
+ } else if (keyboard.isMenuComponent((JMenuItem)e.getSource())) {
+ MooKeyboard.setOctave(Integer.parseInt(command));
+ } else if (command == "Add track...") {
+ MooDialog newDialog = new MooDialog(MooDialog.ADD_TRACK);
+ Moosique.getSequence().createTrack();
+ } else if (command == "Delete track...") {
+ MooDialog newDialog = new MooDialog(MooDialog.DELETE_TRACK);
+ /* Let the user select a track from a list.
+ seq = Moosique.getSequence();
+ seq.deleteTrack(seq.getTracks()[NUMBER]);
+ */
+ } else if (command == "Copy track...") {
+ MooDialog newDialog = new MooDialog(MooDialog.COPY_TRACK);
+ } else if (command == "Move track...") {
+ MooDialog newDialog = new MooDialog(MooDialog.MOVE_TRACK);
+ } else if (command == "Insert measure...") {
+ MooDialog newDialog = new MooDialog(MooDialog.INSERT_MEASURE);
+ } else if (command == "Delete measure...") {
+ MooDialog newDialog = new MooDialog(MooDialog.DELETE_MEASURE);
+ } else if (command == "Set time signature...") {
+
+ } else if (command == "Set tempo...") {
+ MooDialog newDialog = new MooDialog(MooDialog.SET_TEMPO);
+ } else if (command == "Scale velocity...") {
+ MooDialog newDialog = new MooDialog(MooDialog.SCALE_VELOCITY);