Thanks for the reply, this is my code:
const int button1 = 2; // the number of the pushbutton pin
int buttonState = 0;
void setup() {
pinMode(button1, INPUT);
Serial.begin(31250);
}
void loop(){
buttonState = digitalRead(button1);
if (buttonState == HIGH) {
noteOn(0x90, 0x1E, 0x45);
delay(100);
}
}
void noteOn(int cmd, int pitch, int velocity) {
Serial.write(cmd);
Serial.write(pitch);
Serial.write(velocity);
}
In the Serial-Midi Converter, I can choose different speed rates: 31250, 38400, 57600, 115200. Which should I use?
Thanks