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

USB-MIDI settings #41

Closed
hugoescalpelo opened this issue Nov 7, 2023 · 5 comments
Closed

USB-MIDI settings #41

hugoescalpelo opened this issue Nov 7, 2023 · 5 comments

Comments

@hugoescalpelo
Copy link
Contributor

hugoescalpelo commented Nov 7, 2023

Which are the baud, data bits, parity and stop bits of USB-MIDI in Aciduino V2?

I built an Aciduino V2 for protoboard with an ESP32 DevKit, the only change I've made to the code was set the GPIO34 because my model does not have GPIO0 external. I am trying connect it to Ableton Live in Windows. For this I use hairless-midi-serial and loopMIDI.

It kinda sounds at baudrate:19200, databits:8, parity:none, stop bits:1, flow contorl:none and send this error: +7.473 - Warning: got a status byte when we were expecting 1 more data bytes, sending possibly incomplete MIDI message 0x82.

I tried default settings, clearing all notes and then leaving just a simple pattern of 8 notes in 303, and playing the same pattern as the videos, but not good results.

I tried to read all code and documentation from V1 to usb-midi definitions for uCtrl but didnt understand enough.

Please, help.

@copych
Copy link

copych commented Nov 8, 2023

@hugoescalpelo default settings for Hairless are 115200, no flow control. It's in the "Getting started" section of the page you supplied. Also turn all debugging off.

@midilab
Copy link
Owner

midilab commented Nov 8, 2023

Which are the baud, data bits, parity and stop bits of USB-MIDI in Aciduino V2?

For ESP32 family devices, there is native USB/MIDI support available for those that have TynUSB out-of-the-box support. However, Looks like your ESP32 does not have native support, you'll need to use a Hairless bridge, which it seems you are currently attempting to do.

The Aciduino V2 initializes the MIDI interface to be used as a real MIDI port, based on the Arduino MIDI library, in the file 1_uctrl.ino, line 28 on last git commit:

... #else MIDI_CREATE_INSTANCE(HardwareSerial, Serial1, MIDI1); ...

So in this case you need to make sure the usb port of your ESP32 is Serial1, otherwise just change to the correct one.

After confirming the correct Serial port, you'll need to change the baud rate, which is automatically set by the MIDI library to 31250 (MIDI Standard definition), to match the one you intend to use on your computer. If you are working with Hairless, you can set it to 115200.

To do this, add the following line to the very end of your setup() function in the AciduinoV2.ino file:

Serial1.begin(115200);

Make sure Serial1 is the one on usb port side of your ESP32, otherwise change it accordly, and make sure that you're adding this line to the very end of setup() call on file AciduinoV2.ino.

Hope it helps! let me know!

@midilab midilab closed this as completed Nov 22, 2023
@hugoescalpelo
Copy link
Contributor Author

It worked!

Sorry for the delay, executive disfunction attacked. I just tried adding the Serial.begin(115200); at release commit b7aa2ee (sep 4) and it worked. Hairless MIDI does not send any more errors :D

I will try to connect to Ableton Live and then with commit daa7b40, I think that's the one you mentioned. I'll keep you posted.

Do you want yo see my circuit? I hope you like it: link

Thank You!

@midilab
Copy link
Owner

midilab commented Nov 27, 2023

Looks great! any songs or jams made on this one?

@hugoescalpelo
Copy link
Contributor Author

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

3 participants