lilypond-user
[Top][All Lists]
Advanced

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

Controlling mark/markup


From: Peter Mogensen
Subject: Controlling mark/markup
Date: Wed, 05 Oct 2005 17:17:03 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050831 Debian/1.7.8-1sarge2

Hi,

I was preparing a short demo template for a friend of mine on how to
organize a score with Lilypond to make it easy to extract different voices.

But I keep struggling with placing makrup like "DC al Fine" correct. I
want it below the staffs.

There are two problems (file attached):
1) I gets way to close to the notes. \lower doesn't seem to affect it.
2) If I place it at the last bar (where it logically should be) it
doesn't get printed. If I move it into the music it does.

Is there a solution to this?

I try to keep all stuff which should be printed only once per score in
\globalinfo and use \mark to place it.

Peter
\version "2.6.3"
\header {
% 
http://lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Creating-titles.html
    title = "Template"
    subtitle = "subtitle"
    composer = "Traditional"
    arranger = "Arranger"
    enteredby = "I typed this"
    maintainerEmail = "address@hidden"
    meter = "moderato"
}

\paper {
% 
http://lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Global-layout.html
  linewidth = 16.0 \cm
  #(set-paper-size "a4")
  raggedlastbottom = ##t
  raggedbottom = ##t
  betweensystempadding = 1.0\cm 
  betweensystemspace = 0.30\in
  leftmargin = 2\cm
}

#(set-global-staff-size 14)

\layout {
% http://lists.gnu.org/archive/html/lilypond-user/2004-11/msg00660.html
% http://lists.gnu.org/archive/html/bug-lilypond/2005-04/msg00147.html

  \context { \RemoveEmptyStaffContext }

}

%%%%%%%%%%%%% Helper definitions %%%%%%%%%%%%%
slip = \drummode {
   \override Stem #'stroke-style = #"grace" \grace sn8 
}

%%%%%%%%%%%%%%%% General %%%%%%%%%%%%%%%%%%%%%

globaltime = {
  \time 2/2
}

%%%%%%%%%%%%%% Rehearsal marks %%%%%%%%%%%%%%%

globalinfo = {
  s1*2 \bar "|:" \mark \default 
  s1*4 \bar "||" \mark \markup { \musicglyph #"scripts.segno" } 
  s1*4 \bar ":|" \mark \markup { \italic "Fine" }
  s1*2 \bar "|."
  \override Score.RehearsalMark #'direction = #-1
  \override Score.RehearsalMark #'self-alignment-X = #right
  \mark \markup { \italic "D.S. al Fine"}
}

%%%%%%%%%%%%% Note elements %%%%%%%%%%%%%%%%%%

melodinotes = \relative c' {
  c1
  e1
  g4 a b c
  g4 a b c
  g4 a b c
  g4 a b c
  e4 d c b
  e4 d c b
  e4 d c b
  e4 d c b
  e2 d2
  c1
}

andenstemme = \relative c' {
  c1
  c1
  c1
  c1
  c1
  c1
  c1
  c1
  c1
  c1
  c1
  c1
}

drumnotes = \drummode {
  \dynamicUp
  sn1:32~\<
  sn1:32\!
  sn4:16~ sn4 \slip sn  sn 
  \slip sn sn sn sn8 sn

  sn4:16~ sn4 \slip sn  sn 
  \slip sn sn sn sn8 sn

  sn4:16~ sn4 \slip sn  sn 
  \slip sn sn sn sn8 sn

  sn4:16~ sn4 \slip sn  sn 
  \slip sn sn sn sn8 sn
  
  sn2:32~-> sn2:32~->
  sn2:32~-> sn4-> r 
}

%%%%%%%%%%%%%%%% Voices %%%%%%%%%%%%%%%%%%%%%%

melodivoice = \context Voice = "M" {
  \clef treble
  \key c \major
  \melodinotes
}

andenvoice = \new Voice {
  \clef treble
  \key c \major
  \andenstemme
}

drumvoice = \context DrumVoice = "D" {
  \drumnotes
}

%%%%%%%%%%%%%%%% Staffs %%%%%%%%%%%%%%%%%%%%%%

melodistaff = \context Staff = "M" <<
  \set Staff.instrument = "Melodi"
  \set Staff.instr = "Mel"
  \melodivoice
  \andenvoice
  \globalinfo
>>

andenstaff = \new Staff <<
  \set Staff.instrument = "2. stemme"
  \set Staff.instr = "2"
  \andenvoice
  \globalinfo
>>

drumstaff = \context DrumStaff = "D"
\with {
  \override StemTremolo #'beam-thickness = #0.3
  \override StemTremolo #'beam-width = #1.5   
  \override StaffSymbol #'line-count = #1
  \override BarLine #'bar-size = #4
} <<
  \set Staff.instrument = "Tromme"
  \set Staff.instr = "Tr"
  \drumvoice
  \globalinfo
>>



%%%%%%%%%%%%%%%%%%%%% Score %%%%%%%%%%%%%%%%%%%
\book {
% 
http://lilypond.org/doc/v2.4/Documentation/user/out-www/lilypond/Multiple-movements.html
  \score {
    \header {
      piece = "Partitur"
    }
    <<
      \globaltime
      \new StaffGroup <<
        \melodistaff
        \drumstaff
      >>
    >>
  }
  \score {
    \header {
      piece = "2. stemme"
      breakbefore = ##t
    }
    <<
      \andenstaff
    >>
  }

}

reply via email to

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