Re: spanners in multi-voice
2018-01-19 11:40 GMT+01:00 N. Andrew Walsh: > Update: > > On Fri, Jan 19, 2018 at 11:32 AM, N. Andrew Walsh > wrote: >> >> Arrgh. I may not have resolved my issue (or, there's something going on >> here I don't understand). >> >> Here's an example: >> [SNIP] >> >> | %8 >> d32\( a'16.~ a4.\) >> > > The problem is this measure. When a spanner that starts in a multi-voice > measure, and ends in a multi-voice measure, has a single-voice measure in > between, I get the error. When I replace measure 8 with the following: > > | %8 > << >{ d32\( a'16.~ a4.\) } >\\ >{ s2 } > >> > > … then it works fine. This seems like a bit of an ugly hack, but I suppose > there's no better way to do this (and there's probably some good reasons why > it should work like that). > > So just to confirm: is this intended behavior? > > Cheers, > > A Yes. Read NR 5.1.3 Keeping contexts alive Following this leads to: \new Staff << \context Voice = "1" { s2*10 } %% put in the length of the voices \context Voice = "2" { s2*10 } %% put in the length of the voices \relative c'' { \time 4/8 %1-2 R2*2 | %3 << { a,16\cresc\( d~ d4.\) } \\ { a8~ a4. } >> | %4 << { a16\( d f4.\) } \\ { a,8~ a4. } >> | %5 << { \tuplet 3/2 { a16\( d f } a4.\) } \\ { a,8~ a4. } >> | %6 << { \tuplet 6/4 4 { a16\( d f a d f } a4\!\) } \\ { a,,4~ a } >> | %7 << { d''8~\decr d4. } \\ { d16 g,~ g4. } >> | %8 d32\( a'16.~ a4.\) | %9 << { a8~ a4.\! } \\ { \tuplet 3/2 { a16 e cis } a4. } >> | %10 << { a,16\<\( d~ d4.\!\) } \\ { a8~ a4. } >> } >> Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: spanners in multi-voice
Update: On Fri, Jan 19, 2018 at 11:32 AM, N. Andrew Walshwrote: > Arrgh. I may not have resolved my issue (or, there's something going on > here I don't understand). > > Here's an example: > [SNIP] > > | %8 > d32\( a'16.~ a4.\) > > The problem is this measure. When a spanner that starts in a multi-voice measure, and ends in a multi-voice measure, has a single-voice measure in between, I get the error. When I replace measure 8 with the following: | %8 << { d32\( a'16.~ a4.\) } \\ { s2 } >> … then it works fine. This seems like a bit of an ugly hack, but I suppose there's no better way to do this (and there's probably some good reasons why it should work like that). So just to confirm: is this intended behavior? Cheers, A ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: spanners in multi-voice
Arrgh. I may not have resolved my issue (or, there's something going on here I don't understand). Here's an example: \version "2.19.80" \relative c'' { \time 4/8 %1-2 R2*2 | %3 << { a,16\cresc\( d~ d4.\) } \\ { a8~ a4. } >> | %4 << { a16\( d f4.\) } \\ { a,8~ a4. } >> | %5 << { \tuplet 3/2 { a16\( d f } a4.\) } \\ { a,8~ a4. } >> | %6 << { \tuplet 6/4 4 { a16\( d f a d f } a4\!\) } \\ { a,,4~ a } >> | %7 << { d''8~\decr d4. } \\ { d16 g,~ g4. } >> | %8 d32\( a'16.~ a4.\) | %9 << { a8~ a4.\! } \\ { \tuplet 3/2 { a16 e cis } a4. } >> | %10 << { a,16\<\( d~ d4.\!\) } \\ { a8~ a4. } >> } Here, the \cresc command creates a dynamic as text without issue (from bar 3 to 6). However, the \decr command, from bar 7 to 10, does not, and I get the error about an unterminated decrescendo I posted previously. So what am I doing wrong here? Cheers, A On Thu, Jan 18, 2018 at 2:54 PM, N. Andrew Walshwrote: > Hi David, > > On Thu, Jan 18, 2018 at 2:44 PM, David Kastrup wrote: > >> >> How about giving an example actually showing the problem you are talking >> about? >> >> -- >> David Kastrup >> > > Fair enough. And as it turns out, when I add a \! statement later on in > that voice, the error disappears and it draws a crescendo and decrescendo > as desired. > > Sorry for the noise. > > Cheers, > > A > -- Liebe Kollegen, liebe Freunde, meine neue Handynummer ist die (+49)-0177-7368-393. Bitte die alte nicht mehr benutzen: sie wird Demnächst™ stilllegen. Dear Friends and Colleagues, my new cell number is (+49)-0177-7368-393. Please discard the old one: it will be disabled Soon™. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: spanners in multi-voice
Hi David, On Thu, Jan 18, 2018 at 2:44 PM, David Kastrupwrote: > > How about giving an example actually showing the problem you are talking > about? > > -- > David Kastrup > Fair enough. And as it turns out, when I add a \! statement later on in that voice, the error disappears and it draws a crescendo and decrescendo as desired. Sorry for the noise. Cheers, A ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: spanners in multi-voice
"N. Andrew Walsh"writes: > Hi List, > > let's say I have the following code: > > \relative c'' { > > %1 > s2 > > | %2 > << >{ a16\cresc d~ d4. } >\\ >{ a8~ a4. } > >> > } > > Is there a way to have multiple measures of this kind of two-voice > structure, and each measure contained within its own pair of << >> > brackets, with one of these multi-measure-long \cresc commands? Or do I > have to have all the measures over which the \cresc spanner occurs > contained within one pair of << >> brackets? > > When I try the former, I get this: > > programming error: Spanner `DynamicTextSpanner' is not fully contained in > parent spanner. Ignoring orphaned part >{ a16 > \cresc d~ d4. } I get -*- mode: compilation; default-directory: "/tmp/" -*- Compilation started at Thu Jan 18 14:43:16 lilypond /tmp/gaga.ly GNU LilyPond 2.21.0 Processing `/tmp/gaga.ly' Parsing... /tmp/gaga.ly:1: warning: no \version statement found, please add \version "2.21.0" for future compatibility Interpreting music... /tmp/gaga.ly:6:1: warning: barcheck failed at: 1/2 | %2 /tmp/gaga.ly:8:9: warning: unterminated crescendo { a16 \cresc d~ d4. } Preprocessing graphical objects... Finding the ideal number of pages... Fitting music on 1 page... Drawing systems... Layout output to `/tmp/lilypond-TOO2Rj'... Converting to `gaga.pdf'... Deleting `/tmp/lilypond-TOO2Rj'... Success: compilation successfully completed > I was hoping to be able to keep each measure within its own line of > code, separated with these barcheck and commented measure-number > marks. Is there a way to do that? How about giving an example actually showing the problem you are talking about? -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: spanners in multi-voice
Hi Andrew, If you use \new Voice instead of the double backslash syntax, the first voice in the << >> brackets continues before and after the simultaneous music. \relative c'' { %1 s2 | %2 << { \voiceOne a16\cresc d~ d4. } \new Voice { \voiceTwo a8~ a4. } >> \oneVoice a4 b\! } Best, Edward -- Dr. Edward Neeman Adjunct Instructor, South Georgia State College Collaborative Pianist, Valdosta State University, Georgia Artist Faculty, ELMS Conservatory, Jakarta edward.nee...@gmail.com www.neemanpianoduo.com On Thu, Jan 18, 2018 at 5:29 AM, N. Andrew Walshwrote: > Hi List, > > let's say I have the following code: > > \relative c'' { > > %1 > s2 > > | %2 > << >{ a16\cresc d~ d4. } >\\ >{ a8~ a4. } > >> > } > > Is there a way to have multiple measures of this kind of two-voice > structure, and each measure contained within its own pair of << >> brackets, > with one of these multi-measure-long \cresc commands? Or do I have to have > all the measures over which the \cresc spanner occurs contained within one > pair of << >> brackets? > > When I try the former, I get this: > > programming error: Spanner `DynamicTextSpanner' is not fully contained in > parent spanner. Ignoring orphaned part >{ a16 > \cresc d~ d4. } > > I was hoping to be able to keep each measure within its own line of code, > separated with these barcheck and commented measure-number marks. Is there a > way to do that? > > Cheers, > > A > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
spanners in multi-voice
Hi List, let's say I have the following code: \relative c'' { %1 s2 | %2 << { a16\cresc d~ d4. } \\ { a8~ a4. } >> } Is there a way to have multiple measures of this kind of two-voice structure, and each measure contained within its own pair of << >> brackets, with one of these multi-measure-long \cresc commands? Or do I have to have all the measures over which the \cresc spanner occurs contained within one pair of << >> brackets? When I try the former, I get this: programming error: Spanner `DynamicTextSpanner' is not fully contained in parent spanner. Ignoring orphaned part { a16 \cresc d~ d4. } I was hoping to be able to keep each measure within its own line of code, separated with these barcheck and commented measure-number marks. Is there a way to do that? Cheers, A ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user