Following this Midi player and wanted to add a Custom Control (CC) to reduce Channel 0 and 1 volume to 10% using ShortMessage: http://www.jsresources.org/examples/MidiPlayer.html
I find it didn't reduce the volume right after the midi song start playing.
ShortMessage volMessage = new ShortMessage();
for(int i=0;i<2;i++) {
try{
volMessage.setMessage(ShortMessage.CONTROL_CHANGE,i, 7, 10);
} catch(InvalidMidiDataException e) {}
midiReceiver.send(volMessage,-1);
}
Has anyone done using ShortMessage to control MIDI channels?