Hi all,

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.

I've of course managed to create the blank staves—see the attached MWE—but I'm having trouble creating the equidistant lines and then creating a two-column environment in which to include both the staves and the lines. (If that's even the best approach to the problem.)

How might I go about doing something like this?

Thanks,

Sam

\version "2.18.2"

\paper {
  #(set-paper-size "letter")
  ragged-last-bottom = ##f
  left-margin = 0.5\in
  bottom-margin = 0.5\in
  top-margin = 0.5\in
  right-margin = 0.5\in
  tagline = ##f
}

%%% FROM http://lsr.di.unimi.it/LSR/Item?id=464 IF THIS IS HELPFUL
#(define-markup-command (columns layout props args) (markup-list?)
   (let ((line-width (/ (chain-assoc-get 'line-width props
                         (ly:output-def-lookup layout 'line-width))
                        (max (length args) 1))))
     (interpret-markup layout props
       (make-line-markup (map (lambda (line)
                                (markup #:pad-to-box `(0 . ,line-width) '(0 . 0)
                                  #:override `(line-width . ,line-width)
                                  line))
                               args)))))

\score {
  {
    \repeat unfold 14 { s1 \break }
  }
  \layout {
    indent = 0
    \context {
      \Staff
      \remove "Time_signature_engraver"
      \remove "Clef_engraver"
      \remove "Bar_engraver"
    }
    \context {
      \Score
      \remove "Bar_number_engraver"
    }
  }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to