My fault! Since you connect arpeggios between the two
staves of a PianoStaff context, the setting has to be done
on the PianoStaff level. Just replace Staff with PianoStaff
in the macro definitions.
(You can also remove the "\sequential" which is redundant.
/Mats
Mehmet Okonsar wrote:
I tried it at various places in the file it doesn't seem to work:
=====================
\version "2.9.22"
\include "english.ly"
arpeggioUp = \sequential {
\override Staff.Arpeggio #'arpeggio-direction = #UP
}
arpeggioDown = \sequential {
\override Staff.Arpeggio #'arpeggio-direction = #DOWN
}
arpeggioNeutral = \sequential {
\revert Staff.Arpeggio #'arpeggio-direction
}
\header {
}
%---------------------------------------------------------------------
forceAlterations =
#(define-music-function (parser location music)
(ly:music?)(music-map (lambda (m)
(if (eqv?(ly:music-property m 'name) 'NoteEvent)
(set! (ly:music-property m 'force-accidental) #t))
m)music)music)
#(ly:set-option 'point-and-click #f)
\paper
{
}
\score {
%\override Score.BarNumber #'break-visibility = #all-invisible
\forceAlterations {
\new PianoStaff {
<<
\context Staff = "RH"
\set PianoStaff.connectArpeggios = ##t
{ \clef treble
\arpeggioUp
<c' e' g'>1\arpeggio
}
\context Staff = "LH"
{ \clef bass
\arpeggioUp
<c e g>1\arpeggio
}
}
}
%---------------------------------------------------------------------
\layout { indent = 2\cm
\context
{
\Staff
\remove "Time_signature_engraver"
}
}
}
=====================
On Thursday 12 October 2006 09:50, Mats Bengtsson wrote:
arpeggioUp = \sequential {
\override Staff.Arpeggio #'arpeggio-direction = #UP
}
arpeggioDown = \sequential {
\override Staff.Arpeggio #'arpeggio-direction = #DOWN
}
arpeggioNeutral = \sequential {
\revert Staff.Arpeggio #'arpeggio-direction
}
--
=============================================
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user