Re: Override NoteHead glyph

2022-06-25 Thread Lukas-Fabian Moser

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 } \\
     { 2 } >>  }


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
    } \\
    { 2 }
  >> 
}

Lukas



Re: Override NoteHead glyph

2022-06-22 Thread Valentin Petzel
Hello Ahanu,

there is also the option to override NoteHead.style to #'harmonic-black. This 
will not give you a round head though.

Cheers,
Valentin

Am Mittwoch, 22. Juni 2022, 21:19:20 CEST schrieb Ahanu Banerjee:
> Hello,
> 
> 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 } \\
>  { 2 } >>  }
> 
> Thanks,
> -Ahanu



signature.asc
Description: This is a digitally signed message part.


Re: Override NoteHead glyph

2022-06-22 Thread Ahanu Banerjee
Perfect; thank you!

On Wed, Jun 22, 2022, 15:32 Aaron Hill  wrote:

> On 2022-06-22 12:19 pm, Ahanu Banerjee wrote:
> > Hello,
> >
> > 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 } \\
> >  { 2 } >>  }
>
> You can scale the duration of any note so as to preserve its normal
> appearance but take up the required length:
>
> 
> \fixed c' { b4*2 a | b4*3 a4 | b4*4 | a1 }
> 
>
>
> -- Aaron Hill
>


Re: Override NoteHead glyph

2022-06-22 Thread Aaron Hill

On 2022-06-22 12:19 pm, Ahanu Banerjee wrote:

Hello,

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 } \\
 { 2 } >>  }


You can scale the duration of any note so as to preserve its normal 
appearance but take up the required length:



\fixed c' { b4*2 a | b4*3 a4 | b4*4 | a1 }



-- Aaron Hill



Override NoteHead glyph

2022-06-22 Thread Ahanu Banerjee
Hello,

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 } \\
 { 2 } >>  }

Thanks,
-Ahanu