27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Fretted strings 241<br />

Letter tablature formatting<br />

Tablature can be formatted using letters instead of numbers.<br />

#(define (letter-tablature-format str context event)<br />

(let ((tuning (ly:context-property context 'stringTunings))<br />

(pitch (ly:event-property event 'pitch)))<br />

(make-whiteout-markup<br />

(make-vcenter-markup<br />

(string (integer->char<br />

(+ (char->integer #\a)<br />

(- (ly:pitch-semitones pitch)<br />

(list-ref tuning (- str 1))))))))))<br />

music = \relative c {<br />

c4 d e f<br />

g4 a b c<br />

d4 e f g<br />

}<br />

><br />

<br />

8<br />

<br />

<br />

<br />

<br />

d<br />

<br />

a<br />

<br />

Modern TAB text clef<br />

<br />

c<br />

<br />

d<br />

a<br />

c<br />

<br />

a<br />

<br />

b<br />

<br />

d<br />

a b d<br />

Use a markup text to replace the (TAB) clef glyph with a modern font.<br />

TAB = \markup {<br />

\raise #1.5<br />

\sans<br />

\bold<br />

\huge<br />

\override #'(baseline-skip . 2.5)<br />

\left-align<br />

\center-column {<br />

T

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

Saved successfully!

Ooh no, something went wrong!