I’ve not used tags before - I’ll give your suggestion a try when I’m back at linux den. Off to a gig shortly.
It will be better than duplicating notes. Thanks for your support. Lee > On 12 Oct 2025, at 14:46, Tina Petzel <[email protected]> wrote: > > Hi Lee, > >> This works but isn't ideal as I have duplicate notes. At least it gives me >> the score I want and the midi notes with no grace notes. > > Maybe use tags: > > \afterGrace #1/2 { \tag nomidi <>\^ d\3 } \tag nomidi {\once\hideNotes e\3 } > > and then do `\removeWithTag nomidi ...` in your midi score. > > You can even put this into a convenience function like so: > > %%% > nomidiBend = > #(define-music-function (main bend) (ly:music? ly:music?) > #{ > \afterGrace 1/2 > { \tag nomidi <> \^ #main } > \tag nomidi { \hideNotes #bend \undo\hideNotes } > #}) > %%% > > and then do `\nomidiBend d\3 e\3`. > > Best regards, > Tina > <signature.asc>
