lilypond-user
[Top][All Lists]
Advanced

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

Re: New user - I have an lone treble clef/extra staff


From: Noeck
Subject: Re: New user - I have an lone treble clef/extra staff
Date: Fri, 25 Jan 2013 15:28:12 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2

Hi Jon,

which program produces such an output?
I can only guess what could be inteded with that code, because it is
strange in several ways. To learn LilyPond it is better not to start
with automatically generated code like this!
A good start ist the learning manual from the beginning.
http://www.lilypond.org/doc/v2.16/Documentation/learning/index

Your question is addressed here:
http://www.lilypond.org/doc/v2.16/Documentation/learning/introduction-to-the-lilypond-file-structure


Just a few issues with the example code:
1) If music should occur at the same time it must be grouped with << >>
http://www.lilypond.org/doc/v2.16/Documentation/learning/multiple-staves

2) If settings apply to one voice or line of music it must be grouped
with { }
http://www.lilypond.org/doc/v2.16/Documentation/learning/music-expressions-explained

3) I removed the \skip because I don't understand why you need it

4) I removed the \ragged-bottom and \ragged-last-bottom because this
makes your 4 bars spread out over a whole page.


My best guess is the following code. Is that what you intended?

Cheers,
Joram


\version "2.10.10"

\header {
  dedication = ""
  title = "New Arrangement"
  subtitle = ""
  poet = ""
  composer = ""
  copyright = ""
  date = "2013"
}

GlobalMeter = \time 4/4
GlobalKeys = \key c \major
Chords = \chords {
  c8 \skip 4. \skip 2
  f8 \skip 4. \skip 2
  g8 \skip 4. \skip 2
  c8 \skip 4. \skip 2
}

% bbb (GM.Acoustic Grand)
voiceInstBOne = {
  e'1 |
  a'1 |
  b1 |
  e'1
}

\paper {
  #(set-paper-size "a4")
  head-separation = 1\cm
  page-top-space = 0\cm
  left-margin = 16\mm
  line-width = 178\mm
  between-system-padding = #0.1
  between-system-space = #0.1

}

\score {
  <<
    \Chords
    \context Staff = "sysInstBOne" <<
      {
        \tempo 4=120
        \clef treble
        \GlobalMeter
        \GlobalKeys
        \set Staff.instrumentName = "bbb "
        \new Voice = "voiceInstBOneLocal" \voiceInstBOne
      }
    >>
  >>
  \layout { }
}



reply via email to

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