lilypond-user
[Top][All Lists]
Advanced

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

background colour


From: Christian
Subject: background colour
Date: Sun, 12 Jun 2016 11:00:13 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hi all,

I am trying to make a reverted score (white music on black background).
The first part works, the second doesn't.
Does anybody know how to make the background black?

#(define (override-color-for-all-grobs color)
   (lambda (context)
     (let loop ((x all-grob-descriptions))
       (if (not (null? x))
           (let ((grob-name (caar x)))
             (ly:context-pushpop-property context grob-name 'color color)
             (loop (cdr x)))))))

\version "2.18.2"

\header {
  % Standaard LilyPond-tagline verwijderen
  tagline = ##f
}


global = {
  \key e \minor
}

nl = {
  \bar "" \break
}

sopranoVoice = \relative c' {
  \global
 c2 g
}

verse = \lyricmode {
  \set stanza = "1."
  ly -- rics
}

\score {
  \new Staff \with {
    midiInstrument = "choir aahs"
  } { \sopranoVoice }
  \addlyrics { \verse }
  \layout {
    \context {
      \Score
      %\applyContext #(override-color-for-all-grobs (x11-color 'white))
      \remove Bar_number_engraver
    }
    \context {
      \Lyrics
      \override LyricText #'font-size = #3
      \override LyricText #'font-name = #"Plantin MT Std"
    }
  }
}

\paper {
  indent = 0     % don't indent first system
  left-margin = 60
  right-margin = 60

  system-system-spacing #'basic-distance = #8
  score-system-spacing =
  #'((basic-distance . 12)
     (minimum-distance . 6)
     (padding . 1)
     (stretchability . 12))

}

#(set-global-staff-size 15)




reply via email to

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