Re: Right way to make a function for a set of articulations on a note

2019-01-16 Thread Andrew Bernard
Hi All,

My miserable example stimulated the right answer. The power of the MWE!

Big thanks to all. Most appreciated.

Andrew


On Wed, 16 Jan 2019 at 22:59, David Kastrup  wrote:

>
> That's basically a big heap of rubbish.  You were right to feel
> uncomfortable with that.  Try
>
> \version "2.19.82"
>
> artic = -- -\parenthesize ->
>
> {
>c''\artic d''  e''\artic
> }
>
> instead.
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Right way to make a function for a set of articulations on a note

2019-01-16 Thread David Kastrup
Andrew Bernard  writes:

> I often need use a tenuoto with a parenthesised accent, but I only just
> figured out how to achieve that. Now ti would be convenient have a function
> of some sort as a shorthand.
>
> Is this the right way to do it that I came up with? I feel a bit
> uncomfortable about the <>, and maybe this should be some sort of post
> event, like articulations themselves?
>
> %==
> \version "2.19.82"
>
> artic = { <> ^- -\parenthesize ^> }
> {
>   \artic c'' d'' \artic e''
> }
>
> %==

That's basically a big heap of rubbish.  You were right to feel
uncomfortable with that.  Try

\version "2.19.82"

artic = -- -\parenthesize ->

{
   c''\artic d''  e''\artic
}

instead.

-- 
David Kastrup

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


Re: Right way to make a function for a set of articulations on a note

2019-01-15 Thread Thomas Morley
Am Mi., 16. Jan. 2019 um 03:37 Uhr schrieb Andrew Bernard
:
>
> I often need use a tenuoto with a parenthesised accent, but I only just 
> figured out how to achieve that. Now ti would be convenient have a function 
> of some sort as a shorthand.
>
> Is this the right way to do it that I came up with? I feel a bit 
> uncomfortable about the <>, and maybe this should be some sort of post event, 
> like articulations themselves?
>
> %==
> \version "2.19.82"
>
> artic = { <> ^- -\parenthesize ^> }
> {
>   \artic c'' d'' \artic e''
> }
>
> %==
>
>
> Andrew

Hi Andrew,

why not:

artic = ^--\parenthesize ^>
{
   c''\artic d'' e''\artic
}

Cheers,
  Harm

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


Re: Right way to make a function for a set of articulations on a note

2019-01-15 Thread Kieren MacMillan
Hi Andrew,

> I often need use a tenuoto with a parenthesised accent, but I only just 
> figured out how to achieve that. Now ti would be convenient have a function 
> of some sort as a shorthand.
> 
> Is this the right way to do it that I came up with? I feel a bit 
> uncomfortable about the <>, and maybe this should be some sort of post event, 
> like articulations themselves?

Yes. Maybe something like this?

%%%  SNIPPET BEGINS
tenu =
  -\tweak stencil #ly:text-interface::print
  -\tweak text
  \markup
\override #'(baseline-skip . 1.375)
\center-column {
  \parenthesize \musicglyph #"scripts.sforzato"
  \fontsize #1.1 \musicglyph #"scripts.tenuto"
}
  -\tenuto

{
  c'' d''-\tenu e''
}
%%%  SNIPPET ENDS

Adjust parameters, spacing, etc., as you see fit.

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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