lilypond-user
[Top][All Lists]
Advanced

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

Re: Override NoteHead glyph


From: Lukas-Fabian Moser
Subject: Re: Override NoteHead glyph
Date: Sun, 26 Jun 2022 07:46:58 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

Hi Ahanu,

Am 22.06.22 um 21:19 schrieb Ahanu Banerjee:
I am trying to create noteheads (without stems) that have a duration longer than a quarter note (crotchet) but are filled-in. They are meant to represent the notes that will be heard when a harmonic is played. I am not sure how to do this; one workaround is to use a quarter note value and a spacer rest, but this results in too much empty space. I tried \override NoteHead.glyph-name = #'"noteheads.s2", but that did not work.

Example below (the notes are arbitrary):

\version "2.23.7" 
\relative c''
{ << { \override Parentheses.font-size = #-1.5 \omit Flag \omit Stem 
       \teeny \tweak X-offset #0.2
%% the higher voice should have filled-in noteheads
       <\parenthesize d \parenthesize f>2 } \\ 
     { <d,\harmonic g\harmonic>2 } >> <d g> }

I think

filled = \tweak duration-log 2 \etc

is easier than the solutions proposed so far:

\version "2.23.7"

filled = \tweak duration-log 2 \etc

\relative c''
{
  <<
    {
      \override Parentheses.font-size = #-1.5 \omit Flag \omit Stem
      \teeny \tweak X-offset #0.2

      %% the higher voice should have filled-in noteheads
      
      \filled <\parenthesize d \parenthesize f>2
    } \\
    { <d,\harmonic g\harmonic>2 }
  >> <d g>
}

Lukas



reply via email to

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