* fixed bug: crash because of invalidated iterator while removing midi notes from...