fix grace notes

This might have spacing issues: I don't know if there is a way of adding a text to a chord other than using the cursor. The cursor however, cannot be set to a grace chord. So I tried to guess a useful pos.x value for the text element for a grace note (line 166).