Go Down

Topic: Midi note on problem (Read 1 time) previous topic - next topic

georgemilton

I am currently trying to get a program working to read in from a midi controller in the qnx operating system. After running into all sorts of problems I went back to basics and just monitored the input from my serial port however the data is all messed up. The 0x90 expected to indicate a note on appears as numbers ranging from 60 to 250 and the bytes to indicate the note and velocity are all random too. Anyone encountered a problem like this? The program literary just prints out whats taken in through the serial port so I might be the hardware perhaps?

xray303

Hi,

I bit more details on your project and code example would help the community to give you some hints of what doesn't work ..

are you sure about your baud rate .. are you sure your midi note is always the same ?

ringz

you need to read up on running status in the MIDI spec.

Martyn.

Grumpy_Mike

Quote
The program literary just prints out whats taken in through the serial port

How is it doing this with only one port on a non Mega arduino.

The serial monitor will not run at the MIDI speed so you can't see the results on that.

Quote
The 0x90 expected to indicate a note on appears as numbers ranging from 60 to 250

So those are decimal numbers.
With running status the first byte of a MIDI message is missed out, are you suffering from that?

Go Up