[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slurred staccato in a tremolo (Menu Jacques)
From: |
Menu Jacques |
Subject: |
Re: Slurred staccato in a tremolo (Menu Jacques) |
Date: |
Sun, 8 Mar 2015 20:42:54 +0100 |
Hello Cynthia and Klaus,
Thanks for your answers.
With 2.19.15, the « tongue » function produces the 6 dots alright, but the
\shape command seems to have no effect.
Any other hint regarding the slur?
JM
%%%%%%%%%%%%%
\version "2.19.15"
{
\time 3/4
\clef "bass"
<<
\repeat tremolo 6 {e8 -. }
\shape #'((-2 . 0.2) (-1 . 0.2) (0 . 0.2) (0 . 0.6)) Slur {s4( s s)}
>> |
}
tongue =
#(define-music-function (parser location dots) (integer?)
(let ((script (make-music 'ArticulationEvent
'articulation-type "staccato")))
(set! (ly:music-property script 'tweaks)
(acons 'stencil
(lambda (grob)
(let ((stil (ly:script-interface::print grob)))
(let loop ((count (1- dots)) (new-stil stil))
(if (> count 0)
(loop (1- count)
(ly:stencil-combine-at-edge new-stil X RIGHT stil 0.2))
(ly:stencil-aligned-to new-stil X CENTER)))))
(ly:music-property script 'tweaks)))
script))
{
\time 3/4
\clef "bass"
\repeat tremolo 6 e8 -\tongue #6 |
}
{
\time 3/4
\clef "bass"
<<
\repeat tremolo 6 e8 -\tongue #6
\shape #'((-2 . 0.2) (-1 . 0.2) (0 . 0.2) (0 . 0.6)) Slur {s4( s s)}
>>
}
%%%%%%%%%%%%%
give the same rest
> Le 8 mars 2015 à 19:25, Klaus Blum <address@hidden> a écrit :
>
> Hi Jacques,
>
> there is already a snippet that might help:
> http://lsr.di.unimi.it/LSR/Item?id=772
> <http://lsr.di.unimi.it/LSR/Item?id=772>
>
> Cheers,
> Klaus
>
>
> Le 8 mars 2015 à 19:31, Cynthia Karl <address@hidden> a écrit :
>
>> Message: 2
>> Date: Sun, 8 Mar 2015 18:37:15 +0100
>> From: Menu Jacques <address@hidden>
>> Subject: Slurred staccato in a tremolo
>>
>> Is there a way to get the slur above the tremolo in the sample below, as
>> found in the attached manuscript image?
>>
>> Thanks for you help!
>>
>> JM
>>
>>
>> \version "2.19.15"
>>
>> {
>> \time 3/4
>> \clef "bass"
>> \repeat tremolo 6 { e8 -. } |
>> }
>>
>>
> How about:
>
> {
> \time 3/4
> \clef "bass"
> <<\repeat tremolo 6 {e8 -. }
> \shape #'((-2 . 0.2) (-1 . 0.2) (0 . 0.2) (0 . 0.6)) Slur
> {s4( s s)}>> |
> }
>
>>
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <http://lists.gnu.org/archive/html/lilypond-user/attachments/20150308/b3a3882e/attachment.html>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: SlurredStaccatoProblem.png
>> Type: image/png
>> Size: 17851 bytes
>> Desc: not available
>> URL:
>> <http://lists.gnu.org/archive/html/lilypond-user/attachments/20150308/b3a3882e/attachment.png>
>>
>> ------------------------------
>>
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>> End of lilypond-user Digest, Vol 148, Issue 63
>> **********************************************
>