fix tremolo
This commit is contained in:
parent
c3b1693ee4
commit
dd38d049d4
3 changed files with 27 additions and 17 deletions
|
@ -3462,12 +3462,28 @@ public class Client implements IThreadListener {
|
|||
}
|
||||
MidiHandle midi;
|
||||
try {
|
||||
midi = new MidiHandle(data, this.midiNoWait, this.midiVoices, this.midiBank, this.midiKeep, this.midiUnknown, this.midiVelocity);
|
||||
midi = new MidiHandle(data, this.midiNoWait, this.midiVoices, this.midiBank, this.midiKeep, this.midiUnknown, this.midiVelocity) {
|
||||
private int pos = 0;
|
||||
|
||||
public long process() {
|
||||
this.bank.progchange(this.chip, (byte)0, (byte)(this.pos < 128 ? this.pos : 0));
|
||||
this.bank.progchange(this.chip, (byte)9, (byte)0);
|
||||
Log.SOUND.info("MIDI-Test #%d", this.pos);
|
||||
this.bank.noteon(this.chip, this.pos < 128 ? (byte)0 : (byte)9, (byte)(this.pos < 128 ? (byte)36 : (this.pos - 128)), (byte)127);
|
||||
this.pos++;
|
||||
if(this.pos == 128)
|
||||
this.pos = 128 + 35;
|
||||
else if(this.pos == 128 + 82)
|
||||
this.pos = 0;
|
||||
return 1000000000L;
|
||||
}
|
||||
};
|
||||
}
|
||||
catch(Throwable e) {
|
||||
Log.SOUND.error(e, "Konnte MIDI '%s' nicht laden", file);
|
||||
return;
|
||||
}
|
||||
midi.setDebug(this.midiDebug);
|
||||
this.audio.alMidi(midi);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue