lilypond-user
[Top][All Lists]
Advanced

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

Re: Auto Ties


From: D Josiah Boothby
Subject: Re: Auto Ties
Date: Thu, 16 Sep 2004 23:33:32 -0700 (PDT)

Looks like you have to remove the Note_heads_engraver first. If you're using version 2.2.x, the following should apply:

3.2.5 Automatic note splitting

Long notes can be converted automatically to tied notes. This is done by replacing the Note_heads_engraver by the Completion_heads_engraver. In the following examples, notes crossing the bar line are split and tied.

     \new Voice \with {
       \remove "Note_heads_engraver"
       \consists "Completion_heads_engraver"
     } {
       c2. c8 d4 e f g a b c8 c2 b4 a g16 f4 e d c8. c2
     }


On Fri, 17 Sep 2004, J L wrote:

Hi,

I remember writing about how I had trouble with entering note values longer than the remaining measures? in a bar. I realise that there is the completion_heads_engraver. However, when I tried that, what happened was: all the doted and syncopated notes within the bar were broken up while the note that was supposed to be tied over the bar was just left as a minum (causing a bar-check problem followed by unbound spanners).

I can't remember exactly what file I used, but I think it was this one. Currently it has the ties added manually. Please point out to me if there is is something I've missed out that is causing this problem.

-----------------------------------------------


\version "2.2.5"

\header {
title = "May Suite 2004"
subtitle = "Royal Progression"
subsubtitle = "Movement 1"
composer = "Joshua Leung"
meter = "Allegro Maestoso"
}

