1
package org.herac.tuxguitar.player.impl.midiport.fluidsynth;
3
import org.herac.tuxguitar.player.base.MidiControllers;
4
import org.herac.tuxguitar.player.base.MidiOut;
6
public class MidiOutImpl implements MidiOut{
8
private MidiSynth synth;
10
public MidiOutImpl(MidiSynth synth){
14
public void sendSystemReset() {
15
this.synth.sendSystemReset();
18
public void sendNoteOn(int channel, int key, int velocity) {
19
this.synth.sendNoteOn(channel, key, velocity);
22
public void sendNoteOff(int channel, int key, int velocity) {
23
this.synth.sendNoteOff(channel, key, velocity);
26
public void sendControlChange(int channel, int controller, int value) {
27
this.synth.sendControlChange(channel, controller, value);
30
public void sendProgramChange(int channel, int value) {
31
this.synth.sendProgramChange(channel, value);
34
public void sendPitchBend(int channel, int value) {
35
this.synth.sendPitchBend(channel, value);
38
public void sendAllNotesOff() {
39
for(int i = 0; i < 16; i ++){
40
this.sendControlChange(i,MidiControllers.ALL_NOTES_OFF,0);