lilypond-user
[Top][All Lists]
Advanced

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

Re: accidental query


From: Jean Abou Samra
Subject: Re: accidental query
Date: Tue, 14 Feb 2023 19:11:10 +0100
User-agent: Evolution 3.46.3 (3.46.3-1.fc37)

Le mardi 14 février 2023 à 15:27 +0100, Karim Haddad a écrit :

Dear All,

Maybe this was already submitted. I am looking for this particular symbol to use as alteration for 1/8th tones. (cf. screenshot attached)
However it seems missing in the Emmentaler font. Is it possible to include it or this is a complicated task? I have fontforge on my computer.
I wish to use it as accidentals.sharp.slashslash.stemstemstem.arrowup, or something like that.

Any ideas?

Like this, perhaps?

\version "2.24.0"

arrow =
  \markup \override #'(thickness . 1.45)
    \translate #'(1.24 . 2.3) \overlay {
      \draw-line #'(0.01 . -2)
      \draw-line #'(-0.3 . -0.7)
      \draw-line #'(0.3 . -0.7)
    }


\layout {
  \context {
    \Score
    alterationGlyphs =
      #(acons 1/8 "accidentals.sharp.slashslash.stemstemstem"
              standard-alteration-glyph-name-alist)
    \override Accidental.stencil =
      #(grob-transformer
        'stencil
        (lambda (grob orig)
          (ly:stencil-add orig (grob-interpret-markup grob arrow))))
  }
}

#(ly:parser-set-note-names
  (append pitchnames
          (map (match-lambda
                ((name . pitch)
                 (cons (symbol-append name 'et)
                       (ly:pitch-transpose pitch
                                           (ly:make-pitch 0 0 1/8)))))
               pitchnames)))


{
  % cet = C + one eighth tone, etc.
  cet4 det8
}

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


reply via email to

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