lilypond-user
[Top][All Lists]
Advanced

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

Re: Changing accidental size and alignment in chord symbols


From: Knute Snortum
Subject: Re: Changing accidental size and alignment in chord symbols
Date: Sat, 27 May 2023 06:38:02 -0700

I'm just guessing, but is there a

     (make-teeny-markup

?  I'm thinking there might be since you can write

    \markup \concat { "C" \teeny \sharp " minor" }

--
Knute Snortum



On Sat, May 27, 2023 at 5:56 AM Lib Lists <listslib@gmail.com> wrote:
For reference, I almost solved this by changing;

(make-small-markup
into
(make-tiny-markup

Reference in the documentation:
https://lilypond.org/doc/v2.25/Documentation/extending/how-markups-work-internally
and then https://lilypond.org/doc/v2.25/Documentation/notation/font-markup
for the font markup list.

It's not yet perfect, as I'd wish the sharp sign to be still smaller,
but satisfactory enough.
See screenshot 'before' and 'after'.

Cheers,
Lib

On Sat, 27 May 2023 at 12:49, Lib Lists <listslib@gmail.com> wrote:
>
> Replying to myself, as it might help someone else to give me some hints.
> I made some progresses following the LSR example here:
> https://lsr.di.unimi.it/LSR/Item?id=1057, adding the line
> 'make-musicglyph-markup' taken from here:
> https://lsr.di.unimi.it/LSR/Snippet?id=1057
>
> In the first snippet I changed the sections about using 'b' and '#' so
> that it would use the musicglyphs flat and sharp, and I changed the
> raise value to my taste.
>          (make-line-markup
>             (list
>               (make-hspace-markup 0.3)
>               (make-small-markup (make-raise-markup 0.5
>                 (make-musicglyph-markup "accidentals.flat")))))
>           ;; or handle adding the sharp symbol
>           (make-line-markup
>             (list
>               (make-hspace-markup 0.1)
>               (make-small-markup (make-raise-markup 1
>                 (make-musicglyph-markup "accidentals.sharp")))))))))))
>
> However, I didn't manage to change the size of the accidentals. If
> anyone could point me in the right direction it would be great! Bear
> in mind, my knowledge of Scheme is primitive to say the least.
>
> Best regards,
> Lib
>
> On Fri, 26 May 2023 at 10:31, Lib Lists <listslib@gmail.com> wrote:
> >
> > I'd like to change the size of the accidentals and their alignment in
> > chord symbols.
> >
> > Here a MWE:
> >
> > \version "2.25.5"
> > \chords {
> >   aes2 cis
> > }
> >
> > Specifically, I'd like to have all the flats smaller, and the sharps
> > smaller and horizontally center-aligned with the root note name.
> >
> > I checked the manual and the mailing list, but I wasn't able to find a solution.
> > Any help would be really appreciated!
> >
> > Cheers,
> > Lib

reply via email to

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