lilypond-user
[Top][All Lists]
Advanced

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

Re: Partial Bars


From: David Kastrup
Subject: Re: Partial Bars
Date: Fri, 03 Jul 2015 09:06:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Pierre Perol-Schneider <address@hidden> writes:

> Oops! here again.

Try the following example:

%% => http://lilypond.1069038.n5.nabble.com/Partial-Bars-td178358.html
\version "2.18.2"

global = {
  \time 3/4
  \key g\major
}

menuet = {
 
  %% PART A
  \mark\default
  \repeat volta 2 {
    % mes.0
      \partial 4 r4 |
    % mes.1-7
      R2.*7
    % mes.8a
      r2 % <= no barcheck (incomplete measure)
  }
  
  %% PART B
  \mark\default
  \repeat volta 2 {
    % mes.8b
      r4 | % <= barcheck (end of measure 8)
    % mes.9-15
      R2.*7
  }
  \alternative {
    {
      % mes.16
        r2 % <= no barcheck (incomplete measure)
        \tweak direction #DOWN
        \tweak self-alignment-X #RIGHT
        \mark\markup\small\italic "Fine."
    }
    {
      % mes.17a
        r4 r8 % <= no barcheck (incomplete measure)
    }
  }
  
  %% PART C
  \mark\default
  \tempo "Trio"
  \repeat volta 2 {
    % mes.17b
      r4 r8 | % <= barcheck (end of measure 17)
    % mes.18-24
      R2.*7
    % mes.25a
      r2 % <= no barcheck (incomplete measure)  
  }
  
  %% PART D
  \mark\default
  \repeat volta 2 {
    % mes.25b
      r4 | % <= barcheck (end of measure 25)
    % mes.26-32
      R2.*7
  }
  \alternative {
    {
      % mes.33
        r4 r8 % <= no barcheck (incomplete measure 33)
    }
    {
      % mes.34
        r2  % <= no barcheck (incomplete measure 34)
    }
  }
  %% D.C.
  \tweak direction #DOWN
  \tweak self-alignment-X #RIGHT
  \mark\markup\small\italic "D.C. al Fine."
  \bar "|."
}


\header {
  title = "Six Minuets"
  composer = "Ludwig van Beethoven"
  opus = "WoO 10"
  piece = "Menuet No.2"
}

\score {
  \new PianoStaff <<
    \new Staff = "RH" { \clef G \global \menuet }
    \new Staff = "LH" { \clef F \global \menuet }
  >>
  \layout {
    system-count = 5
  }
}
Your problem was that you declared partial bars at the end of each
movement to be "complete" and gave them bar checks and whole-bar rests.

That's not going to fly with LilyPond.  It _is_ actually possible to
make LilyPond treat them like that, but then you have to declare the
length of the bar at its _start_ by using \partial on it.  Here is how
to do that:

%% => http://lilypond.1069038.n5.nabble.com/Partial-Bars-td178358.html
\version "2.18.2"

global = {
  \time 3/4
  \key g\major
}

menuet = {
 
  %% PART A
  \mark\default
  \repeat volta 2 {
    % mes.0
      \partial 4 r4 |
    % mes.1-7
      R2.*7
    % mes.8a
      r2 % <= no barcheck (incomplete measure)
  }
  
  %% PART B
  \mark\default
  \repeat volta 2 {
    % mes.8b
      r4 | % <= barcheck (end of measure 8)
    % mes.9-15
      R2.*7
  }
  \alternative {
    {
      % mes.16
        \partial 2
        r2 | % <= barcheck (complete measure 16)
        \tweak direction #DOWN
        \tweak self-alignment-X #RIGHT
        \mark\markup\small\italic "Fine."
    }
    {
      % mes.17a
        r4 r8 % <= no barcheck (incomplete measure)
    }
  }
  
  %% PART C
  \mark\default
  \tempo "Trio"
  \repeat volta 2 {
    % mes.17b
      r4 r8 | % <= barcheck (end of measure 17)
    % mes.18-24
      R2.*7
    % mes.25a
      r2 % <= no barcheck (incomplete measure)  
  }
  
  %% PART D
  \mark\default
  \repeat volta 2 {
    % mes.25b
      r4 | % <= barcheck (end of measure 25)
    % mes.26-32
      R2.*7
  }
  \alternative {
    {
      % mes.33
        \partial 4.
        r4 r8 | % <= barcheck (complete measure 33)
    }
    {
      % mes.34
        \partial 2
        R2 | % <= barcheck (complete measure 34)
    }
  }
  %% D.C.
  \tweak direction #DOWN
  \tweak self-alignment-X #RIGHT
  \mark\markup\small\italic "D.C. al Fine."
  \bar "|."
}


\header {
  title = "Six Minuets"
  composer = "Ludwig van Beethoven"
  opus = "WoO 10"
  piece = "Menuet No.2"
}

\score {
  \new PianoStaff <<
    \new Staff = "RH" { \clef G \global \menuet }
    \new Staff = "LH" { \clef F \global \menuet }
  >>
  \layout {
    system-count = 5
  }
}
The latter version lets you use a "full-bar rest" at its end (but I
think that is a rather bad idea since the reader will have a hard time
figuring out its actual length) and will result in more measures since
then the partial bar at the start of the second movement gets its own
measure number.  I'm not convinced that is a good idea either but then
it's probably a question of what was written in the original.

-- 
David Kastrup

reply via email to

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