lilypond-user
[Top][All Lists]
Advanced

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

Re: Creating combined manuscript/ruled paper


From: karl
Subject: Re: Creating combined manuscript/ruled paper
Date: Tue, 3 Sep 2019 17:45:59 +0200 (CEST)

Sam:
> I'm attempting to use LilyPond to create sheets with blank staves on the 
> left half of the page and college-ruled paper (equidistant lines spaced 
> by 9/32in, or 7.1mm, apart) on the right.
...
> How might I go about doing something like this?

This is a thing you easily code directly in postscript.

///////////////
%A4: 210 297mm
%72 per tum, 72/25.4 per mm
/a 72 25.4 div def
a a scale
0.1 setlinewidth

/xmin  18   def
/xlen 180   def

/ymin  32   def
/yst    1.7 def
/ysep  10.5 def

/nst   14   def

/y ymin def

nst {
    5 {
        xmin y moveto xlen 0 rlineto stroke
        /y y yst add def
    } repeat
    /y y ysep add def
} repeat

showpage

a a scale
0.1 setlinewidth

/xmin   0   def
/xlen 210   def

/ysep  -7.1 def
/ymin   0   def
/ymax 297   def

ymax ysep ymin {
    xmin exch moveto xlen 0 rlineto stroke
} for

showpage
//////////////

Regards,
/Karl Hammar





reply via email to

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