How to control the MIDI channel's volume

后端 未结 2 1788
清酒与你
清酒与你 2020-12-19 14:46

I have this code:

Synthesizer synthesizer = MidiSystem.getSynthesizer();
synthesizer.open();
Instrument[] instrument = synthesizer.getDefaultSoundbank().getI         


        
2条回答
  •  盖世英雄少女心
    2020-12-19 14:56

    You can use CC 7 for setting channel volume.

    channel.controlChange(7, value);
    

    see: http://improv.sapp.org/doc/class/MidiOutput/controllers/controllers.html

提交回复
热议问题