oops, that's embarassing... I agree. The Hide directive seems to be randomly selective in what is 'hidden'. I found this problem when comparing the hide NoteHead (capital H !) to the other directive.
The Hide NoteHead command also correctly spaced the given note within the score. On Wednesday, September 6, 2023 1:32:07 AM PDT Richard Shann wrote: > On Tue, 2023-09-05 at 09:50 -0700, Donald J. Stewart wrote: > > https://lilypond.org/doc/v2.24/Documentation/notation/expressive-marks-as-> > > > lines > Ah, right, that explains it - in your email you suggested > > \once \hide Notehead > > which doesn't work, it has to be NoteHead. > > You can insert this syntax using the command: > > Command: Insert Lilypond > Insert or edit a directive in the LilyPond music typesetting language. > This can be used for extra spacing, transposing or almost anything. See > LilyPond documentation for ideas. > Location: Object Menu ▶ Directives > Internal Name: InsertStandaloneDirective > > To have it readily available you could double click on the directive > and start the Object Editor and choose "Create Button for Clone" which > would give you a button in a palette for inserting it in future. > However it would be much better if it were *not* a standalone directive > but rather attached to the note. > > To do that use the command: > > Command: Attach/Edit LilyPond to Note > Inserts LilyPond syntax you give before and after the note at the > cursor height, also allows editing/deleting. > Location: Object Menu ▶ Notes/Rests ▶ Directives > Internal Name: InsertNoteDirective > > and put > > \once \hide Notehead > > before the note. Then as before you can create a button to insert this > syntax. > > Which brings us to the starting point, the command > > Command: (Print) Hide Object > Hides the object at cursor position with a lilypond directive. > Currently only Notes and the three Signatures. No rests! > Location: Object Menu ▶ Directives ▶ Typesetter > Internal Name: Hide > > This command was not doing what its Help says it does. Looking at the > history of it in the repository it seems something is corrupted. I've > restored it to what I suspect was the original script. It now does do > what it says (although hiding a note is limited to hiding the notehead > and not the stem). This was clearly an unfinished project, to create a > command that would hide any type of LilyPond object. As such I think it > was misguided, not least because the directive created is closely > linked to the object that follows it and can't be moved elsewhere with > any reliable result. > > I think it should be retired. > > HTH > > Richard > > > I found the command under 'Adding timing marks to long glissandi'. > > > > I've been applying small changes to an example that I previously > > submitted. I've tested these changes both in Denemo and Frescobaldi. > > > > One thing to note in Denemo, is that changes made in the 'Advanced' > > tab under Object editor seem to work better than attempts to change > > it in the Lilypond Text Editor. > > > > \once\hide NoteHead also creates the proper spacing for 'hidden' > > noteheads. > > > > I've attached the small Denemo example before and after changing the > > \once\hide\NoteHead command > > > > On Tuesday, September 5, 2023 12:56:12 AM PDT Richard Shann wrote: > > > On Mon, 2023-09-04 at 16:35 -0700, Donald J. Stewart wrote: > > > > I just discovered (late to the party as usual) the Lilypond > > > > directive: > > > > > > > > \once \hide Notehead > > > > > > Can you give the URL of the location in the lilypond documentation > > > where you found this syntax? If you simply insert this before a > > > note > > > you get an error message from LilyPond. > > > > > > Richard
