-----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: [EMAIL PROTECTED], 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-----
\version "2.11.60"

\new Staff="Percussion" <<
    % Use a markup as the instrumentName for the staff!
    \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)
      
    }
    \new Voice \relative c'' { c1 }
  >>

Attachment: tr.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user
  • Re: Triole Reinhold Kainhofer
    • Re: Triole Reinhold Kainhofer

Reply via email to