lilypond-user
[Top][All Lists]
Advanced

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

Re: Black circle with white markup


From: Peekay Ex
Subject: Re: Black circle with white markup
Date: Sun, 13 Nov 2011 17:39:00 +0000

Hello,

On Tue, Sep 27, 2011 at 1:08 PM, Jonas Müthing <address@hidden> wrote:
> Hello list,
>
> I'm writing a piece in which I have four speakers with megaphones. To
> indicate if the megaphone is used or not I use a circle with an M in it.
>
> \markup { \circle { \pad-markup #.5 \bold M } }
>
> This is supposed to indicate that the megaphone is to be used. If it's not
> to be used I want a white M inside a black circle. Is there any way to
> achieve this with the circle function? I tried
>
> \markup { \override #'(filled . #t) \circle { \pad-markup #.5 \bold
> \with-color #(x11-color 'white) M } }
>
> but "filled" seems to be supported only by \draw-circle
>

Quick hack:

\version "2.14.1"

\relative c' {
  a'4 b^\markup {
    \combine
    \stencil #(make-circle-stencil 0.75 0.75 #t)
    \with-color #white \center-align \teeny m
  }
  c d |
}

Hope this gives you some ideas




-- 
--
James



reply via email to

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