3-in-1 bugfix special

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