Re: \after syntax?

2024-02-22 Thread Matthew Pierce
Thanks to all for the assist!

The new-coder mistake I had made was in mentally attaching the \after function 
to the entire measure, instead of the note in question.

Best,
Matt

From: Michael Werner 
Sent: Wednesday, February 21, 2024 12:41 PM
To: Matthew Pierce 
Cc: lilypond-user@gnu.org 
Subject: Re: \after syntax?

Hi Matt,

On Wed, Feb 21, 2024 at 10:53 AM Matthew Pierce 
mailto:pierce...@hotmail.com>> wrote:
Hello all,

For hairpin positioning within a whole note, the Manual gives the syntax

\relative {
\after 2 \< c'1
}

Is there an effective \after syntax for hairpin positioning within NON-whole 
notes, such as  the second note in this (intuitive but) nonviable expression?

  \relative {
\after 2 \< c'4 2.
  }

CONTEXT: I need to place an \espressivo-shaped, double-hairpin swell underneath 
a dotted half note. Also, I need it to be stretchable, so that I can 
horizontally align it with the other, more active parts/staffs in my orchestral 
score.

To emulate an \espressivo using actual dynamics by way of the \after function:

\version "2.25.13"

musA = \relative c' {
  a'4 \after 8*3 \>  a2.\< a2\! a2
}

musB = \relative c' {
  a'4 \after 4. \> \after 2. \! a2.\< a2 a2
}

musC = \relative c' {
  a'4 \after 4. \> a2.\< <>\! a2 a2
}

\score {
  \new Staff {
\new Voice {
  \musA
} } }

\score {
  \new Staff {
\new Voice {
  \musB
} } }

\score {
  \new Staff {
\new Voice {
  \musC
} } }

will produce:

[image.png]

Three different ways of accomplishing the same thing. The first showing that 
you can indeed use scaling in the \after function (i.e. the 8*3 meaning 3 8th 
notes worth) and terminating the decrescendo on the following note. The second 
using \after to do the termination.  The third uses the empty chord construct 
(i.e. the <> ) to attach the termination to. You are, of course, free to mix 
and match whichever method suits you.
--
Michael



Re: \after syntax?

2024-02-21 Thread Michael Werner
Hi Matt,

On Wed, Feb 21, 2024 at 10:53 AM Matthew Pierce 
wrote:

> Hello all,
>
> For hairpin positioning within a whole note, the Manual gives the syntax
>
> \relative {
> \after 2 \< c'1
> }
>
> Is there an effective \after syntax for hairpin positioning within
> NON-whole notes, such as  the second note in this (intuitive but)
> nonviable expression?
>
>   \relative {
> \after 2 \< c'4 2.
>   }
>
> CONTEXT: I need to place an \espressivo-shaped, double-hairpin swell
> underneath a dotted half note. Also, I need it to be stretchable, so that I
> can horizontally align it with the other, more active parts/staffs in my
> orchestral score.
>

To emulate an \espressivo using actual dynamics by way of the \after
function:

\version "2.25.13"

musA = \relative c' {
  a'4 \after 8*3 \>  a2.\< a2\! a2
}

musB = \relative c' {
  a'4 \after 4. \> \after 2. \! a2.\< a2 a2
}

musC = \relative c' {
  a'4 \after 4. \> a2.\< <>\! a2 a2
}

\score {
  \new Staff {
\new Voice {
  \musA
} } }

\score {
  \new Staff {
\new Voice {
  \musB
} } }

\score {
  \new Staff {
\new Voice {
  \musC
} } }

will produce:

[image: image.png]

Three different ways of accomplishing the same thing. The first showing
that you can indeed use scaling in the \after function (i.e. the 8*3
meaning 3 8th notes worth) and terminating the decrescendo on the following
note. The second using \after to do the termination.  The third uses the
empty chord construct (i.e. the <> ) to attach the termination to. You are,
of course, free to mix and match whichever method suits you.
-- 
Michael


Re: \after syntax?

2024-02-21 Thread Hans Aikema


> On 21 Feb 2024, at 14:30, Matthew Pierce  wrote:
> 
> Hello all, 
> 
> For hairpin positioning within a whole note, the Manual gives the syntax
> \relative {
> \after 2 \< c'1
> }
> Is there an effective \after syntax for hairpin positioning within NON-whole 
> notes, such as  the second note in this (intuitive but) nonviable expression?
> 
>   \relative {
> \after 2 \< c'4 2.
>   }
> 
> CONTEXT: I need to place an \espressivo-shaped, double-hairpin swell 
> underneath a dotted half note. Also, I need it to be stretchable, so that I 
> can horizontally align it with the other, more active parts/staffs in my 
> orchestral score. 
> 
> Thanks, Matt

If I interpret your nonviable snippet you want the hairpin to start halfway 
through the measure and thus 1/3 into the dotted half note. Which means your 
crescendo should apply to the c’2. rather than the c’4, which means the logical 
snippet would be:

  \relative {
 c'4 \after 4 \< \after 2.\! 2.
 % or
 c'4 \after 4 \< 2. <>\! 
  }

Note: The explicit crescendo-end (either with another \after, or by an empty 
chord is required in this small snippet as without it Lilypond complains 
(warning) about an unterminated crescendo and completely omits the hairpin. 
Depending on where the crescendo needs to end in your actual music you may or 
may not need it, but for this snippet it is required to add.



Re: \after syntax?

2024-02-21 Thread Knute Snortum
On Wed, Feb 21, 2024 at 7:53 AM Matthew Pierce 
wrote:

> Hello all,
>
> For hairpin positioning within a whole note, the Manual gives the syntax
>
> \relative {
> \after 2 \< c'1
> }
>
> Is there an effective \after syntax for hairpin positioning within
> NON-whole notes, such as  the second note in this (intuitive but)
> nonviable expression?
>
>   \relative {
> \after 2 \< c'4 2.
>   }
>
> CONTEXT: I need to place an \espressivo-shaped, double-hairpin swell
> underneath a dotted half note. Also, I need it to be stretchable, so that I
> can horizontally align it with the other, more active parts/staffs in my
> orchestral score.
>

Well, neither of those snippets compile without an error because the
hairpin is not terminated, but I don't see why you couldn't put the "after"
before the dotted half note and terminate it:

\relative {
  c'4 \after 2 \< 2. c4\!
}

Am I missing what you're trying to accomplish?