lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a way to prevent tied notes from triggering multiple note n


From: Phil Holmes
Subject: Re: Is there a way to prevent tied notes from triggering multiple note names with \context NoteNames?
Date: Fri, 9 Apr 2021 17:06:03 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0

I should have copied my answer to the group, but often miss this with my newer mail client.

Anyway - you can use the Completion engrave within bars - see the later manual here:

http://lilypond.org/doc/v2.22/Documentation/notation/displaying-rhythms#automatic-note-splitting


On 09/04/2021 16:40, Matthew Probst wrote:
On second thought, that might not work so well--I have ties inside the measures, not just at bar lines, to follow the engraving/notation rule that you don't have notes that span multiple beats. I can relaxi this somewhat.  Here's the most problematic of the tunes I've done this for, a sample of the output:
note-name-repetition-example.png

The first f# on the first line is across measures, and would be handled this way, but the ones in the next measure are a sixteenth to a quarter within the measure and wouldn't most likely.


On Fri, Apr 9, 2021 at 10:25 AM Phil Holmes <mail@philholmes.net> wrote:
It might be worth looking at the Completion heads engraver.  See:

http://lilypond.org/doc/v2.18/Documentation/notation/displaying-rhythms#automatic-note-splitting

If, instead of writing explicitly tied notes you write notes of their actual length, you might only get a single note displayed. Not tried, but just a thought.

On 09/04/2021 16:15, Matthew Probst wrote:
> I've been using Lilypond to create lead sheets for a band that I'm in, and it works great for that.  Between that and a website I use for generating simple chord charts, we're covered for our notation purposes.
>
> I have some less skilled note readers in the band--they can read rhythm notation, and get a general idea of melody shape from the notes on the staff, but things go easier if they can see the note names for each note under the staff.  That's easy with LilyPond:
>
> LeadStaffWithNoteNames = \new Staff \with {
> instrumentName = #"Lead (notes)"
> }
> {
>     <<
>         \relative c'' {
>             \HomeKey
>             \clef treble
>             \LeadIntroFull
>             \LeadHeadFull
>    }
>    \context NoteNames {
>             \set printOctaveNames = ##f
>             \LeadIntroFull
>             \LeadHeadFull
>    }
>     >>
> }
>
> This works great, except for one cosmetic issue:  For tied notes, the note name is repeated for the second, third, etc. tied note.  While my weaker note-readers can comprehend this given that they can grasp the rhythmic notation, it's a bit of a hassle.
>
> Is there any good way to automate printing of note names underneath the staff while avoiding repetitions of the note name during ties?  I did a search of the snippets repository and the documentation for Lilypond 2.22.0, which I'm using. I'm guessing that it might require custom Scheme instead of just configuration parameters, but I might be wrong.  I know Scheme the language and Lilypond the markup language, but not Lilypond the Scheme API.  I'm willing to do lifting on the code myself but would welcome pointers on how might be best to accomplish it. so I can best direct my learning.

--
Phil Holmes

-- 
Phil Holmes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]