On Tue, Dec 18, 2012 at 4:25 PM, David Kastrup <d...@gnu.org> wrote:

> Paul Morris <p...@paulwmorris.com> writes:
>
> > Hi Gagi,
> >
> > On Dec 18, 2012, at 5:35 AM, Gagi Petrovic <m...@gagipetrovic.nl> wrote:
> >
> >> Dear Ponders, i'm working on a composition where i'm in need of a
> >> custom 3-lined-staff with a zigzagged (like the glissando style, see
> >> attachment) middle line. Is it possible to make a small adjustement
> >> to the code below, or should i start doing some serious tweaking?
> >> Any pointers are well appreciated. Thank you very much in advance!
> >
> > I don't have any suggestions beyond the colored line snippet that
> > David already mentioned (see below).  I once got this advice about
> > dashed lines:
> >
> > "It may be possible to get dashed lines by writing a stencil in Scheme
> > and overriding it in. But you'd have to locate which stencil draws the
> > lines, study the C++ code, and write Scheme to do the same thing with
> > some extra options."
>
> Dashed lines can be done using something like
>
> \markup \pattern #60 #X #1 \draw-line #'(0.5 . 0)
>

How about using PostScript commands for creating the zigzag pattern?

I'm thinking in terms of repeating the following PostScript commands as a
"stencil":

x y 2 / rlineto
x -y rlineto
x y 2 / rlineto

In this code, x is the x step increment of the zigzag, and y the y step
increment, in case you want to tweak the zigzag appearance.

I only do not know yet how to add the PostScript in a stencil.

Best regards,

Olivier
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to