projectgus / hairless-midiserial

Lightweight cross-platform GUI-based MIDI/Serial bridge
https://projectgus.github.io/hairless-midiserial
Other
213 stars 73 forks source link

Random MIDI codes readed by hairless #53

Open Predatorex opened 5 years ago

Predatorex commented 5 years ago

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? midi1 midi2 midi3 midi4

projectgus commented 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?

Predatorex commented 5 years ago

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 // Include the library

// 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(); } ``

fredOnGitHub commented 5 years ago

Hello,

On mac with this version : http://projectgus.github.io/hairless-midiserial Using 8

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 2

the setup with this initialization 3

because the console 4 needs Serial.begin(115200); 5

And i hope you will see 1

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 6

and after i see the result by moving the 7 for example

I hope this will help you

zesinger commented 2 years ago

Thanks to the previous post, removing "MIDI.begin()" and adding "Serial.begin(115200)" solved the problem, thank you