On Wed, Feb 19, 2025 at 9:15 AM Richard Shann <[email protected]>
wrote:
>
> This looks promising and I would like to try to understand what the two
> duration parameters 8.. and 32 are doing in this context.
> The only documentation I have found for \after is
>
> \after delta (duration) ev (music) mus (music) ⇒ music
> Add music ev with a delay of delta after the onset of mus
>
> I'm not sure what "Add" means here - playing around with various values
> has got me confused - some values push subsequent notes into the next
> bar, others change the spacing of bars before and after as if it had
> affected the Score.SpacingSpanner.spacing-increment.
>
> I wonder if someone could shed some light on this. The goal is to
> create a glissando from a note to a non-printing note - I'm this means
> its note-column (?) is made wider, but otherwise the spacing is normal.
>
> Many thanks,
>
> Richard
>
>
> >
> > All the best,
> > Yoshi
> >
> > \version "2.25.18"
> > \relative c'' {
> > \time 3/4
> > \override Glissando.style = #'zigzag
> > c4 c4
> > \after 8.. {\hideNotes
> > {c,,32}
> > \unHideNotes
> > } c''4\glissando
> > \bar "|"
> > R2.
> > }
>
>
The \after command solves this problem: say you have this music:
{ c'2. c'4 }
...and you want to add markup text to the second beat. There is no note on
the second beat, so you would write:
{ \after 4 ^\markup "A" c'2. c'4 }
That is, after a duration of 4, add ^\markup "A" as if a note were there.
Now in the case of the glissando, you really don't need \after, you could
just write:
\relative c'' {
\time 3/4
\override Glissando.style = #'zigzag
c4 c4
c4*7/8\glissando
\hideNotes c,,32 \unHideNotes
\bar "|"
R2.
}
--
Knute Snortum