-\f
-VIKTIGT! Implementera playfunktionens beteende. När play aktiveras ska följande loop köras:
-
- while(sequencer.isRunning()) {
- Moosique.getGUI().update();
- }
-
- i View:
-
- public void update() {
- // Calls on each track view to update itself.
- for (int i = 0; i < trackViews.length; i++) {
- trackViews[i].update();
- }
- }
-
- i GUI:
- public void update(){
- view.update();
- // Calls on the toolbar to update the progress indicator.
- toolbar.updateProgInd();
- }
-
- När låten är slut återställes play-knappen.
-
- Göra detta som en tråd?!?
-
-\f
-x Fixa en progress indicator till filladdningen om den tänker ta så lång tid.
-x Scrollningen?!? Horisontell behövs på både MooView och MooTrackView, men vertikal bara på MooView. Hur göra?
-x Får Moosique vara statisk? Fult?
-
-\f
-MIDI Messages
-
-FF 58 Time signature: [0] / [1], [2] MIDI clocks per metronome tick, [3] / 32 per 24 MIDI clocks
-FF 51 Tempo
-FF 03 Track Name String name = new String(getData());
-C0 Program change int pc = getData1();
-
-
-Sequence
- private ShortMessage timeSignature, tempo;
-Track
- private ShortMessage trackName, programChange;