5-in-1 bugfix special

Fixes bugs: #568, #289, #534, #563 and the incorrect timing for midi-noteoffs (see mailing list)