lilypond-user
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Re: Scoped variables
From
:
Peter Toye
Subject
:
Re: Scoped variables
Date
:
Mon, 4 Nov 2019 19:19:51 +0000
Hmm. Interesting.
But I still prefer properly scoped variables!
Peter
-------------------------
Monday, November 4, 2019, 6:46:05 PM, Timothy Lanfear wrote:
I was surprised to find that provided there is no explicit \book statement, variables can be redefined between bookparts and behave as desired.
\version "2.19.83"
I.Violin.1 = { \clef "treble" b'1 }
I.Violin.2 = { \clef "treble" g' }
I.Viola = { \clef "alto" d' }
I.Cello = { \clef "bass" g1 }
\bookpart {
\score {
<<
\new Staff { \I.Violin.1 }
\new Staff { \I.Violin.2 }
\new Staff { \I.Viola }
\new Staff { \I.Cello }
>>
}
}
I.Violin.1 = { \clef "treble" \key d\major cis''1 }
I.Violin.2 = { \clef "treble" \key d\major a' }
I.Viola = { \clef "alto" \key d\major e' }
I.Cello = { \clef "bass" \key d\major a1 }
\bookpart {
\score {
<<
\new Staff { \I.Violin.1 }
\new Staff { \I.Violin.2 }
\new Staff { \I.Viola }
\new Staff { \I.Cello }
>>
}
}
--
Timothy Lanfear, Bristol, UK.
reply via email to
[
Prev in Thread
]
Current Thread
[
Next in Thread
]
Scoped variables
,
Peter Toye
,
2019/11/03
Re: Scoped variables
,
David Kastrup
,
2019/11/03
Re: Scoped variables
,
Peter Toye
,
2019/11/03
Re: Scoped variables
,
Peter Toye
,
2019/11/04
Re: Scoped variables
,
Kieren MacMillan
,
2019/11/04
Re: Scoped variables
,
Peter Toye
,
2019/11/04
Re: Scoped variables
,
Jan-Peter Voigt
,
2019/11/04
Re: Scoped variables
,
Timothy Lanfear
,
2019/11/04
Re: Scoped variables
,
Peter Toye
<=
Re: Scoped variables
,
David Wright
,
2019/11/04
Re: Scoped variables
,
Timothy Lanfear
,
2019/11/04
Re: Scoped variables
,
Peter Toye
,
2019/11/07
Re: Scoped variables
,
Aaron Hill
,
2019/11/07
Re: Scoped variables
,
David Kastrup
,
2019/11/07
Re: Scoped variables
,
Peter Toye
,
2019/11/08
Re: Scoped variables
,
David Kastrup
,
2019/11/08
Re: Scoped variables
,
Peter Toye
,
2019/11/08
Re: Scoped variables
,
Timothy Lanfear
,
2019/11/03
Prev by Date:
Re: Scoped variables
Next by Date:
Re: Scoped variables
Previous by thread:
Re: Scoped variables
Next by thread:
Re: Scoped variables
Index(es):
Date
Thread