Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Random MIDI codes readed by hairless #53

Open
Predatorex opened this issue Feb 4, 2019 · 4 comments
Open

Random MIDI codes readed by hairless #53

Predatorex opened this issue Feb 4, 2019 · 4 comments

Comments

@Predatorex
Copy link

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
Copy link
Owner

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
Copy link
Author

Predatorex commented Feb 8, 2019

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 <MIDI_Controller.h> // 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
Copy link

fredOnGitHub commented Mar 27, 2019

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
Copy link

zesinger commented Feb 9, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants