Hi. I am attempting to make a program that plays a midi file, like a sequencer would do, but also have the sequencer send off any NOTE_ON or NOTE_OFF messages to an external method. I have looked through the api and cannot find exactly what I am looking for. I was hoping someone on these forums could help.
This is what I came up with, but I'm not exactly sure how to implement it.
I have thought of two options.
1. Open the source for the Transmitter class and have it send to an ArrayList of Recievers, instead of just one. (Not my first choice)
2. Add two transmitters or Recievers to the sequencer. (not sure how to do, as the only metohds are to return transmitters and recievers; not add any.)
I have been working on this for a while, and am getting tired of running into walls. Any help or comments would be appreciated. Thank you.