The LilyPond Snippet Repository ♪♫

What's this? Searching the LSR Browse Contributing Snippet database

Results 81−90 of 371 for markup

Customising note heads [0.17857]

…text attribute of the NoteHead. It accepts any markup. The easiest thing to do is to simply …

…NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = #(markup #:musicglyph "scripts.flageolet" ) } headPlus = { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = #(markup #:musicglyph "scripts.stopped") } { \headCircle c'4 \headPlus d'…

Customising note heads

Appending a note to the tuplet text (using a scheme wrapper function) [0.17857]

…to manually set \override TupletNumber #'text = #(markup #:italic "3:2" #:fontsize -5 #:note "4" 1). However, … …tuplet-number::append-note-wrapper function note) grob) (let* ((txt (function grob))) (markup txt #:fontsize -5 #:note note UP))) You simply …

…tuplet-number::append-note-wrapper function note) grob) (let ((txt (function grob))) (markup txt #:fontsize -5 #:note note UP))) { % Tuplet text …

Appending a note to the tuplet text (using a scheme wrapper function)

Printing text from right to left [0.17857]

…print text from right to left in a markup object, as demonstrated here.

{ b1^\markup { \line { i n g i r u m … …u s n o c t e } } f'_\markup { \override #'(text-direction . -1) \line { i n g …

Printing text from right to left

Using make-connected-path-stencil to draw custom shapes [0.17857]

…and also how they can be used in \markup. The snippet also shows how to use ly:stencil-translate …

…stencil = \bowtie e'4 f' g' a' } triangle = \markup \stencil #(make-connected-path-stencil '((1 2) ;; path coordinates (2 … …origin point? (0 0) #t) % filled path? moon = \markup \stencil #(ly:stencil-translate (make-connected-path-stencil '((-6 -2 -6 7 …

Using make-connected-path-stencil to draw custom shapes

Replacing some accidentals with a user-defined stencil [0.17857]

…with an arbitrary stencil (in this case, a markup). Alterations are defined as 1 for a double-flat, …

…rather ugly collision on older LilyPond versions. doubleSharp = \markup \concat { \raise #-.15 \sharp \sharp } \layout { \context { \… …ly:grob-property (ly:grob-property grob 'cause) 'cause) 'pitch))) (grob-interpret-markup grob (markup doubleSharp)) (ly:accidental-interface::print grob))) } } \relative c'{ cisis cisih des }

Replacing some accidentals with a user-defined stencil

Metric Modulation with Tuplet [0.17857]

…of a tuplet. This can be done with markup, using postscript inside. So you can use the sample markup template and adjust

tupletToSixteenth = \markup { \hspace #-3.5 \vspace #8 \concat { \postscript "-4 …

Metric Modulation with Tuplet

Many types of bar lines [0.14286]

…Schneider on Feb. 2014 \score { { s4 \bar "|" \mark \markup "|" s \bar "." \mark \markup "." s \bar "||" \mark \markup "||" … …:|]" \mark \markup ":|]" s \bar ":|." \mark \markup ":|." s \bar "'" \mark \markup "'" s \bar "" } \layout { indent = 0 \context { \Score \override …

Many types of bar lines

Chord names alternative [0.14286]

…define-public (banter-chordnames pitches bass inversion context) (old_chord->markup 'banter pitches bass inversion context)) #(define-public (jazz-chordnames … …-\markup { \normal-size-super "sus4" } <c d es>-\markup { "m" }-\markup { \normal-size-super "sus2" } } epartialJazzAlt = #(sequential-music-to-chord-exceptions epartialmusicJazzAlt #f) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \score { << \…

Chord names alternative

Transposing and naming instrument groups [0.14286]

…subtitle = "Zu Heinrich Joseph v. Collins Trauerspiel" subsubtitle = \markup { \large \bold "Coriolan" } opus = "Op. 62" piece = \markup { \… …c1 c } violoncello = \relative c { \set Staff.instrumentName = \markup \column { "Violoncello " "e" "Contrabasso " } \set Staff.shortInstrumentName = \markup \column { "Vc. " "Cb. " } \clef bass c1 c } \paper { …

Transposing and naming instrument groups

Outputting the version number [0.14286]

…to print the version number of LilyPond in markup.

\markup { Processed with LilyPond version #(lilypond-version) }

Outputting the version number

⇦ Previous 1 2 3 4 5 6 7 8 9 10 Next ⇨