After that, Midi wanted to add Custom Control (CC) to reduce the number of channels 0 and 1 to 10% using ShortMessage:
http://www.jsresources.org/examples/MidiPlayer.html
I believe that this did not decrease the volume immediately after the start of midi playback.
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?
source
share