private static Synthesizer synthesizer;
private static MidiChannel[] channels;
private static MidiChannel activeChannel;
- private static MetaMessage tempoMsg, timeSigMsg;
+ private static MetaMessage timeSigMsg;
+ private static MetaMessage[] tempoChgMsgs;
private static String filename, fileArg;
private static long editPosition;
if (msg.getStatus() == MetaMessage.META) {
metaMsg = (MetaMessage)msg;
if (metaMsg.getType() == 81) {
- tempoMsg = metaMsg;
+// FLERA!!! tempoMsg = metaMsg;
} else if (metaMsg.getType() == 88) {
timeSigMsg = (MetaMessage)msg;
}
ShortMessage shortMsg;
ArrayList noteOns, noteOffs;
for (int i = 0; i < tracks.length; i++) {
- noteOns = new ArrayList(tracks.length);
- /*
- Collections.sort(track[i].events, new Comparator() {
- public int compare(Object o1, Object o2) {
- return ((MidiEvent)o2).getTick() - ((MidiEvent)o1).getTick();
- }
- });
- */
for (int j = 0; j < tracks[i].size(); j++) {
noteOn = tracks[i].get(j);
if (noteOn.getMessage().getStatus() == ShortMessage.NOTE_ON) {
}
}
}
+
// Sends sequence to GUI and sequencer, then returns
if (gui != null) gui.setSequence(seq);
try {