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 (list

RE: Color of notes depending on accidentals

2009-02-26 Thread Nick Payne
e=internode.on@gnu.org > [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: >

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 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 vers

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

Re: Color of notes depending on accidentals

2009-02-26 Thread cuco
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? Francisco Vila-5 wrote: > > 2009/2/26 cuco : >> >> Thanks Gilles >> >> as I am not an expert, what is

Re: Color of notes depending on accidentals

2009-02-26 Thread Francisco Vila
2009/2/26 cuco : > > 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 some identifiers

Re: Color of notes depending on accidentals

2009-02-26 Thread cuco
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! Gilles THIBAULT wrote: > > > > >> >> Is there is a way to authomatically color notes that are e.g. sharp? >> > This functi

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 Date: Wednesday, February 25, 2009 2:03 pm Subject: Re: Color of notes depending on accidentals To: cuco Cc: lilypond-user@gnu.org > cuco wrote: &g

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 colo

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 ma