Fixes and improvements to the piano roll editor.  This should fix the issue
reported by user pcfirebeats in the forum...