theMidiBus: Problems with Latency
in
Contributed Library Questions
•
2 years ago
Hello!
I'm just testing the midiBus Library,
and have some severe latency of maybe 200-300 ms, when i send midi notes to the Java Midi Synthesizer -
Could this be a problem of usinge the Java Midi Synth?
I don't have a midi device/software available at the moment to test as well..
Has anyone similar experiences?
Also, using proMidi doesn't work on my system, so need to use midiBus
System: Win 7, Processing 1.2.1
Sketch:
I'm just testing the midiBus Library,
and have some severe latency of maybe 200-300 ms, when i send midi notes to the Java Midi Synthesizer -
Could this be a problem of usinge the Java Midi Synth?
I don't have a midi device/software available at the moment to test as well..
Has anyone similar experiences?
Also, using proMidi doesn't work on my system, so need to use midiBus
System: Win 7, Processing 1.2.1
Sketch:
- import themidibus.*; //Import the library
MidiBus myBus; // The MidiBus
void setup() {
size(400,400);
background(0);
MidiBus.list(); // List all available Midi devices on STDOUT. This will show each device's index and name.
myBus = new MidiBus(this, -1, "Java Sound Synthesizer"); // Create a new MidiBus with no input device and the default Java Sound Synthesizer as the output device.
}
void draw() {
}
void keyPressed(){
int channel = 0;
int pitch = 64;
int velocity = 127;
myBus.sendNoteOn(channel, pitch, velocity); // Send a Midi noteOn
}
void keyReleased(){
int channel = 0;
int pitch = 64;
int velocity = 127;
myBus.sendNoteOff(channel, pitch, velocity); // Send a Midi noteOn
}
1