I do not understand how to catch tempo.
So still use some shitty way to use tempo to my output.
I really thinks that just using NOTE_ON & NOTE_OFF timings will give me real time.
But this output still played too slow in C++.
P.S.
We use only ONE VOICE midis when playing that. (It's just for fun, some computers in our class room is playing some 2+ VOICE music synchronized).
Here is my code:
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import javax.sound.midi.*;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import static java.lang.Math.*;
public class MidiReader {
public static final float DEFAULT_TEMPO &