Stuck notes w DX7

After the last one
CH#10 NOTE_ON 60, Vel: 62
CH#10 NOTE_ON 64, Vel: 66
CH#10 NOTE_ON 67, Vel: 68
CH#10 NOTE_ON 67, Vel: 0
CH#10 NOTE_ON 64, Vel: 0
CH#10 NOTE_ON 60, Vel: 0
CH#10 CONTROL_CHANGE 123 => 0

I fixed the bug.
The read function didn’t read all requested bytes in all cases.

Before we request a pull, I would like to see, if the fix solves @Spaki’s issue as well.

Please login via ssh and go to
cd /zynthian/zynthian-sw
mkdir mod-ttymidi-fix
cd mod-ttymidi-fix
git clone https://github.com/mheidt/mod-ttymidi.git
cd mod-ttymidi
make
sudo make install
(needs your password)
systemctl stop mod-ttymidi
(to stop the service)
ttymidi -s /dev/ttyAMA0 -b 38400 -v

Now play.
If you find an exclamation mark like
90 3c 4a!
the fix worked for you :slight_smile: