elseif ($oType == "Rest" || !timeTaken($o)) // don't filter on rests or grace notes