Hi there,
I recently started a project making a simple foot pedal with 9 push buttons (like these: Elektronik und Technik bei reichelt elektronik günstig bestellen...=2&ARTICLE=19988&GROUPID=3277&artnr=T+250A+WS ) and a Arduino Pro Micro (like that: https://www.sparkfun.com/products/12640 ).
It is supposed to controll a Looper, a DAW, virtual Instruments, whatever (probably in the future).
I connected the buttons to GROUND and directly to the digital PINs using INPUT_PULLUP instead of physical resistors. As simple as it could be.
But as I am new to coding and don't have too much time learning about all those things (even though I'm actually enjoying it), I just came along with some problems:
It seems that the buttons send more than just one signal as they should. They send one when pressed, and one when releasing. Sometimes probably even more. I'm not shure.
But also I have some trouble with connecting the whole thing as a MIDI Device and using it in a DAW (Cakewalk SONAR in my case), for example.
So if I run Hairless Midi (before that having started LoopMidi with a new LoopMidi Port) and press some buttons, I can see input and it seems to be correct. Ecxept of errors like in that example:
+9.014 - Warning: got a status byte when we were expecting 2 more data bytes, sending possibly incomplete MIDI message 0x81
+9.014 - Serial In: Ch 2: Note %2 off velocity %3
+9.014 - Serial In: Ch 1: Note 40 on velocity 127
+9.014 - Warning: got a status byte when we were expecting 1 more data bytes, sending possibly incomplete MIDI message 0x90
I have an USB audio interface (Focusrite Scarlett 2i4) which I use as my soundcard in the DAW. Choosing loopMIDI for the MIDI IN and MIDI OUT in Hairless Midi gives me those errors above and I can't get any MIDI signal in my DAW. Choosing Microsoft GS Wavetable Synth for the MIDI OUT I can hear a piano with a quite big latency (around half a second probably), where I also can hear that the buttons trigger more than once.
Being new to programming, I really would appreciate any help and be very thankful!