[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Override NoteHead glyph
From:       Lukas-Fabian Moser <lfm () gmx ! de>
Date:       2022-06-26 5:46:58
Message-ID: 9e3a677c-b419-c666-d76b-91d68202711c () gmx ! de
[Download RAW message or body]

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


[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Ahanu,<br>
    </p>
    <div class="moz-cite-prefix">Am 22.06.22 um 21:19 schrieb Ahanu
      Banerjee:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABXZprG+29LX8FLY8JqRR6mSXdnhXZ1-v7iCnmfWQCDzrDUNyQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">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.
            <div><br>
            </div>
            <div>Example below (the notes are arbitrary):</div>
            <div><br>
            </div>
          </div>
          <blockquote style="margin:0px 0px 0px
            40px;border:none;padding:0px">
            <div>
              <div>
                <div>\version "2.23.7" </div>
              </div>
            </div>
            <div>
              <div>
                <div>\relative c''</div>
              </div>
            </div>
            <div>
              <div>
                <div>{ &lt;&lt; { \override Parentheses.font-size =
                  #-1.5 \omit Flag \omit Stem </div>
              </div>
            </div>
            <div>
              <div>
                <div>       \teeny \tweak X-offset #0.2</div>
              </div>
            </div>
          </blockquote>
          <blockquote style="margin:0px 0px 0px
            40px;border:none;padding:0px">
            <div>%% the higher voice should have filled-in noteheads</div>
          </blockquote>
          <blockquote style="margin:0px 0px 0px
            40px;border:none;padding:0px">
            <div>
              <div>
                <div>       &lt;\parenthesize d \parenthesize f&gt;2 }
                  \\ </div>
              </div>
            </div>
            <div>
              <div>
                <div>     { &lt;d,\harmonic g\harmonic&gt;2 } &gt;&gt;
                  &lt;d g&gt; }</div>
              </div>
            </div>
            <br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <p>I think</p>
    <p>filled = \tweak duration-log 2 \etc</p>
    <p>is easier than the solutions proposed so far:</p>
    \version "2.23.7"<br>
    <br>
    filled = \tweak duration-log 2 \etc<br>
    <br>
    \relative c''<br>
    {<br>
      &lt;&lt;<br>
        {<br>
          \override Parentheses.font-size = #-1.5 \omit Flag \omit Stem<br>
          \teeny \tweak X-offset #0.2<br>
    <br>
          %% the higher voice should have filled-in noteheads<br>
          <br>
          \filled &lt;\parenthesize d \parenthesize f&gt;2<br>
        } \\<br>
        { &lt;d,\harmonic g\harmonic&gt;2 }<br>
      &gt;&gt; &lt;d g&gt;<br>
    }<br>
    <p>Lukas<br>
    </p>
    <br>
  </body>
</html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic