I am making a video where I have basically a piano score. I want to show first a bare bones version of the tune and then gradually add parts with nothing else moving so that as the video plays, it looks like the notes are being added to the original file without other parts jumping around. I have figured out how to fix the vertical space between staves, but there is a little bit of movement horizontally (stretching with the bar lines).

1 Answer 1


It sounds like what you want is "hidden notes". The spacing is just as if the notes are there, but they aren't visible. You can then reveal them at the appropriate time.

Here is the LilyPond Notation Reference page for Hidden Notes.

The two commands of interest: \hideNotes and \unHideNotes. Here's an example from the above reference page.

LilyPond Hide UnHide example

  • Of course! Thank you. Rather than trying to fix the distance between the bar lines, I hold the place of the notes so it's as if they are always there. I did not think of going about it that way.
    – Stephanie
    Sep 21, 2020 at 23:39
  • @Stephanie You're very welcome. The best thanks, besides your upvote, is to "accept" the answer (the check mark beneath the up/down vote arrows). I suggest waiting to see if other, better answers emerge first.
    – Aaron
    Sep 21, 2020 at 23:44

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.