Re: Colored note heads with black outline

2013-10-14 Thread Pierre Perol-Schneider
Thanks for having put my name on it Paul, Cheers, Pierre 2013/10/14 Paul Morris > Paul Morris wrote > > I realized it needs to be improved so that it will also handle \breve and > > \longa note durations correctly. I'll include some examples of using the > > "(x11-color 'orange)" style colors

Re: Colored note heads with black outline

2013-10-13 Thread Paul Morris
Paul Morris wrote > I realized it needs to be improved so that it will also handle \breve and > \longa note durations correctly. I'll include some examples of using the > "(x11-color 'orange)" style colors to help make it more obvious that > that's an option. Ok, I added support for breve notes,

Re: Colored note heads with black outline

2013-10-13 Thread Paul Morris
Onno Zweers wrote > Would it be an idea to post the code in the snippets database? Hi Onno, Glad this is working for you. I was thinking I would add it to the snippet database (LSR). I realized it needs to be improved so that it will also handle \breve and \longa note durations correctly. I'll

Re: Colored note heads with black outline

2013-10-13 Thread Onno Zweers
Hi Paul and Pierre, Thanks! The latest code worked wonderfully! I adapted the colors, which was easy after I found out that "orange" is not a standard color and should be specified as (x11-color 'orange). Would it be an idea to post the code in the snippets database? Kind regards Onno _

Re: Colored note heads with black outline

2013-10-09 Thread Paul Morris
Pierre Perol-Schneider wrote > Thanks Paul, your code is much better than the one I was going to put. > Looks like a Christmas tree :) Thanks Pierre, and thanks for figuring out how to do the note heads in the first place! That was a clever solution. I've made the changes you suggested, and ma

Re: Colored note heads with black outline

2013-10-09 Thread Paul Morris
SoundsFromSound wrote > This is perfect Paul, it's exactly what I need for a project that just > landed on my desk tonight! Man, you're a SCHEME machine! I'll get there > someday...right? :) > > Thank you so much for sharing that code with us! Thanks Ben! Glad you can use the code. Sounds like

Re: Colored note heads with black outline

2013-10-09 Thread Pierre Perol-Schneider
2013/10/9 Pierre Perol-Schneider > Well, your code makes me noticed that the layer change with the color... > weird. > > Sorry for this ; it changes with pitches and stem direction. Not weird in f ___ lilypond-user mailing list lilypond-user@gnu.org ht

Re: Colored note heads with black outline

2013-10-09 Thread Pierre Perol-Schneider
2013/10/9 Paul Morris > > Hi Onno, > The code below should do what you want. I combined Pierre's outlined note > heads with some code I use to automatically override note head stencils > based on their pitch. It creates outlines around all note heads regardless > of their color, and it requires

Re: Colored note heads with black outline

2013-10-08 Thread SoundsFromSound
This is perfect Paul, it's exactly what I need for a project that just landed on my desk tonight! Man, you're a SCHEME machine! I'll get there someday...right? :) Thank you so much for sharing that code with us! Ben Paul Morris wrote > > Onno Zweers wrote >> One question though. I intend to ap

Re: Colored note heads with black outline

2013-10-08 Thread Paul Morris
Onno Zweers wrote > One question though. I intend to apply this effect to many different > lilypond scores. Currently I include a stylesheet.ly from all my > Lilypond files to produce the colors. It would be great if I could just > add some code to my stylesheet to get this outline effect, inste

Re: Colored note heads with black outline

2013-10-08 Thread Onno Zweers
Hi Pierre, Thanks, that is exactly the effect I had in mind! Looks great! One question though. I intend to apply this effect to many different lilypond scores. Currently I include a stylesheet.ly from all my Lilypond files to produce the colors. It would be great if I could just add some code

Re: Colored note heads with black outline

2013-10-05 Thread Pierre Perol-Schneider
Hi Onno, There is no specific function for what you're looking for. Here's a little trick which is far from perfect but make the job : \version " 2.16.2" % works also for v2.17 nhSO = { \once \override NoteHead #'stencil = #ly:text-interface::print \once \override NoteHead #'text = \markup { \