I've tried different methods to have a glissando without a final note. The problem is that the glissando sign is too long whatever the hidden note is. I need a short glissando sign. Is that possible?

Here is a minimal code:

\version "2.22.1"
\language "english"

\header {
  % Remove default LilyPond tagline
  tagline = ##f

\layout {
  \context {
    \remove "Bar_number_engraver"

global = {
\key gf \major
  \override Glissando.style = #'trill
  \hide Staff.BarLine
\relative c' {
ef8 ef4 f8 f4 ef8 f8
gf2 \glissando
af2. \glissando
gf4.. gf16
gf2. \glissando \hideNotes d16 \unHideNotes
\bar "||"
  • 3
    Can you provide a snippet of the code you are using? Is the glissando too long horizontally, vertically, or both? Commented Nov 12, 2021 at 16:54
  • In addition to the above, please indicate the instrument(s) involve.
    – Aaron
    Commented Nov 12, 2021 at 17:23
  • 1
    I added the code
    – Mahanidhi
    Commented Nov 13, 2021 at 7:10

2 Answers 2


It's hard to know what you are trying to achieve without some kind of image/drawing.

I guess that you want the final note to take up no metrical time in the bar, if so you probably want to use a hidden grace note:

    \afterGrace gf2\glissando { \hideNotes af8 \unHideNotes }


Now that you have posted the code that you are working with, it seems like there is a problem with the timing translator. I think you should be using a cadenza instead of just hiding the bar lines.

Try something like this:

    ef8 ef4 f8 f4 ef8 f8
    \afterGrace gf2\glissando { \hideNotes af8 \unHideNotes }
    \afterGrace af2.\glissando { \hideNotes gf8 \unHideNotes }
    gf4.. gf16
    \afterGrace gf2.\glissando { \hideNotes d8 \unHideNotes }

Add a note in a hidden voice to anchor the end of the gliss.

  • 2
    From the OP: "the glissando sign is too long whatever the hidden note is"
    – Aaron
    Commented Nov 12, 2021 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.