lilypond-user
[Top][All Lists]
Advanced

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

Re: change staff


From: SoundsFromSound
Subject: Re: change staff
Date: Wed, 25 Jan 2017 06:38:59 -0700 (MST)

Malte Meyn-3 wrote
> Am 25.01.2017 um 11:55 schrieb Gianmaria Lari:
>> - Is there a simpler way to write this source code avoiding all these
>> change staff?
> 
> You could use a simple music function:
> 
> 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 "|."
> }
> 
>> - Is it correct writing the left hand using s2 etc. etc.?
> 
> Yes it is.
> 
> 
> _______________________________________________
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

Hello,

When I copied your code into a new LilyPond file, I got some warnings at
every instance of the "l". 

Do you know how to fix them?
------

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 "|." 
} 

*warning: cannot find context to switch to
warning: cannot find context to switch to
warning: cannot find context to switch to
warning: cannot find context to switch to*




-----
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/change-staff-tp199525p199528.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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