lilypond-user
[Top][All Lists]
Advanced

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

Customized accidentals


From: Kees van den Doel
Subject: Customized accidentals
Date: Sun, 08 Feb 2009 12:24:49 -0800

This snippet:

http://lsr.dsi.unimi.it/LSR/Item?id=378

does not work as advertised; it prints both the normal accidentals and the 
custom postscript.
Any suggestions on what might be wrong? Also, how could I print custom symbols 
like this in the key signature?

Thanks,
Kees
--
%http://lsr.dsi.unimi.it/LSR/Item?id=378
upp =
#(define-music-function (parser location note)   (ly:music?)
 #{ \once \override Voice.Accidental #'stencil =
          #ly:text-interface::print
        \once \override Voice.Accidental #'text =
          \markup {\musicglyph #"accidentals.sharp"
       \postscript #"gsave 0.17 setlinewidth -1.4 0.5 moveto -1.4 2 lineto
       stroke grestore
       gsave 0.1 setlinewidth -1.7 1.4 moveto -1.4 2.18 lineto -1.1 1.4 lineto
       stroke grestore"}
        $note #})
        
        
dwn =
#(define-music-function (parser location note)   (ly:music?)
 #{ \once \override Voice.Accidental #'stencil =
          #ly:text-interface::print
        \once \override Voice.Accidental #'text =
          \markup {\musicglyph #"accidentals.flat"
       \postscript #"0.17 setlinewidth -2 0.5 moveto -0.6 1.8 lineto
       stroke "
       }
        $note #})
        
\relative {
       d \dwn bes d \upp gis
}




reply via email to

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