-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendControlChange(); generating NoteOn messages #41
Comments
You're not the only one with this kind of issue, I'll have a look and see if I can find and resolve this bug. Thanks for reporting ! |
I wasn't able to reproduce this (although I use a Leonardo, but I don't think it matters): However, I'm considering implementing feature request #40, which would let you remap PitchBend messages to CC80 without losing thru for all other messages. |
That would be very useful! Very much looking forward to 4.3 Thanks for trying - in the meantime I've opted to send the 3 bytes like this and everything works as long as I don't use thru: void TranslatePitchBend(byte channel, int bend)
{
CCPitch = 1+ 127* float(
(bend - PITCHBENDMIN)/
float(PITCHBENDMAX-PITCHBENDMIN));
// MIDI.sendControlChange(80, CCPitch, channel);
Serial.write(byte(175+channel));
Serial.write(byte (80));
Serial.write(byte(CCPitch));
} If I enable thru, PitchBend and any pots that send CC seem to be sending NoteON instead of PitchBend or CC. Setting |
It could be that your receiving device simply does not handle Running Status. What hardware were you using to capture the MIDI stream coming out of the Arduino ? |
There are many possible explanations for your NoteOn issues, one of which (after your driver not supporting Running Status) being that the stream started before the driver was ready, hence causing it to not receive the first status byte, but only data bytes. Interpreting them as NoteOn could be a default value for the Running Status implementation of the driver. I'm closing this for now as I was not able to reproduce it on my tests ( |
Hey, I'm trying to use an Arduino Uno to create a device to do all sorts of MIDI manipulation, including turning PitchBend messages into CC messages (I have a sequencer that doesn't accept pitch bend, but uses a CC value for pitch shifting).
For some reason, in this particular project, when I use MIDI.sendControlChange, I get a load of NoteOn messages:
Link to screenshot on imgur
Here's a simplified version of part of a sketch I've written. I've not mentioned NoteOn at all here - any ideas of what could be happening? Thanks in advance!
The text was updated successfully, but these errors were encountered: