- * Fixa InstrumentList.
-
-\f
-MooGUI
-
- * Global KeyListener
- Görs uppenbarligen så här:
-
- JFrame someFrame = new JFrame();
-
- JComponent rootPane = someFrame.getRootPane();
- ActionMap am = rootPane.getActionMap();
-
- Action helpAction = new AbstractAction() {
- public void actionPerformed(ActionEvent ae) {
- showHelpWindow();
- }};
- am.put("help", helpAction);
-
- InputMap im = rootPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
- KeyStroke helpKey = KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0);
- im.put(helpKey, "help");
-
-
- * Globala kommandon
-
- * Oktavförändring i MooKeyboard
- Mappa F9-F12 till MooKeyboard.setOctave(n) där n = {2, 4, 6, 8}
-
- * Play / Stop
- Mappa till blanksteg. <-- Detta fungerar inte.. blanksteget
- används av vår toolbar.
-
-\f
-Moosique
-
- * getPosition och setPosition - kvar?
-
-\f
-Skräp
-
- // Prints the number of notes in each track
- int count;
- Track[] tracks = seq.getTracks();
- for (int k = 0; k < tracks.length; k++) {
- count = 0;
- for (int j = 0; j < tracks[k].size(); j++) {
- if (tracks[k].get(j) instanceof MooNote) count++;
- }
- System.out.println("Track " + k + ": " + count + " notes.");
- }