Open Predatorex opened 5 years ago
I don't know, sorry. It looks like maybe there is some corruption in the serial data stream from the Arduino, some data is being lost somehow...?
Can you post an example of the simplest possible Arduino MIDI Library sketch that doesn't work, together with the Hairless MIDI/Serial debug log output?
Are there any simple Arduino MIDI Library sketches that do work?
I tried another codes from same library, but most of them acts same like above or not even detect any message (button code), while in serial port appering question marks whenever button state is changed. I don't know where are logs from program, can you tell me, so I can send you them?
Simplest code for potentiometer I tested:
``#include
// Create a new instance of the class 'Analog', called 'potentiometer', on pin A0, // that sends MIDI messages with controller 7 (channel volume) on channel 1 Analog potentiometer(A0, MIDI_CC::Channel_Volume, 1);
void setup() {}
void loop() { // Refresh the MIDI controller (check whether the potentiometer's input has changed since last time, if so, send the new value over MIDI) MIDI_Controller.refresh(); } ``
Hello,
On mac with this version : http://projectgus.github.io/hairless-midiserial Using
try to download the software https://drive.google.com/open?id=0BwnVMB_6yujwR1dydVJ6MHJib2M from http://www.notesandvolts.com/2016/03/arduino-midi-controller-potentiometers.html
1 potentiometer
the setup with this initialization
because the console needs Serial.begin(115200);
And i hope you will see
Sometimes It appears error :
"+66.299 - Warning: got a status byte when we were expecting 1 more data bytes, sending possibly incomplete MIDI message 0xb0".
It seems occuring when i move the wires from the breadbord by turning the potentiometer. I have exited hairless-midiserial and reprogrammed the arduino and i don't see these errors. Strange ?
It is ok with Traktor
i learn the potentiometer
and after i see the result by moving the for example
I hope this will help you
Thanks to the previous post, removing "MIDI.begin()" and adding "Serial.begin(115200)" solved the problem, thank you
Hello. I have problem with Hairless. To comunicate i use loopMIDI, and on arduino I have Notes&Volts code for Midi. But program every time I try to adjust pots sends a lot of errors, and switch between midi values readed by traktor. Attached screenshots show what i have in mind. Also I tried to change serial port, but it didn't helped. And standard code from midi library had the same issiue. Is there any way to help with this?