lilypond-user
[Top][All Lists]
Advanced

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

Re: Triole


From: Reinhold Kainhofer
Subject: Re: Triole
Date: Tue, 23 Sep 2008 11:42:07 +0200
User-agent: KMail/1.9.10

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Dienstag, 23. September 2008 schrieb Reinhold Kainhofer:
> > B. What write the B symbol?
>
> I think, you'll have to create that postscript code for that yourself.

Actually, you can also create that as a LilyPond Markup rather than resolving 
to postscript.

1) You can get it positioned left of the staff by assigning the markup to the 
staff's instrumentName property:
    \set Staff.instrumentName = \markup { ...}

2) Inside the markup, you'll have to build that symbol using graphics 
primitives (in this case, two circles and two lines, appropriately shifted):
    \set Staff.instrumentName = \markup { 
      \combine
        \translate #(cons -1.25 0) \combine
          \draw-circle #0.65 #0 ##t
          \override #'(thickness . 2.5) \draw-line #'(3 . -3)
        \translate #(cons 1.25 0) \combine
          \draw-circle #0.65 #0 ##t
          \override #'(thickness . 2.5) \draw-line #'(-3 . -3)
    }

This works only in lilypond 2.11, but not in lilypond 2.10, where there is not 
\draw-line markup command... It would be a bit more complicated to get it 
right in lilypond 2.10.

The full sample file and its output is attached for your reference.

Cheers,
Reinhold


- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI2LnwTqjEwhXvPN0RAhLBAKC49lGmgIm9YHlMVAhN3J1HNeVrCACfXmCj
tf77YKHJlSgzeeascUbwtmI=
=stQl
-----END PGP SIGNATURE-----

Attachment: tr.ly
Description: Text Data

Attachment: tr.pdf
Description: Adobe PDF document


reply via email to

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