Of course.

What eventually worked for me is:

%%% CODE BEGINS %%%

\version "2.26.0"

ekmFont = "Bravura"
\include "C:/Users/Lovro/Documents/Lillypond files/ekmel-12.ily"
\include "C:/Users/Lovro/Documents/Lillypond files/esmufl.ily"
\ekmelicStyle std

bravuraDef = {
%%Adjustet Bravura defaults
\override Staff.StaffSymbol.thickness = #1.25
\override Hairpin.thickness = #1.25
\override Staff.Beam.beam-thickness = #0.5
\override Staff.Slur.thickness = #1.2
\override Staff.NoteHead.font-size = #1.115
}

ekmSet = {
\bravuraDef
\ekmSmuflOn #'all
}

offsetUpStems = \override NoteHead.X-offset = #(lambda (grob)
    (let ((stem (ly:grob-object grob 'stem)))
    (if (and (ly:grob? stem) (= (ly:grob-property stem 'direction) UP))
0.035)))

melody = \relative c'' {
  \offsetUpStems
  a4 b c d
}

\score {
  \new Staff \with {
  \override Staff.Stem.thickness=#1.25
  \override StaffSymbol.thickness = #1.25
}  \melody

  \layout {
   \context {\Score \ekmSet}
  }
}

%%% CODE ENDS %%%

The Bravura defaults described here
<https://github.com/dbenjaminmiller/bmusicfonts> for me reproduced slightly
unsatisfactory results. Most notably, noteheads with stems going up seem to
be offset slightly to the left (in an effort to mitigate this I wrote the
function in the code above). Also, overriding Staff.Stem.thickness and
StaffSymbol.thickness
for me only worked once I moved them from bravuraDef to score block.

Hope this helps.

Cheers,

Lovro

pon, 29. lip 2026. u 15:54 Knute Snortum <[email protected]> napisao je:

> On Mon, Jun 29, 2026 at 6:51 AM Lovro Barišić <[email protected]>
> wrote:
>
>> Sorry about the cc.
>>
>> I finally got it to work.
>>
>
> Share what worked for you so that others can benefit from it!
>
> --
> Knute Snortum
>
>

Reply via email to