Hairless Midi odd behaviour

Experimenting with sending midi messages out to Ableton using Hairless Midi / LoopMidi. Works ok, but Hairless Midi seems to 'lose' the usb port if I update the code and upload to the Arduino.

Obviously you can't update while Hairless Midi is listening on that com port, so I set it to 'not connected' and complete the upload. But then I point Hairless Midi back at the Arduino com port and it usually doesn't receive anything. Sometimes closing and restarting Hairless Midi several times seems to randomly reconnect it, but I've found that it reconnects perfectly every time if after the upload to the Arduno I quickly run Tools/Serial Monitor to check that signals are being sent out, then close it again. Do that and Hairless Midi connects fine....!

Anybody know if there's an underlying logic here that explains this behaviour?

Maybe you need to disconnect the usb after upload the code f..maybe hairless don´t see the device to connect..
I don´t know..windows..who cares.
When you open the monitor maybe windows recognise..honestly..i dont know.

you can try loopbe1..or hiduino..i only need to press a switch for change between usb midi device and serial comunication (i dont need any software like loopbe1 or hairless).

On hiduino..i press the switch and i can upload sketches...pressing the switch once more turns into hiduino usb midi device

Thanks, I just wondered if it was a known eccentricity of Hairless Midi. I've got used to it now and its pretty reliable once you know the workaround, I just hate mysterious crap like that...

but Hairless Midi seems to 'lose' the usb port if I update the code and upload to the Arduino.

This not only happens with Hairless but with a lot of things. The problem is that when a device has the rug pulled from underneath it, it doesn’t always search for if the connection has been reestablished. Where as the physical removal of the USB socket and the reconnection will trigger the device to look again.

This is a property of the OS in the laptop and nothing to do with Hairless as such.

On my Mac the MIDI monitor app will not connect to a bus device that has gone away and then come back. You have to select again the USB MIDI device from a pull down menu.

Maybe try my hairless midi replacement. GitHub - RuudMulder/SerialMidiBridge: Graphical user-interface to use a serial port as a MIDI port. It has a scan button to rescan for serial and midi ports. Hope this helps.

Kind regards,
Ruud Mulder

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.