libDaisy icon indicating copy to clipboard operation
libDaisy copied to clipboard

Midi In Clock not supported

Open willemOH opened this issue 8 months ago • 5 comments

Currently MidiEvent.h states that only 3-byte messages are handled properly at this time. Clock messages are 1-byte.

I experienced how improperly they are handled when I tried to figure out for a day why my incoming midi notes channels were changing inexplicably. It was my device sending midi clock which corrupted the stream.

Fix: support Clock In

willemOH avatar Apr 17 '25 15:04 willemOH

more info on the stream corruption here: https://github.com/electro-smith/libDaisy/issues/665

willemOH avatar Apr 17 '25 15:04 willemOH

I have used midirealtime messages in the Heavy Compiler wrapper for Daisy: https://github.com/Wasted-Audio/hvcc/blob/develop/hvcc/generators/c2daisy/templates/HeavyDaisy.cpp#L117-L145

dromer avatar Apr 17 '25 17:04 dromer

@dromer did you use this wrapper in combination with libDaisy/C++ or was the project purely with Pure Data? Still looking for a good solution or fix here for a project made with libDaisy.

willemOH avatar Oct 04 '25 18:10 willemOH

@willemOH this uses libDaisy and C/C++, there is no Pure Data involved in the build/runtime (we convert a pd-patch to C which gets wrapped with libDaisy).

dromer avatar Oct 04 '25 19:10 dromer

https://github.com/electro-smith/libDaisy/pull/643

is a working fix

HeckHeckHeckHeck avatar Oct 06 '25 18:10 HeckHeckHeckHeck