lilypond-user
[Top][All Lists]
Advanced

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

Re: staff switching in custom contexts not working


From: Pierre Perol-Schneider
Subject: Re: staff switching in custom contexts not working
Date: Sat, 28 Mar 2015 23:38:22 +0100

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 <address@hidden>:
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:  address@hidden


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


reply via email to

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