09.09.2013 Views

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

LilyPond Beginnershandleiding

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Hoofdstuk 4: Tweaking output 143<br />

7)))<br />

(case mod-position<br />

;; Return rainbow colors<br />

((1) (x11-color 'red )) ; for C<br />

((2) (x11-color 'orange )) ; for D<br />

((3) (x11-color 'yellow )) ; for E<br />

((4) (x11-color 'green )) ; for F<br />

((5) (x11-color 'blue )) ; for G<br />

((6) (x11-color 'purple )) ; for A<br />

((0) (x11-color 'violet ))<br />

)))<br />

; for B<br />

\relative c' {<br />

% Arrange to obtain color from color-notehead procedure<br />

\override NoteHead.color = #color-notehead<br />

a2 b | c2 d | e2 f | g2 a |<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Further examples showing the use of these programmable interfaces can be found in Sectie<br />

“Callback functions” in Uitbreidingen.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!