[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: manipuler les VoiceFollowers
From: |
Bertrand Bordage |
Subject: |
Re: manipuler les VoiceFollowers |
Date: |
Fri, 24 Jun 2011 16:02:06 +0200 |
Voilà un solution qui devrait convenir :
paddingsTrait =
#(define-music-function (parser location pl pr) (number? number?)
#{
\once \override VoiceFollower #'bound-details =
#`((right (attach-dir . 0) (padding . ,$pr))
(left (attach-dir . 0) (padding . ,$pl)))
#})
\new PianoStaff <<
\new Staff = "up" <<
\new Voice {\relative c'' {\voiceOne c1}}
\new Voice {\relative c'' {\voiceTwo g4 \change Staff = "down" \showStaffSwitch \paddingsTrait #2 #2 g, c c }}
>>
\new Staff = "down" << \clef F \relative c {c1} >>
>>
Bertrand