[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vibrato (wavy lines) notation

From: Thomas Morley
Subject: Re: Vibrato (wavy lines) notation
Date: Mon, 26 Mar 2018 11:53:48 +0200

2018-03-25 21:13 GMT+02:00 Richard Shann <address@hidden>:
> 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


you may be interested in

Attached you'll find a complete rewrite of Mark's code.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]