|
From: | Urs Liska |
Subject: | Re: Flat - with "2" number |
Date: | Tue, 17 Nov 2015 17:13:30 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Sorry for not replying earlier, but I didn't realize earlier what
you actually need. If you just want to replace the regular time signature with that specific glyph from the SMuFL range you can actually do that quite easily: What you have to do is simply replace the "stencil" of Staff.KeySignature with a markup containing your glyph. See this blog post for some more information http://lilypondblog.org/2014/04/using-special-characters-from-smufl-fonts/ and this code: \version "2.19.30" #(define (accidental2CommaFlat grob) (grob-interpret-markup grob (markup ;; Select Bravura font ; This doesn't seem to work (although I think it should) ; #:font-name "Bravura" ;; set size of the glyph - ; please experiment wtih appearance and problem of interference with staff lines #:fontsize 5 ;; choose the glyph to be taken #:char #xE455))) \relative c'{ % There has to be a key, otherwise nothing will be printed. \key g \major % Use Bravura, the SMuFL reference font (actually this should be done % inside the stencil but I don't know how \override Staff.KeySignature.font-name = "Bravura" % Tell LilyPond to use something else than the default key signature \override Staff.KeySignature.stencil = #accidental2CommaFlat c } which expects the Bravura font from here: http://www.smufl.org/fonts/ to be installed as a system font. HTH Urs Am 08.08.2015 um 18:55 schrieb Server
Acim:
Hello, |
[Prev in Thread] | Current Thread | [Next in Thread] |