lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Connected arpeggios up-down


From: Mats Bengtsson
Subject: Re: Connected arpeggios up-down
Date: Thu, 12 Oct 2006 21:17:09 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1

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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]