fix #25384: grace note spacing

there was too much space before grace accidentals with accidentals, inconsistent space between grace notes and a whole note, and too little space between grace notes and offset notes in multi-voice context