2018-03-25 21:13 GMT+02:00 Richard Shann <rich...@rshann.plus.com>: > I have been using a bit of code written by Mark Witmer to achieve wavy > lines above a series of notes. It co-opts the trill spanner mechanism > for this. > I just found a bug in that code. When there is a line break the > calculation of > (ly:grob-property grob 'X-extent) > - with the grob being a #<Grob TrillSpanner > - > then the value (+inf.0 -inf.0) is returned and in consequence an error > is thrown later when the value is used. > Unfortunately, I don't know what the status of the original file is or > where it came from, but attached is a version which prevents the error > being thrown by returning 0 instead. This results in the wavy line > running off the right margin but the typesetting at least succeeds. > I'm sending this in case anyone else has this problem or needs to > typeset vibrato marks, and - just in case - someone can suggest a > correct way to handle line breaks with these vibrato markings. > > Richard Shann
Hi, you may be interested in http://lilypond.1069038.n5.nabble.com/How-to-make-this-postscript-spanner-to-work-with-L-amp-R-bound-details-td204375.html#a204622 Attached you'll find a complete rewrite of Mark's code. Cheers, Harm _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user