[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: color every note-head by its note-name
From: |
Erik Sandberg |
Subject: |
Re: color every note-head by its note-name |
Date: |
Tue, 23 Aug 2005 02:26:04 +0200 |
User-agent: |
KMail/1.8.1 |
On Friday 19 August 2005 17.50, Kenneth Lee wrote:
> Hi,
>
> i would like to color the note-head by its note-name
> on the whole score. For example, to color every C with
> red and every D with yellow, for example.
>
> i have tried \applyoutput but it only work on the note
> that follows immediately. This means i need to
> \applyoutput on every notes which is not perferrable.
>
> any help would be deeply appreciated.
You could take a look at \musicMap. It could be used to
map each NoteEvent cis8 to { \applyoutput {...} cis8 }
It requires some Scheme hacking though, and you need to know about the
internal representation of Music Expressions. It's probably doable in less
than 20 lines of code, including colour codes.
--
Erik