lilypond-user
[Top][All Lists]
Advanced

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

Re: Rotating/grouping grobs for microtonal accidentals


From: Mats Bengtsson
Subject: Re: Rotating/grouping grobs for microtonal accidentals
Date: Mon, 31 Mar 2008 11:45:17 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)

As far as I understand, the answer to both of your questions is that you
have to replace the function that normally is done to typeset the accidentals with your own function. This is not necessarily so difficult as it first may seem. The simplest solution is to use the standard function used to typeset any "text"
and specify the glyph to be printed as a markup, for example:

\version "2.10.0"
\relative c'{
\once \override Accidental #'stencil = #ly:text-interface::print
\once \override Accidental #'text = \markup{\rotate #180 \musicglyph #"scripts.lvarcomma"}
cis d e f g f e d c1 }

This solution will not automatically recognize what glyph to use depending on the pitch of the note. Rather you will have to manually specify what markup to use for each accidental. Of course, you can still use the standard mechanism for the accidentals where the Feta font has a suitable glyph and only use the workaround for the rest. Don't forget to define macros for the different settings
to save some typing.
A more advanced solution would be to write a few lines of Scheme code that
automatically gives you the proper accidental based on the note pitch.

   /Mats

Torsten Anders wrote:
On Mar 28, 2008, at 8:58 PM, Torsten Anders wrote:
I would like to define a microtonal notation with alteration fractions (cf. http://lilypond.org/doc/v2.11/Documentation/topdocs/NEWS.html) -- thanks for providing this feature! Everything works great.

My only problem is the creation of suitable accidentals. I need four additional signs: a comma up (/), a comma down (\), and a combination of these signs with the standard accidentals (#\ and b/). I figure I could use something like "scripts.lvarcomma" for a comma up. For a comma down, however, I need to rotate this sign or "scripts.rvarcomma". Moreover, I would like to group my commas with the common accidentals. How can I rotate and group feta font symbols which I want to add to the list of accidentals.

% code does not work, should only clarify problem
myGlyphs = #'((1 . "accidentals.doublesharp")
    [...]
       (1/6 . "scripts.rvarcomma")
       (0 . "accidentals.natural")
    ;; how can I rotate a symbol?
       (1/6 . (rotate "scripts.lvarcomma"))
    [...]
       )

Alternatively, is it perhaps possible to use another font (e.g., TrueType, or some PostScript font) for the accidentals?

Thank you!

Best
Torsten

--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
Office: +44-1752-233667
Private: +44-1752-558917
http://strasheela.sourceforge.net
http://www.torsten-anders.de






_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        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
=============================================





reply via email to

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