|
| From: | Mats Bengtsson |
| Subject: | Re: voltaOnThisStaff not working as expected |
| Date: | Fri, 30 Nov 2007 17:27:37 +0100 |
| User-agent: | Thunderbird 2.0.0.5 (X11/20070716) |
It seems that this property has been removed in the implementation and
that the Volta_engraver by default has been moved to the Score context
(I seem to recall that I proposed a similar solution many years ago).
So, to get volta brackets on the top of a stave in the middle of the score,
you should instead add the Volta_engraver to it, see the regression test
called volta-multi-staff-inner-staff.ly
\score { <<
\new Staff { \repeat volta 2 { c'1 } \alternative { c' } }
\new Staff { \repeat volta 2 { c'1 } \alternative { c' } }
\new Staff \with { \consists Volta_engraver } { c'2 g' e' a' }
\new Staff { \repeat volta 2 { c'1 } \alternative { c' } }
>> }
Unfortunately, the manual (and the documentation of voltaOnThisStaff in
scm/define-context-properties.scm) were not updated correspondingly.
/Mats
Eyolf Østrem wrote:
voltaOnThisStaff is documented as follows in the IR: Normally, volta brackets are put only on the topmost staff. This variable overrides this behavior, when set to #t or #f. However, taking a snippet from LSR and trying out various combinations, always gives the same result: the volta bracket is printed above the top staff (incl. the ChordNames). \score { << \new ChordNames \with { voltaOnThisStaff = ##f } \chordmode { c1 c } \new Staff \with { voltaOnThisStaff = ##t } { \repeat volta 2 { c'1 } \alternative { c' } }}\score { << \new Staff \with { voltaOnThisStaff = ##f } { \repeat volta 2 { c'1 } \alternative { c' } } \new Staff \with { voltaOnThisStaff = ##t } { c'2 g' e' a' }}\score { << \new ChordNames \with { voltaOnThisStaff = ##t } \chordmode { c1 c } \new Staff \with { voltaOnThisStaff = ##t } { \repeat volta 2 { c'1 } \alternative { c' } } \new Staff \with { voltaOnThisStaff = ##t } { c'2 g' e' a' }}\score { << \new ChordNames \with { voltaOnThisStaff = ##f } \chordmode { c1 c } \new Staff \with { voltaOnThisStaff = ##f } { \repeat volta 2 { c'1 } \alternative { c' } } \new Staff \with { voltaOnThisStaff = ##t } { c'2 g' e' a' }}
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================
| [Prev in Thread] | Current Thread | [Next in Thread] |