Patrick Schmidt wrote:
is there a way to achieve repeated ties of selected notes of a chord ... ?
This is rather like Nick Payne's LaisserVibrer question in
http://lists.gnu.org/archive/html/lilypond-user/2009-04/msg00313.html
because both are what Lilypond calls semi-ties.
Maybe you are content with
\override RepeatTieColumn #'tie-configuration =
#(list (cons -4 -1) (cons -2 -1) (cons 0 -1) (cons 4.4 1) )
which is fiddly and doesn't transpose.
Or how about ugly (+ transposable) instead of fiddly:
\hideNotes
\set tieWaitForNote = ##t
\grace { <e g b e>4 ~ s4 }
\unHideNotes
<c e g b e>1
My choice would be to mirror my feta-laisserVibrer code (as attached).
It is easy to apply, but it may be inconvenient to keep around.
Cheers,
Robin
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% repeatTie using feta char overlay: dir: UP or DOWN (or pad per magnitude)
#(define (frtSt dir) (lambda (grob)
(define dirsign (if (positive? dir) + -) )
(let* ((pos (ly:grob-property grob 'staff-position))
(height (if (odd? pos) +0.8 +0.55)) (angle +90))
(ly:stencil-combine-at-edge (ly:note-head::print grob) 0 -1
(grob-interpret-markup grob (markup #:with-dimensions '(0 . 0) '(0 . 0)
#:concat ( #:raise (dirsign height) #:rotate (dirsign angle)
#:musicglyph "accidentals.rightparen" )
#:hspace (abs dir))) 0 0 ))))
frtUP = \once \override NoteHead #'stencil = #(frtSt UP)
frtDOWN = \once \override NoteHead #'stencil = #(frtSt DOWN)
% or \tweak #'stencil ___ditto____
frtUPtw =
#(define-music-function (parser location mus) (ly:music?)
(set! (ly:music-property mus 'tweaks) (acons 'stencil
(frtSt UP) (ly:music-property mus 'tweaks))) mus)
frtDOWNtw =
#(define-music-function (parser location mus) (ly:music?)
(set! (ly:music-property mus 'tweaks) (acons 'stencil
(frtSt DOWN) (ly:music-property mus 'tweaks))) mus)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\relative c'
\repeat volta 2 {
<e b e~ g~ b~ e~>1
}
\alternative {
{ <c e g b e>1 }
{ <c \frtDOWNtw e \frtDOWNtw g \frtDOWNtw b \frtUPtw e>1 }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user