MidiContext midiContext = new MidiContext();
int resolution = midiContext.getResolution(smafTracks);
Debug.println("resolution: " + resolution);
Sequence midiSequence = new SmafVaviSequence(Sequence.PPQ, resolution, 1);
javax.sound.midi.Track midiTrack = midiSequence.getTracks()[0];
midiTrack.add(midiContext.getTempoEvent());
for (int i = 0; i < smafTracks.length; i++) {