[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom clef characters
From: |
Mats Bengtsson |
Subject: |
Re: custom clef characters |
Date: |
Thu, 20 Dec 2007 06:27:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8 |
The easiest is probably to use the same trick as in the section
on Polymetric notation, in the manual. In other words, first
spend some time to make a \markup{...} command that
provides the symbol you want in the correct size, then
tell LilyPond to typeset the clef symbol just like any other
text (which includes general markups) and specify your
markup as the text, see the following example.
\version "2.10.0"
myClefSymbol = \markup{
\override #'(font-name . "Times New Roman" ) \large "A"
}
\score{
\relative c'{
\override Staff.Clef #'stencil = #ly:text-interface::print
\override Staff.Clef #'text = #myClefSymbol
c d e f | g a b c |
}
}
/Mats
Mark Oates wrote:
Hi all,
I've searched the archives and docs but haven't found what I'm looking for.
Essentially I want to create a custom clef by using a different character from a
different font.
From what I've gathered so far, I would need to (1) change the font name for the
clef. So:
\override Staff.Clef #'font-name = #"Charter"
and then (2) change the clefGlyph to some, maybe ascii encoded character number
or something?
\set Staff.clefGlyph = #"clefs.F"
Anyway, how can I most simply accomplish this?
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================