lilypond-user
[Top][All Lists]
Advanced

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

left-margin


From: Keith Weintraub
Subject: left-margin
Date: Sun, 23 Nov 2008 16:18:52 -0500

Folks,
  I am using version 2.10.33 on Mac OS X, Leopard.

I can't seem to get left-margin to work. In addition when I change the line width the header width doesn't change.

Thanks for your time,
KW

Here is my code:

#(set-default-paper-size "letter")
#(set-global-staff-size 26)

\paper  {
    %line-width = #(* mm 160)
    indent = 0\mm
    interscoreline = 2.\mm
    between-system-space = 15\mm
    ragged-bottom = ##f
    horizontal-shift = 0.5\in
    }

modernAccidentals = {
  \set Staff.extraNatural =  ##f
\set Staff.autoAccidentals = #'(Staff (same-octave . 1) (any- octave . 0))
  \set Staff.autoCautionaries =  #'()
}

\layout {
  indent = 0\mm
  line-width = 5\in
  left-margin = 2\in
}


\version "2.10.33"

\header {
        title = "Four Winds"
        instrument = "Guitar"
        composer = "Dave Holland"
        meter = "Bright, Jazz 8ths"
        opus = "Conference of the Birds"
}

#(set-default-paper-size "a4")
#(set-global-staff-size 26)

#(define  (unhair-pitch p)
  (let* ((o (ly:pitch-octave p))
         (a (ly:pitch-alteration p))
         (n (ly:pitch-notename p)))

    (cond
     ((and (> a 1) (or (eq? n 6) (eq? n 2)))
      (set! a (- a 2)) (set! n (+ n 1)))
     ((and (< a -1) (or (eq? n 0) (eq? n 3)))
      (set! a (+ a 2)) (set! n (- n 1))))

    (cond
     ((eq? a 4)  (set! a 0) (set! n (+ n 1)))
     ((eq? a -4) (set! a 0) (set! n (- n 1))))

    (if (< n 0) (begin (set!  o (- o 1)) (set! n (+ n 7))))
    (if (> n 6) (begin (set!  o (+ o 1)) (set! n (- n 7))))

    (ly:make-pitch o n a)))

#(define (simplify music)
  (let* ((es (ly:get-mus-property music 'elements))
         (e (ly:get-mus-property music 'element))
         (p (ly:get-mus-property music 'pitch)))

    (if (pair? es)
        (ly:set-mus-property!
         music 'elements
         (map (lambda (x) (simplify x)) es)))

    (if (ly:music? e)
        (ly:set-mus-property!
         music 'element
         (simplify e)))

    (if (ly:pitch? p)
        (begin
          (set! p (unhair-pitch p))
          (ly:set-mus-property! music 'pitch p)))

    music))

topLineA =   \relative c'' {
   \time 4/4      \key c \major
   \repeat volta 2 {
        \bar "|:" d4 \times 2/3 {b8( a g ) } e4 a8 fis~ \bar "||"
        \time 3/4 fis4. b4. gis2 fis8 e fis4. b \bar "||" \break
        \bar "empty" \bar "||"  \time 2/4 e4 r \bar "||"
        \time 3/4 fis8->[ ( dis b ) cis->]  ( ais[ fis] )
        gis2 b8 ais fis2 a8 gis
        e4. a d cis8 b a \bar "||"
        \time 4/4 fis2 r4 e8 fis \bar "||"
        \time 3/4 g8->[ (fis g) a->] (g[ a]) | \break
    }
}

topLineB = \relative c'' {
   \time 4/4 d4 \times 2/3 {b8( a g ) } e4 a8 fis~
   \mark \markup {\small \musicglyph #"scripts-coda" }
   \bar "||" \time 3/4 fis4. b4. \bar "||"
   \time 4/4 gis1^\markup { \bold {Solo section ...}}
   \bar "empty" \break
   s2. \hideNotes f4~ \unHideNotes
   \mark \markup {\small \musicglyph #"scripts-coda" }
   \bar "||" \time 3/4 \grace s8^\markup { \bold {ending last time } }
   fis4. b4.
   \bar "||" \time 4/4 gis2
   fis4 e fis1
}


bottomLine =    \relative c' {
        \key c \major
        \time 4/4 g2 a4. b8~ \time 3/4 b4. d, e2. d4. e4.
        a2
        b4. fis4. e2 b'8 ais8 d,2 a'8 gis8 c,4. f4. a4. a4.
        d4 g, gis d e4. fis4.
        g2 a4. b8~ b4. d, e4 s2.
        \hideNotes g2 a4 b4~ \unHideNotes
        b4._\markup{\italic {rit. ...}} d,4.
        e4_\markup{\italic {molto rit. ...}} s2.
        <a d,>1
}

topLineAT =  \transpose c f { \topLineA }
topLineBT =  \transpose c f { \topLineB }
bottomLineT = \transpose c f { \bottomLine }

\score{
 \context Staff <<
       #(set-accidental-style 'modern-voice-cautionary)
        { \topLineAT  \topLineBT } \\
        { \bottomLineT }
    >>
        
}





reply via email to

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