On Wed, Jan 17, 2007 at 08:15:24AM +0200, Joe Neeman wrote:
> We've had a few questions about ties between voices (especially ties from
> polyphony to chords). It seems that you can get this behaviour simply by
> moving the Tie_engraver form the Voice context to the Staff context. Note
> that the Tie_engraver was probably designed to live in the Voice context, so
> it may not work perfectly, but if people will test it and report problems
> then it will get fixed.
>
> \version "2.10.0"
> \layout {
> \context {
> \Staff
> \consists "Tie_engraver"
> }
> \context {
> \Voice
> \remove "Tie_engraver"
> }
> }
> \new Staff {
> \relative {
> <<
> {a' b~ c d} \\
> {a, b b' c}
> >>
> }
> }
--- --- ---
Thank you very much for the suggestion, Joe. However, in LilyPond
2.11.12, if I add a layout section such as you suggested above, there is
an error message when I invoke LilyPond to process the file--
--- begin error message ---
GNU LilyPond 2.11.12
Processing `blues-in-c-1.ly'
Parsing...
Interpreting music...
Interpreting music... [8][11]
Preprocessing graphical objects...
/home/xscd/lilypond/usr/bin/../share/lilypond/current/ly/init.ly:37:1:
error: GUILE signaled an error for the expression beginning here
#
(if (or (pair? toplevel-scores) output-empty-score-list)
Wrong type argument in position 1: ()
/home/xscd/lilypond/usr/bin/../share/lilypond/current/ly/init.ly:37:5:
error: syntax error, unexpected '(', expecting '='
#(if
(or (pair? toplevel-scores) output-empty-score-list)
programming error: Parsed object should be dead: static
scm_unused_struct* Prob::mark_smob(scm_unused_struct*)
continuing, cross fingers
programming error: Parsed object should be dead: static
scm_unused_struct* Context_def::mark_smob(scm_unused_struct*)
continuing, cross fingers
error: failed files: "blues-in-c-1.ly"
--- end quote of error message ---
However, if I comment-out the layout section (with %{ %}), as in the
attached file, no error message occurs.
best wishes,
Steve D
New Mexico, US
--
----------------------------------------------------------------
The military was created to protect the leisure lifestyles of the
ruling class. -Eli Khamarov
----------------------------------------------------------------
% Blues in C 1, work for piano by Stephen C. Doonan, [EMAIL PROTECTED]
\version "2.11.12"
\paper { }
\header {
title = "Blues in C 1"
composer = \markup \center-align { "Stephen C. Doonan" \small "(1952- )" }
piece = \markup { \bold "Andantino (" \tiny \note #"4" #0.75 \normalsize "
= 85-115" \bold ")" }
% Mutopiaproject.org headers
mutopiatitle = "Blues in C 1"
mutopiacomposer = "DoonanSC"
mutopiainstrument = "Piano"
date = "2006/Sep"
source = "Composer"
style = "Jazz"
copyright = "Creative Commons Attribution-ShareAlike 2.5"
maintainer = "Stephen C. Doonan"
maintainerEmail = "[EMAIL PROTECTED]"
maintainerWeb = "http://www.xscd.com/pub/music/"
lastupdated = "2006/September/25"
}
rightHand = \relative c'' {
% 1
\key c \major \time 4/4 \clef treble <e, g c>2.. <ees g c>8~ |
<ees g c>~ <ees aes c>4 <ees aes c>4 <f bes d>8~ <f bes d>4 |
<g e'>4 <e c'> << \new Voice { \voiceOne c'4. r8 } { \voiceTwo e,8 f g
\oneVoice <ees g bes>8~ } >> |
<ees g bes>4. <f a>8~ \afterGrace <f a>2 {bes16[ a]} |
<e g>2.. << \new Voice { \voiceTwo ees8~ |
ees2 aes | }
{ \voiceOne <g c>8~ |
<g c>8 aes bes c c d ees f \oneVoice | }
>>
% 7
<c g'>4 <g e'> << \new Voice { \voiceOne c4. r8 } { \voiceTwo e,8 f g
\oneVoice <ees g bes>8~ } >> |
<ees g bes>4. <f a>8~ \afterGrace <f a>2 {bes16[ a]} |
<e g>2 << \new Voice { \voiceOne c'4. r8 } { \voiceTwo e, f g \oneVoice
<ees g c>8~ } >> |
<ees g c>~ <ees aes c>4 <f a d>4~ <f bes d>4 <g bes ees>8~ |
<g bes ees>8~ <g c ees>4 <aes c f>4~ <aes d f>4. |
}
leftHand = \relative c, {
% 1
\time 4/4 \key c \major \clef bass c8 g' d' e <c g'> d e <f c'>~ |
<f c'> ees d c bes aes g f |
c g' d' e <c g'> d e <f c'>~ |
<f c'> ees f <g d'>~ <g d'>2 |
}
\score {
\new PianoStaff <<
#(set-accidental-style 'piano-cautionary)
\set PianoStaff.printPartCombineTexts = ##f
\new Staff = "up" \new Voice = "rh" \rightHand
\new Staff = "down" \new Voice = "lh" \leftHand
>>
\midi {
\context {
\Score
tempoWholesPerMinute = #(ly:make-moment 100 4)
}
}
%{ \layout {
\context {
\Staff
\consists "Tie_engraver"
}
\context {
\Voice
\remove "Tie_engraver"
}
}
%}
}
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user