[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: change staff
From: |
Noeck |
Subject: |
Re: change staff |
Date: |
Wed, 25 Jan 2017 15:13:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
Am 25.01.2017 um 14:38 schrieb SoundsFromSound:
> Do you know how to fix them?
Hi,
you need staves named "right" and "left" for this to work:
\version "2.19.50"
l =
#(define-music-function (music) (ly:music?)
#{
\change Staff = "left"
#music
\change Staff = "right"
#})
right = \fixed c' {
\clef treble
\time 2/4
g8-4 \l g_4 e-3 \l e_3
g8-4 \l g_4 e4-2
\bar "|."
}
% the new part:
\new PianoStaff <<
\new Staff = right \right
\new Staff = left { \clef bass s1 }
>>
HTH,
Joram