|
From: | R.H. |
Subject: | Re: Notation: Piano: How best to indicate left hand or right hand fingering in polyphonic works? |
Date: | Sun, 24 May 2020 19:53:33 +0200 |
Hi Roland,Le dim. 24 mai 2020 à 10:34, R.H. <address@hidden> a écrit :...Let us assume you want the top or bass voice to be in another color. Here, the way you created it seems to make this difficult to do, for example to assign a different color to note heads of different voices -- independently of left or right hand fingering....Ex.:\version "2.20.0"
#(define (override-color-for-all-grobs color)
(lambda (context)
(let loop ((x all-grob-descriptions))
(if (not (null? x))
(let ((grob-name (caar x)))
(ly:context-pushpop-property context grob-name 'color color)
(loop (cdr x)))))))
sop = { c''8 8 8 8 8 8 8 8 }
alt = { c'8 8 8 8 8 8 \change Staff = LH \stemUp 8 8 }
bas = { \clef F c8 8 8 8 8 }
\new PianoStaff <<
\new Staff = RH <<
\new Voice { \voiceOne \sop }
\new Voice
\with { \applyContext #(override-color-for-all-grobs (x11-color 'red)) }
{ \voiceTwo \alt }
>>
\new Staff = LH \bas
>>HTH, cheers,Pierre
[Prev in Thread] | Current Thread | [Next in Thread] |