addd midi test parameter (temp for fixing)
This commit is contained in:
parent
432b52ad6a
commit
16b05b2e1e
3 changed files with 5 additions and 4 deletions
|
@ -3472,8 +3472,8 @@ public class Client implements IThreadListener {
|
||||||
this.audio.alMidi(midi);
|
this.audio.alMidi(midi);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testMidi() {
|
public void testMidi(int start) {
|
||||||
MidiHandle midi = new MidiHandle(this.midiVoices, this.midiBank, this.midiKeep, this.midiUnknown, this.midiVelocity);
|
MidiHandle midi = new MidiHandle(this.midiVoices, this.midiBank, this.midiKeep, this.midiUnknown, this.midiVelocity, start);
|
||||||
midi.setDebug(this.midiDebug);
|
midi.setDebug(this.midiDebug);
|
||||||
this.audio.alMidi(midi);
|
this.audio.alMidi(midi);
|
||||||
}
|
}
|
||||||
|
|
|
@ -7870,12 +7870,13 @@ public class AudioInterface implements Runnable {
|
||||||
this.playing = true;
|
this.playing = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MidiHandle(int voices, MidiBank bank, boolean keep, boolean useunkn, int velofunc) {
|
public MidiHandle(int voices, MidiBank bank, boolean keep, boolean useunkn, int velofunc, int start) {
|
||||||
this.tracks = null;
|
this.tracks = null;
|
||||||
this.tpqn = 0;
|
this.tpqn = 0;
|
||||||
this.nowait = false;
|
this.nowait = false;
|
||||||
this.chip = new OPLChip(48000, voices, 0, false, false);
|
this.chip = new OPLChip(48000, voices, 0, false, false);
|
||||||
this.bank = new BankHandle(this.chip, bank.getData(), keep, useunkn, (byte)velofunc);
|
this.bank = new BankHandle(this.chip, bank.getData(), keep, useunkn, (byte)velofunc);
|
||||||
|
this.ticktime = start;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTempo(int tempo) {
|
private void setTempo(int tempo) {
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class GuiMenu extends Gui {
|
||||||
}, "MIDI-Player"));
|
}, "MIDI-Player"));
|
||||||
this.add(new ActButton(0, 130, 180, 0, new ButtonCallback() {
|
this.add(new ActButton(0, 130, 180, 0, new ButtonCallback() {
|
||||||
public void use(ActButton elem, PressType action) {
|
public void use(ActButton elem, PressType action) {
|
||||||
GuiMenu.this.gm.testMidi();
|
GuiMenu.this.gm.testMidi(22);
|
||||||
}
|
}
|
||||||
}, "MIDI-Bank testen"));
|
}, "MIDI-Bank testen"));
|
||||||
this.add(new ActButton(0, 150, 180, 0, new ButtonCallback() {
|
this.add(new ActButton(0, 150, 180, 0, new ButtonCallback() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue