27.03.2013 Views

in Snippets - LilyPond

in Snippets - LilyPond

in Snippets - LilyPond

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Editorial annotations 154<br />

Creat<strong>in</strong>g double-digit f<strong>in</strong>ger<strong>in</strong>gs<br />

By default you cannot make double-digit f<strong>in</strong>ger<strong>in</strong>g notation (i.e. numbers larger than 9). This<br />

is a hard coded limitation.<br />

This snippet shows two methods of creat<strong>in</strong>g f<strong>in</strong>ger<strong>in</strong>gs larger than 9.<br />

ten =<br />

#(make-music 'F<strong>in</strong>ger<strong>in</strong>gEvent<br />

'digit 10)<br />

fifty =<br />

#(make-music 'F<strong>in</strong>ger<strong>in</strong>gEvent<br />

'digit 50)<br />

f<strong>in</strong>ger =<br />

#(def<strong>in</strong>e-music-function (parser location digit) (<strong>in</strong>teger?)<br />

(make-music 'F<strong>in</strong>ger<strong>in</strong>gEvent<br />

'digit digit))

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

Saved successfully!

Ooh no, something went wrong!