[yoshimi] Well that was fun!

  • From: Will Godfrey <willgodfrey@xxxxxxxxxxxxxxx>
  • To: yoshimi@xxxxxxxxxxxxx
  • Date: Sun, 5 Nov 2017 18:39:29 +0000

When I'm working on Yoshimi I use my 'office' machine connected to a dumb MIDI
keyboard and make all my tests on that. Once happy, and to make sure the remote
files are propery updated I'll pull them onto my actual daw. This has two
hardware synthesisers, one of which is connected through a bcf controller, and
the other goes direct to the computer.

Well this evening when I did that I got loads of stuck notes. First I thought it
must be the controller that I pass my main keyboard through that was faulty, so
I bypassed it. Nope still the same.

Then I tried my second keyboard. This also gave stuck notes but less often.

I had the bright idea of running a Rosegarden file - absoulutely no problems at
all. Now totally confused, I fetched the keyboard from upstairs - no stuck
notes.

Finally I lugged one of the synths upstairs just in case there was some weird
MIDI hardware issue with the computer - Stuck notes.

After much thought, head scratching and theraputic swearing, I decided to put a
few log commands in critical places, and what transpired was a real eye-opener.

It seems my cheap dumb keyboard and Rosegarden are both well behaved and
properly send noteoffs. The other two? Oh no :(

Sometimes they'll send a noteoff other times they'll send a zero velocity
noteon. In my cleanups I had inadvertently removed a line that moved these to
the noteoff routine. Fixed now.

Still got a few oddities with vectors after the re-factoring, but it's stable
and works. The vector code was one of the first bits I did, and it... err...
showed rather :(

-- 
Will J Godfrey
http://www.musically.me.uk
Say you have a poem and I have a tune.
Exchange them and we can both have a poem, a tune, and a song.
Yoshimi source code is available from either: 
https://sourceforge.net/projects/yoshimi
Or: https://github.com/Yoshimi/yoshimi
Our list archive is at: https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx

Other related posts: