Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Ableton and midi "feedback" #87

Open
nicolasvair opened this issue Apr 14, 2024 · 6 comments
Open

Issue with Ableton and midi "feedback" #87

nicolasvair opened this issue Apr 14, 2024 · 6 comments

Comments

@nicolasvair
Copy link

nicolasvair commented Apr 14, 2024

Hi,

First thank you for this fantastic repo. I'm doing a "4 knobs" wireless controller using encoders and led ring.

IMG_2851

The idea is to be able to control a parameter from various devices and have led feedback on each of them. The other being midi fighter twister is also based on encoders and led rings.

I came across a strange behavior, if arduino is connected to computer through BLE-midi, I have a strange behavior on ableton parameters mapped to midi CC. Not sure how to describe it, it is jerky.

Enregistrement.de.l.ecran.2024-04-14.a.13.28.17.mov

Important to note, this is independent of my code. I can upload a bare minimum code for connecting, and still have the issue. Even without :
MIDI.setHandleControlChange(OnControlChange);

For example I have the issue with this code :

#include <BLEMIDI_Transport.h>
//#include <hardware/BLEMIDI_ESP32_NimBLE.h>
//#include <hardware/BLEMIDI_ESP32.h>
//#include <hardware/BLEMIDI_nRF52.h>
#include <hardware/BLEMIDI_ArduinoBLE.h>
#include "Arduino_BMI270_BMM150.h"

BLEMIDI_CREATE_DEFAULT_INSTANCE()

unsigned long t0 = millis();
bool isConnected = false;

void setup()
{
// MIDI INIT
MIDI.begin();

pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);

BLEMIDI.setHandleConnected( {
isConnected = true;
digitalWrite(LED_BUILTIN, HIGH);
MIDI.sendControlChange(1, 1, 1);
});

BLEMIDI.setHandleDisconnected( {
isConnected = false;
digitalWrite(LED_BUILTIN, LOW);
});

}
void loop()
{
MIDI.read();
}

Maybe related to how the arduino send a "confirmation" of the received CC from ableton ?
When I look into details, ableton sends values like : 24, 25, 27, 22, 29, 32, 35 ...

But it only happens with this device and this repo. I thought it may be related to bluetooth latency, but I don't have any issue using TouchOsc on iPhone...

Any hints where to look at ?

Thank you 🙏

@lathoub
Copy link
Owner

lathoub commented Apr 14, 2024

Hi, nice work!
This issue might relate to the underlying MIDI library. Have you searched the issues section for CC related issues?

(This library is a thin wrapper around FortySevenEffects MIDI lib)

@nicolasvair
Copy link
Author

Hi, thank you for the quick reply !

I just searched the issues but could not find anything related.

@lathoub
Copy link
Owner

lathoub commented Apr 17, 2024

I'm going to recommend to create a similar issue (and also point to this one) in the underlying library git. The community there is much better to respond to CC problems.

@nicolasvair
Copy link
Author

Ok, thank you then

If anyone is looking for a solution, the new issue is here : FortySevenEffects/arduino_midi_library#346

@nicolasvair
Copy link
Author

Hi,

So after some more research, it seems that the midi gets "reflected" like a midi thru situation.
(like this post)

Unfortunately, the function MIDI.turnThruOff(); didn't help :(

image

@lathoub
Copy link
Owner

lathoub commented May 9, 2024

Bizar, MIDI thru has been switched pff

static const bool thruActivated = false;

Can you check in the underlying lib if MIDI Thru has been switched off (breakpoint or log message)

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

No branches or pull requests

2 participants