lilypond-user
[Top][All Lists]
Advanced

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

Re: ChordName Font Size


From: Aaron Hill
Subject: Re: ChordName Font Size
Date: Tue, 14 May 2019 22:15:25 -0700
User-agent: Roundcube Webmail/1.3.8

On 2019-05-14 6:23 pm, Gregory Hollands wrote:
This function is working nicely, except the major seventh triangle is still
growing with the font size.

Should be possible to exempt other markup commands:

%%%%
embiggenChordNames = #(define-scheme-function (size) (number?)
  #{ \with {
    chordNameFunction = #(lambda (in-pitches bass inversion context)
      (define exemptions (list
        musicglyph-markup
        triangle-markup))
      (define (helper mu)
        (if (list? mu)
          (if (memq (car mu) exemptions)
            (markup (#:fontsize (- size) mu))
            (map helper mu))
          mu))
(let ((orig (ignatzek-chord-names in-pitches bass inversion context)))
        (markup (#:fontsize size (helper orig)))))
  } #} )
%%%%


-- Aaron Hill



reply via email to

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