[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Auto Ties
From: |
J L |
Subject: |
Auto Ties |
Date: |
Fri, 17 Sep 2004 18:05:50 +1200 |
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