lilypond-user
[Top][All Lists]
Advanced

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

Re: Only one laissezVibrer tie in a chord - possibly?


From: Ben
Subject: Re: Only one laissezVibrer tie in a chord - possibly?
Date: Fri, 20 Oct 2017 18:45:41 -0400
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 10/20/2017 4:52 PM, Michael Gerdau wrote:
Hi list,

I have a chord with \laissezVibrer attached and I want only one of ties:

%% snip - snip - snip
\version "2.19.65"
{ <c' g'>\laissezVibrer }
%% snip - snip - snip

I want e.g. only the tie from c' (and/or only from g') but not both.

I'm kind of sure this should be possible in lilypond (as more or less
everything is possible ;) but I'm lacking the magic incantation.

I'd be happy if someone could help me out.

Thank you,
Michael


Hi Michael,

I use this snippet when I need a single lv in a chord...this what you're looking for? Just a starting point...
(see attached)
(taken from http://lsr.di.unimi.it/LSR/Item?id=714)

%%%%%%%%%%

\version "2.19.80"

%% http://lsr.di.unimi.it/LSR/Item?id=714
%% see also http://lilypond.org/doc/v2.18/Documentation/notation/writing-rhythms#ties

%LSR after a mail from Robin Bannister http://lists.gnu.org/archive/html/lilypond-user/2009-04/msg00344.html

% laissezVibrer using feta char overlay: dir: UP or DOWN (or pad per magnitude)
#(define (flvSt 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 (#:hspace (abs dir)
                                            #:raise (dirsign height)
                                            #:rotate (dirsign angle)
                                            #:musicglyph "accidentals.rightparen" ))) 0))))

flvUP =
\once \override NoteHead.stencil = #(flvSt UP)

flvDOWN =
\once \override NoteHead.stencil = #(flvSt DOWN) % or \tweak stencil   ___ditto____

%% Remark:
%% change next two definitions to the commented ones during LSR 2.20-upgrade
flvUPtw =
#(define-music-function (parser location mus) (ly:music?)
  #{ \tweak stencil  #(flvSt UP) $mus #})

flvDOWNtw =
#(define-music-function (parser location mus) (ly:music?)
  #{ \tweak stencil  #(flvSt DOWN) $mus #})
 
%% flvUPtw = \tweak stencil  #(flvSt UP) \etc
%% flvDOWNtw = \tweak stencil  #(flvSt DOWN) \etc

\relative c' {
    <\flvDOWNtw a e'>4 s
}

Attachment: lv.png
Description: PNG image


reply via email to

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