lilypond-user
[Top][All Lists]
Advanced

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

Re: zigzag staffline


From: Olivier Biot
Subject: Re: zigzag staffline
Date: Tue, 18 Dec 2012 20:41:04 +0100

On Tue, Dec 18, 2012 at 4:25 PM, David Kastrup <address@hidden> wrote:
Paul Morris <address@hidden> writes:

> Hi Gagi,
>
> On Dec 18, 2012, at 5:35 AM, Gagi Petrovic <address@hidden> 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


reply via email to

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