Re: Slurred staccato in a tremolo (Menu Jacques)

2015-03-08 Thread Cynthia Karl
> Message: 2
> Date: Sun, 8 Mar 2015 18:37:15 +0100
> From: Menu Jacques 
> 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: 
> 
> -- next part --
> A non-text attachment was scrubbed...
> Name: SlurredStaccatoProblem.png
> Type: image/png
> Size: 17851 bytes
> Desc: not available
> URL: 
> 
> 
> --
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> End of lilypond-user Digest, Vol 148, Issue 63
> **


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurred staccato in a tremolo (Menu Jacques)

2015-03-08 Thread Menu Jacques
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  a écrit :
> 
> Hi Jacques, 
> 
> there is already a snippet that might help:
> http://lsr.di.unimi.it/LSR/Item?id=772
>   
> 
> Cheers, 
> Klaus
> 
> 

> Le 8 mars 2015 à 19:31, Cynthia Karl  a écrit :
> 
>> Message: 2
>> Date: Sun, 8 Mar 2015 18:37:15 +0100
>> From: Menu Jacques 
>> 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: 
>> 
>> -- next part --
>> A non-text attachment was scrubbed...
>> Name: SlurredStaccatoProblem.png
>> Type: image/png
>> Size: 17851 bytes
>> Desc: not available
>> URL: 
>> 
>> 
>> --
>> 
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>> 
>> 
>> End of lilypond-user Digest, Vol 148, Issue 63
>> **
> 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurred staccato in a tremolo (Menu Jacques)

2015-03-08 Thread Klaus Blum
Hello back, 

I don't know if I'm doing something wrong, but I didn't see a slur at all,
until I added some braces:

% ---
\version "2.19.15"

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 }% braces added
{\shape #'((-2 . 0.2) (-1 . 0.2) (0 . 0.2) (0 . 0.6)) Slur {s4( s s)} } 
% braces added
  >>
}
% ---

Does that help?

Cheers, 
Klaus



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Re-Slurred-staccato-in-a-tremolo-Menu-Jacques-tp172826p172836.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurred staccato in a tremolo (Menu Jacques)

2015-03-08 Thread Cynthia Karl

> On Mar 8, 2015, at 2:42 PM, Menu Jacques  wrote:
> 
> 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?

Shape doesn't affect the "tongue" output because there is no Bezier curve 
controlling the layout of the dots.  PhrasingSlur along with 
\phrasingSlurDotted would work with \shape ok, but I don't know how to control 
the number of dots in the slur nor the thickness of the dots.

It appears that you want the dots to be in a horizontal line.  It might be able 
to accomplish that with \markup { \draw-dotted-line }.

Pat Karl (Cynthia my wife, we share this mail account)

> 
> 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  a écrit :
>> 
>> Hi Jacques, 
>> 
>> there is already a snippet that might help:
>> http://lsr.di.unimi.it/LSR/Item?id=772
>>   
>> 
>> Cheers, 
>> Klaus
>> 
>> 
> 
>> Le 8 mars 2015 à 19:31, Cynthia Karl  a écrit :
>> 
>>> Message: 2
>>> Date: Sun, 8 Mar 2015 18:37:15 +0100
>>> From: Menu Jacques 
>>> 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: 
>>> 
>>> -- next part --
>>> A non-text attachment was scrubbed...
>>> Name: SlurredStaccatoProblem.png
>>> Type: image/png
>>> Size: 17851 bytes
>>> Desc: not available
>>> URL: 
>>> 
>>> 
>>> --
>>> 
>>> ___
>>> lilypond-user mailing list
>>> lilypond-user@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>> 
>>> 
>>> End of lilypond-user Digest, Vol 148, Issue 63
>>> **
>> 
> 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurred staccato in a tremolo (Menu Jacques)

2015-03-08 Thread Menu Jacques
Hello Pat,

I tried:

{
  \time 3/4
  \clef "bass"
  \repeat tremolo 6 e8 -\markup {\draw-dotted-line #'(5.1 . 2.3)} |
}

but the slur doesn’t show up.

JM

> Le 8 mars 2015 à 21:34, Cynthia Karl  a écrit :
> 
> 
>> On Mar 8, 2015, at 2:42 PM, Menu Jacques  wrote:
>> 
>> 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?
> 
> Shape doesn't affect the "tongue" output because there is no Bezier curve 
> controlling the layout of the dots.  PhrasingSlur along with 
> \phrasingSlurDotted would work with \shape ok, but I don't know how to 
> control the number of dots in the slur nor the thickness of the dots.
> 
> It appears that you want the dots to be in a horizontal line.  It might be 
> able to accomplish that with \markup { \draw-dotted-line }.
> 
> Pat Karl (Cynthia my wife, we share this mail account)
> 
>> 
>> 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  a écrit :
>>> 
>>> Hi Jacques, 
>>> 
>>> there is already a snippet that might help:
>>> http://lsr.di.unimi.it/LSR/Item?id=772
>>>   
>>> 
>>> Cheers, 
>>> Klaus
>>> 
>>> 
>> 
>>> Le 8 mars 2015 à 19:31, Cynthia Karl  a écrit :
>>> 
 Message: 2
 Date: Sun, 8 Mar 2015 18:37:15 +0100
 From: Menu Jacques 
 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: 
 
 -- next part --
 A non-text attachment was scrubbed...
 Name: SlurredStaccatoProblem.png
 Type: image/png
 Size: 17851 bytes
 Desc: not available
 URL: 
 
 
 --
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 
 
 End of lilypond-user Digest, Vol 148, Issue 63
 **
>>> 
>> 
> 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Slurred staccato in a tremolo (Menu Jacques)

2015-03-08 Thread Cynthia Karl

> On Mar 8, 2015, at 4:07 PM, Menu Jacques  wrote:
> 
> Hello Pat,
> 
> I tried:
> 
> {
>  \time 3/4
>  \clef "bass"
>  \repeat tremolo 6 e8 -\markup {\draw-dotted-line #'(5.1 . 2.3)} |
> }
> 
> but the slur doesn’t show up.

Try:

{
 \time 3/4
 \clef "bass"
 \repeat tremolo 6 e8^\markup { 
\hspace #-1.2
\override #'(thickness . 4)
\override #'(off . 0.05 ) 
\draw-dotted-line #'(4 . 0)} |
}


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user