\score{
\notes <<
\context StaffGroup <<
 \new Staff {
  \clef treble
  \time 3/4
  \key c \major
  \set Staff.instrument = "Trumpet 1"
  \set Staff.instr = "Tru1"
  \set Staff.midiInstrument = "trumpet"
        % 1st theme & its variations
        a'8. a'16 a'4  \times 2/3 { g'8 a'8 b'8 }
        a'8. a'16 a'4  \times 2/3 { g'8 a'8 b'8 }
        c''8. b'16 a'4  \times 2/3 { f'8 g'8 a'8 }
        b'8. a'16 g'4  \times 2/3 { e'8 f'8 g'8 }
        a'8. g'16 f'4  \times 2/3 { g'8 g'8 g'8 }
        g'2 r4

        % 2nd Idea & its variations
        r2  \times 2/3 { a'8 b'8 c''8 }
        d''2 \times 2/3 { d''8 e''8 d''8 }
        c''2 \times 2/3 { b'8 c''8 d''8 }
        a'2 \times 2/3 { g'8 a'8 b'8 }
        a'2 r4

        R2.*2

        % back to 1st theme. we're nearly at the end
        a'8. a'16 a'4  \times 2/3 { g'8 a'8 b'8 }
        a'8. a'16 a'4  \times 2/3 { g'8 a'8 b'8 }

        R2.*3 % the last few bars
        \bar "|."
}
\new Staff {
  \clef treble
  \time 3/4
  \key c \major
  \set Staff.instrument = "Trumpet 2"
  \set Staff.instr = "Tru2"
  \set Staff.midiInstrument = "trumpet"
        % 1st theme & its variations
        f'8. f'16 f'4  \times 2/3 { e'8 f'8 g'8 }
        f'8. f'16 f'4  \times 2/3 { e'8 f'8 g'8 }
        a'8. g'16 f'4  \times 2/3 { d'8 e'8 f'8 }
        g'8. f'16 e'4  \times 2/3 { c'8 d'8 e'8 }
        f'8. e'16 d'4  \times 2/3 { e'8 e'8 e'8 }
        e'2 r4

        % 2nd Idea & its variations
        r4  \times 2/3 { g'8 a'8 b'8 }
        c''4~ c''4 \times 2/3 { c''8 d''8 c''8 }
        b'4~ b'4  \times 2/3 { a'8 b'8 c''8 }
        g'4~ g'4  \times 2/3 { f'8 g'8 a'8 }
        g'4 ~ g'4  r2

        % 1st idea inverted
        f'8. f'16 f'4  \times 2/3 { e'8 d'8 c'8 }
        f'8. f'16 f'4  \times 2/3 { e'8 f'8 g'8 }

}
 \new Staff {
  \clef treble
  \time 3/4
  \key c \major
  \set Staff.instrument = "Horn 1"
  \set Staff.instr = "Hrn1"
  \set Staff.midiInstrument = "french horn"
        % 1st theme & its variations
        d''8. d''16 d''4  \times 2/3 { c''8 d''8 e''8 }
        d''8. d''16 d''4  \times 2/3 { c''8 d''8 e''8 }
        f''8. e''16 d''4  \times 2/3 { b'8 c''8 d''8 }
        e''8. d''16 c''4  \times 2/3 { a'8 b'8 c''8 }
        d''8. c''16 b'4  \times 2/3 { c''8 c''8 c''8 }
        c''2 r4

        % 2nd Idea & its variations
        \times 2/3 { c''8 d''8 e''8 }  f''2
        \times 2/3 { f''8 g''8 f''8 }  e''2
        \times 2/3 { d''8 e''8 f''8 }  c''2
        \times 2/3 { b'8 c''8 d''8 }  c''2

        R2.*5  % 5 bar's rest

        % back to 1st theme. we're nearly at the end
        d''8. d''16 d''4  \times 2/3 { c''8 d''8 e''8 }
        d''8. d''16 d''4  \times 2/3 { c''8 d''8 e''8 }

        R2. % the last bar
  }
\new Staff {
  \clef treble
  \time 3/4
  \key c \major
  \set Staff.instrument = "Horn 2"
  \set Staff.instr = "Hrn2"
  \set Staff.midiInstrument = "french horn"
        % 1st theme & its variations
        d'8. d'16 d'4  \times 2/3 { c'8 d'8 e'8 }
        d'8. d'16 d'4  \times 2/3 { c'8 d'8 e'8 }
        f'8. e'16 d'4  \times 2/3 { b8 c'8 d'8 }
        e'8. d'16 c'4  \times 2/3 { a8 b8 c'8 }
        d'8. c'16 b4  \times 2/3 { c'8 c'8 c'8 }
        c'2 r4

        % 2nd Idea & its variations
        \times 2/3 { c'8 d'8 e'8 }  f'2
        \times 2/3 { f'8 g'8 f'8 }  e'2
        \times 2/3 { d'8 e'8 f'8 }  c'2
        \times 2/3 { b8 c'8 d'8 }  c'2

        R2. % 1 bar's rest

        % back to 1st theme
        d'8. d'16 d'4  \times 2/3 { c'8 d'8 e'8 }
        d'8. d'16 d'4  \times 2/3 { c'8 d'8 e'8 }

        R2. % another bar's rest

        % the end is near
        r4 f''4-. r4
        r2 g''4
        r4 a''4 r4
        b''4 c'''2
  }
\new Staff {
  \clef bass
  \time 3/4
  \key c \major
  \set Staff.instrument = "Tuba"
  \set Staff.instr = "Tub"
  \set Staff.midiInstrument = "tuba"
        % 1st theme & its variations
        d8. d16 d4  \times 2/3 { c8 d8 e8 }
        d8. d16 d4  \times 2/3 { c8 d8 e8 }
        f8. e16 d4  \times 2/3 { b,8 c8 d8 }
        e8. d16 c4  \times 2/3 { a,8 b,8 c8 }
        d8. c16 b,4  \times 2/3 { c8 c8 c8 }
        c2 r4

        % -  2nd Idea & its variations
        \times 2/3 { c8 d8 e8 }  f2
        \times 2/3 { f8 g8 f8 }  e2
        \times 2/3 { d8 e8 f8 }  c2
        \times 2/3 { b,8 c8 d8 }  c2

        R2. % 1 bar's rest

        % back to 1st theme
        d8. d16 d4  \times 2/3 { c8 d8 e8 }
        d8. d16 d4  \times 2/3 { c8 d8 e8 }

        R2. % another bar's rest

        % the end is near
        r4 f'4-. r4
        r2 g'4
        r4 a'4 r4
        b'4 c''2

  }


\header { piece = "Concert Pitch Score"}
\midi { \tempo 4=90 }
\paper {
 \context { \RemoveEmptyStaffContext }
}
}

---------------------------------------------------------------

Aligorith

_________________________________________________________________
Need more speed? Get Xtra JetStream  @ http://xtra.co.nz/jetstream



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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