Go Down

Topic: Distance sensor to MIDI (Read 746 times) previous topic - next topic



I have 3 distance sensors connected to the arduino board, and I want to send their data as MIDI output through Arduino.

have used the program MIDI - OX and Roland serial MIDI to get the data as a MIDI file.

The only problem is that I get his error: "Roland serial MIDI Input: A device ID has been used that is out of range for your system."

Does anyone know what this means? Or can anyone help?

Here is the code that we used:

// command bytes
byte status_byte = 176; // control change on channel 1
byte cc_number = 0; // value for control number

// init transfer and operation values
byte data_send = 0; // stores outgoing byte for spi bus

// init looping and working values
int workPort = 0; // working value for outgoing port
int workAn = 0; // working value for analog input

// setup begins here
void setup() {
Serial.begin(31250); // open serial port

// main program begins here
void loop() {

for(int i = 0; i <= 15; i ++) // loop the following code 8 times
cc_number = 20 + i; // set control number to between 20 and 25 depending on loop iteration
Serial.print(status_byte); // send status byte
Serial.print(cc_number); // send CC number
Serial.print(data_send); // send data value
// loop back...
// loop back...

And the code that we got from this forum for the MIDI - OX program:

Windows Registry Editor Version 5.00

1drJA\0000\Device Parameters]

Save as foo.reg

Can anyone help us?




that's a Windows message telling you the IRQ or something similar is wrong for the midi card...
The message is not related to the Arduino code.

Go Up