intechstudio / knot

GNU General Public License v3.0
42 stars 5 forks source link

Knot doesn't forward all messages, resulting in hanging notes, jittery clock #14

Open narayb opened 5 months ago

narayb commented 5 months ago

Reported originally by user named neon on our Discord. Ticket created after reproducing bug in a similar setup. Tested with release FW.

Video

Setup used

The setup consists of a MIDI keyboard sending notes into the IN port of Knot and Knot forwarding that into the HOST port. In this case a synth is hosted in the port, Knot is powering it.

Original setup was tested with multiple MIDI keyboards and synths. Reproduced with Atruria Keystep + Audiothingies Micromonsta 2 (see video).

Steps to reproduce

After creating the setup, pressing more than two keys at the same time and releasing them simultaneously would result in hanging notes 30% of the time.

After testing more, the issue could also be reproduced with just one note + pressure from the Keystep in 80% of tries.

Conclusions

When multiple messages are received at the IN port, Knot sometimes struggles to process these and misses some in the process. The messages are properly sent each time from the Keystep as illustrated by the monome norns on the side, showing us a MIDI monitor on the video footage.

narayb commented 4 months ago

UPDATE

Bug confirmed still active on current nightly FW. When doing so, MIDI monitor still shows NOTE OFF messages received from the MIDI OUT port of Knot when MIDI through is active.

In all cases, stuck notes are still heard. No UARTs have been spotted during testing.

narayb commented 3 months ago

A user added his own experience about lag with Knot on the forums and we received user reports of this issue on Support as well, using a MIDI Fighter Twister for sending note on messages.

narayb commented 2 months ago

Firmware update v1.0.2 mitigated the issue and the use-case of 'Stuck notes when passing MIDI through Knot in Blue mode' is reportedly stuck-note-free. There still are use-cases that experience the issue however.

jmickelin commented 1 month ago

I have been experiencing the problem in the first bullet point as well. Sadly, updating to the latest firmware (v1.0.4) does not help.

The hardware I have tested it with are the following:

All combinations of setups exhibited the problem with stuck notes as soon as the signal was running through Knot. Connecting the MIDI keyboards directly via USB to the computer worked without issue. Sadly I do not own any non-USB controllers to similarly test the Nymphes directly without the Knot.


I have been meaning to file a bug report for this for a long time, but never got around to it. So I'm happy to see that others have done so! Hopefully I can at least provide an additional data point to help figure out the issue.