Re: Color of notes depending on accidentals

2009-02-27 Thread Gilles THIBAULT
[..] if I want to change the color of note with sharps AND flats? What should I change? The attached file does this Note that the lines : 'tweaks (list (list 'color 1.0 0.0 0.0))) nota) can be replaced by : 'tweaks (list (cons 'color red))) nota) and the line : 'tweaks (list

Re: Color of notes depending on accidentals

2009-02-26 Thread cuco
-- View this message in context: http://www.nabble.com/Color-of-notes-depending-on-accidentals-tp22199560p5258.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http

Re: Color of notes depending on accidentals

2009-02-26 Thread Francisco Vila
2009/2/26 cuco julio.casa...@me.com: Thanks Gilles as I am not an expert, what is the code if I want to change the color of note with sharps AND flats? What should I change? Thank very much in advance! The attached file does this, taking Gilles' work as starting point. I have translated

Re: Color of notes depending on accidentals

2009-02-26 Thread cuco
-- View this message in context: http://www.nabble.com/Color-of-notes-depending-on-accidentals-tp22199560p7518.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http

Re: Color of notes depending on accidentals

2009-02-26 Thread Jonathan Kulp
cuco wrote: Francisco gracias The file - when compiled - gives the following message error: program too old: 2.12.1 (file requires 2.12.2.) I run convert-ly but I get the same error afterwards. Why? The conversion script only updates to 2.12.1. Just change the \version statement manually to

Re: Color of notes depending on accidentals

2009-02-26 Thread Mats Bengtsson
If you read the error message once more carefully, you will probably realize what the problem is, namely that you have a file written for a newer version than your installation. Of course, convert-ly included in version 2.12.2 cannot possibly know how to handle features introduced in newer

Re: Color of notes depending on accidentals

2009-02-26 Thread Jonathan Kulp
Sorry, my bad. Change it manually to read 2.12.1 to avoid this message, which happens because you have 2.12.1 installed but the file is asking for 2.12.2. Jon cuco wrote: Francisco gracias The file - when compiled - gives the following message error: program too old: 2.12.1 (file requires

RE: Color of notes depending on accidentals

2009-02-26 Thread Nick Payne
[mailto:lilypond-user-bounces+nick.payne=internode.on@gnu.org] On Behalf Of Jonathan Kulp Sent: Friday, 27 February 2009 03:24 To: cuco Cc: lilypond-user@gnu.org Subject: Re: Color of notes depending on accidentals cuco wrote: Francisco gracias The file - when compiled - gives

Color of notes depending on accidentals

2009-02-25 Thread cuco
Is there is a way to authomatically color notes that are e.g. sharp? -- View this message in context: http://www.nabble.com/Color-of-notes-depending-on-accidentals-tp22199560p22199560.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com

Re: Color of notes depending on accidentals

2009-02-25 Thread M Watts
cuco wrote: Is there is a way to authomatically color notes that are e.g. sharp? You'd need a function that says: If note name ends in is, do \override NoteHead #'color = #red, but I don't actually know to do this :eek: ___ lilypond-user

Re: Color of notes depending on accidentals

2009-02-25 Thread Gilles THIBAULT
Is there is a way to authomatically color notes that are e.g. sharp? This function colories in red all sharped notes : %%% #(define (is-sharped? note) (let ((p (ly:music-property note 'pitch))) (and (ly:pitch? p) (equal? (ly:pitch-alteration p) SHARP

Re: Color of notes depending on accidentals

2009-02-25 Thread Kees van den Doel
In the learning material under advanced tweaks with Scheme it shows how to do that. Kees - Original Message - From: M Watts zwy648...@gmail.com Date: Wednesday, February 25, 2009 2:03 pm Subject: Re: Color of notes depending on accidentals To: cuco julio.casa...@me.com Cc: lilypond-user