processing arduino library & serial library problem when used with midiBus library
in
Contributed Library Questions
•
1 year ago
Hey guy's -- I am getting a really annoying error that keeps happening when using the arduino library along with the midi library -- here it is:
java.io.IOException: Input/output error in writeByte
at gnu.io.RXTXPort.writeByte(Native Method)
at gnu.io.RXTXPort$SerialOutputStream.write(RXTXPort.java:1093)
at processing.serial.Serial.write(Unknown Source)
at cc.arduino.Arduino.digitalWrite(Arduino.java:236)
at BASIC_2.controllerChange(BASIC_2.java:139)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at themidibus.MidiBus.notifyPApplet(Unknown Source)
at themidibus.MidiBus$MReceiver.send(Unknown Source)
at com.sun.media.sound.AbstractMidiDevice$TransmitterList.sendMessage(AbstractMidiDevice.java:675)
at com.sun.media.sound.MidiInDevice.callbackShortMessage(MidiInDevice.java:158)
at com.sun.media.sound.MidiInDevice.nGetMessages(Native Method)
at com.sun.media.sound.MidiInDevice.run(MidiInDevice.java:126)
at java.lang.Thread.run(Thread.java:662)
The MidiBus Warning: Disabling controllerChange(int channel, int number, int value) because an unkown exception was thrown and caught
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at themidibus.MidiBus.notifyPApplet(Unknown Source)
at themidibus.MidiBus$MReceiver.send(Unknown Source)
at com.sun.media.sound.AbstractMidiDevice$TransmitterList.sendMessage(AbstractMidiDevice.java:675)
at com.sun.media.sound.MidiInDevice.callbackShortMessage(MidiInDevice.java:158)
at com.sun.media.sound.MidiInDevice.nGetMessages(Native Method)
at com.sun.media.sound.MidiInDevice.run(MidiInDevice.java:126)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Error inside Serial.write()
at processing.serial.Serial.errorMessage(Unknown Source)
at processing.serial.Serial.write(Unknown Source)
at cc.arduino.Arduino.digitalWrite(Arduino.java:236)
at BASIC_2.controllerChange(BASIC_2.java:139)
... 10 more
anyone else run into this problem?? any ideas on how to stop this error from happening?? I have arduino.serialWrite functions being called when midi data is being read -- is this the problem??
2