fixes to generateStaffNotation and corresponding UI