MiniDexed
MiniDexed copied to clipboard
With MidiDumpEnabled=1, only outputs MIDI dump to HDMI, every 31/32 input events
Strange one. I think this worked a couple of days ago on the same build.
It appears the midi keypresses are being output to ~~hdmi~~ stdio every 31/32 presses.
Sound works fine though, no latency.
Any ideas? Reformat?
Running on Raspberry PI 4 B
Edit: This is MiniDexed_2024-09-08-6c56960. I will reformat and try with the latest.
Edit: Reformatted, tried with MiniDexed_2024-09-29-8c18e60. Still the same problem.
Probably caused by this:
https://github.com/smuehlst/circle-stdlib/issues/35
@smuehlst do you know what's going on? Thanks
@probonopd Could you explain what MIDI dump to HDMI actually does? Is it in any way related to stdio? The problem with https://github.com/smuehlst/circle-stdlib/issues/35 was that stdout was no longer line-buffered.
@nhemsley Why do you think that https://github.com/smuehlst/circle-stdlib/issues/35 is related to this problem?
Further evidence that https://github.com/smuehlst/circle-stdlib/issues/35 is unrelated:
@smuehlst, It is printf debugging of the midi codes coming in.
See here: https://github.com/probonopd/MiniDexed/blob/8c18e60e5133a56e7208c4ff051cc2ec80e0aaa1/src/mididevice.cpp#L141-L179
putting a manual flush in the code linked fixes this, but it's perhaps better to upgrade to the version that fixes the line buffering bug.
@nhemsley could you please test the build at https://github.com/probonopd/MiniDexed/pull/758#issuecomment-2480491725? Thanks.
I gave that a try, but the PI goes into a reboot cycle. I'll build locally and try that in a few hours.
Apologies for the delay, building locally presented challenges, as its been a while, then life got in the way.