On Wed, 2025-02-19 at 09:35 -0800, Knute Snortum wrote:
> On Wed, Feb 19, 2025 at 9:15 AM Richard Shann
> <rich...@rshann.plus.com> 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.
> }

Thank you - that works well, to enable the glissando to have more space
I added a new spacing section around it giving this example:

8><8><8><8><8><8><8><8><8><8><8><8><8><8><
\version "2.25.18"
\relative c'' {
  \time 3/4
  \override Glissando.style = #'zigzag
  c4 c4
  \newSpacingSection
  \override Score.SpacingSpanner.spacing-increment = #1
  c4*7/8\glissando
  \hideNotes c,,32 \unHideNotes
  \newSpacingSection
  \revert Score.SpacingSpanner.spacing-increment
  \bar "|"
  R2.
}
8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><

If someone is updating it might be good to include this tweak as
otherwise the end of the glissando is restricted to staying within the
space occupied by the note.
Thanks to all who responded!

Richard

> 
> --
> Knute Snortum
> 
> 


Reply via email to