Re: staff switching in custom contexts not working
2015-03-29 0:43 GMT+01:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hi Pierre, This warning's caused by a typo here : pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } Eep. That’s embarrassing… Thanks for catching that. However, once it’s fixed, I still get a [different] error: ”not changing to same context type”. Any help for that? Thanks, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info Hi Kieren, it has nothing to do with your custom-contexts. It's issue 1681 https://code.google.com/p/lilypond/issues/detail?id=1681 Workarounds are listed there. Another one, start 'theMusic' with: HTH, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff switching in custom contexts not working
Hi Kieren, This warning's caused by a typo here : pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } Cheers, Pierre 2015-03-28 22:40 GMT+01:00 Kieren MacMillan kieren_macmil...@sympatico.ca: Hello all, In the attached snippet, I’ve defined some custom contexts (nested/hierarchical) for piano work. I can’t seem to get staff switching to work correctly: I get “ cannot change […] none of these in my family” errors. Any hints would be appreciated. Thanks! Kieren. BEGIN SNIPPET \version 2.19.17 \layout { \context { \Staff \name PianoSingleStaff \alias Staff } \context { \PianoSingleStaff \name PianoSingleStaffUpper \alias PianoSingleStaff \alias Staff \override DynamicLineSpanner #'direction = #UP \override TextScript #'direction = #UP } \context { \PianoSingleStaff \name PianoSingleStaffLower \alias PianoSingleStaff \alias Staff \override DynamicLineSpanner #'direction = #DOWN \override TextScript #'direction = #DOWN } \context { \PianoStaff \accepts PianoSingleStaffUpper \accepts PianoSingleStaffLower } } pfU = { \change PianoSingleStaff = piano_upper \oneVoice } pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } theMusic = { \clef bass \pfL d,8 \pfU d' \pfL d, \pfU d' } \score { \new PianoStaff \new PianoSingleStaffUpper = piano_upper s1 \new PianoSingleStaffLower = piano_lower \theMusic } END SNIPPET ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ 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
Re: staff switching in custom contexts not working
Hi Harm, it has nothing to do with your custom-contexts. It's issue 1681 Thanks! I simply removed the initial \pfL, and everything seems fine. Best, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: staff switching in custom contexts not working
Hi Pierre, This warning's caused by a typo here : pfL = { \change PIanoSingleStaff = piano_lower \oneVoice } Eep. That’s embarrassing… Thanks for catching that. However, once it’s fixed, I still get a [different] error: ”not changing to same context type”. Any help for that? Thanks, Kieren. ___ Kieren MacMillan, composer www: http://www.kierenmacmillan.info email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user