Again, please keep the list cc'ed. I don't like private mails for LilyPond-support.
For your pupose, as far as I understand it, I'd go for a different coding: Basically, combine two circles to build the new NoteHead. You surely want to adjust 'stem-attachment as well: { \override NoteHead.stem-attachment = #(lambda (grob) (cons (ly:grob-property (ly:grob-object grob 'stem) 'direction) 0)) \override NoteHead.stencil = #(lambda (grob) (ly:stencil-add (make-circle-stencil 0.5 0.1 #f) (make-circle-stencil 0.125 0.1 #t))) b'1 b'2 b'4 b'8 b' } Alas, b2 and b4 are now undistinguishable. How do you want to handle this? Cheers, Harm Am So., 21. Nov. 2021 um 15:51 Uhr schrieb Leonid Hrabovsky <lhrabov...@gmail.com>: > > Great, Thomas, I am very grateful - now I have the proper notehead for the > score of my large old composition that remained in manuscript 50 years. But > it is a bit too big - is there any way to reduce it to the distance between > two staff lines just to fit between them? > > Best wishes, > > Леонід - Leonid > > > > On Sun, Nov 21, 2021 at 5:27 AM Thomas Morley <thomasmorle...@gmail.com> > wrote: >> >> Am So., 21. Nov. 2021 um 01:58 Uhr schrieb Leonid Hrabovsky >> <lhrabov...@gmail.com>: >> > >> > Hi Thomas, here is my attempt to make a new notehead out of the grob >> > neomensural94 - >> > >> > \version "2.20.0" >> > \language "english" >> > >> > \score { >> > \new Staff { >> > >> > MyNoteHeads = \override NoteHead.stencil = \musiglyph >> > "timesig.neomensural94" >> > >> > \relative { a'4 g f e | fs gs a2 } >> > >> > myNoteHeads = \override NoteHead.stencil = \timesig.neomensural94 >> > >> > % or maybe more correct code - - - >> > >> > \version "2.20.0" >> > \language "english" >> > >> > \score { >> > \new Staff { >> > >> > MyNoteHeads = \override NoteHead.stencil = \musiglyph >> > "timesig.neomensural94" >> > >> > \relative { a'4 g f e | fs gs a2 } >> > >> > } >> > } >> > >> > What was wrong in that code? >> > >> > Леонід - Leonid >> >> Please always cc the list. >> >> Well, what's wrong? >> >> You need to do such definitions outside of the music at toplevel >> niveau and call it _in_ music, i.e. >> myDef = ... >> { \myDef ... } >> >> If you want some text (i.e. \markup) replacing a stencil, do >> \override NoteHead.stencil = #ly:text-interface::print >> \override NoteHead.text = \markup ... >> As explained here: >> http://lilypond.org/doc/v2.22/Documentation/notation/modifying-stencils >> >> \musicglyph was misspelled. >> >> This works: >> >> MyNoteHeads = { >> \override NoteHead.stencil = #ly:text-interface::print >> \override NoteHead.text = \markup \musicglyph "timesig.neomensural94" >> } >> >> \new Staff \relative { \MyNoteHeads a'4 g f e | fis gis a2 } >> >> >> NB The above explanations are simplified, disregarding many other >> possibilities and cases. >> >> >> Cheers, >> Harm