On Sun, 2024-11-17 at 17:54 +0100, Thomas Morley wrote: > Am So., 17. Nov. 2024 um 17:18 Uhr schrieb David Sumbler > <[email protected]>: > > > > I have been setting a piece which has a large number of notes > > preceded by 3 grace notes. Unusually, the original version prints > > grace notes which precede a note on the 1st beat of a bar before > > the barline, rather than after the barline as is more usual. There > > is a good reason for this, so I want to replicate it. > > > > I found that this was easy enough to do using \afterGrace. But > > this gives a problem with the very first note of the piece, which > > falls on the 1st beat of the bar. It means that there needs to be > > a barline before this note (where of course normally there would > > not be one) so that the 3 grace notes can be shown before the > > barline. > > > > I solved this problem like this: > > > > \version "2.24.3" > > \score { { > > \partial 8 > > \afterGrace s8 {d16( e f} | g4) > > % etc. > > } } > > > > This works perfectly, but unfortunately Lilypond doesn't seem to > > like it, and when compiling the file it prints > > > > programming error: insane spring distance requested, ignoring it > > continuing, cross fingers > > programming error: insane spring constant > > continuing, cross fingers > > > > It then prints these lines a second time! > > > > Is there a way of suppressing these messages? In the past I have > > occasionally used "ly:expect-warning-times" to suppress unnecessary > > warnings, but I can't find anything similar to suppress a message > > about a programming error. > > > > Alternatively, of course, perhaps someone can suggest a better way > > of producing the grace notes and barline before the first main > > note. > > > > David > > > > { > \acciaccatura { d16 e f \bar "|" } g4 > } > > Cheers, > Harm
Very neat! Thanks very much. David
