27.03.2013 Views

LilyPond Snippets

LilyPond Snippets

LilyPond Snippets

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.

Ancient notation 265<br />

}<br />

\override Staff.Custos #'style = #'vaticana<br />

c1^"vaticana" \break<br />

1<br />

\override Staff.Custos #'style = #'mensural<br />

c1^"mensural" \break<br />

1<br />

<br />

<br />

<br />

<br />

<br />

hufnagel<br />

2 <br />

<br />

<br />

<br />

medicaea<br />

4 vaticana<br />

<br />

<br />

<br />

6 mensural <br />

<br />

<br />

8<br />

<br />

<br />

<br />

<br />

Incipit<br />

Incipits can be added using the instrument name grob, but keeping separate the instrument<br />

name definition and the incipit definition.<br />

incipit =<br />

#(define-music-function (parser location incipit-music) (ly:music?)<br />

#{<br />

\once \override Staff.InstrumentName #'self-alignment-X = #RIGHT<br />

\once \override Staff.InstrumentName #'self-alignment-Y = #UP<br />

\once \override Staff.InstrumentName #'Y-offset = #4<br />

\once \override Staff.InstrumentName #'padding = #0.3<br />

\once \override Staff.InstrumentName #'stencil =<br />

#(lambda (grob)<br />

(let* ((instrument-name (ly:grob-property grob 'long-text))<br />

(layout (ly:output-def-clone (ly:grob-layout grob)))<br />

(music (make-music 'SequentialMusic<br />

'elements (list (make-music 'ContextSpeccedMusic<br />

'context-type 'MensuralStaff

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

Saved successfully!

Ooh no, something went wrong!