The LilyPond Snippet Repository ♪♫

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

Results 71−80 of 359 for markup

Inserting score fragments above a staff, as markups [0.17857]

The \markup command is quite versatile. In this snippet, it …

tuning = \markup { \score { \new Staff \with { \remove "Time_signature_engraver" } { \… …title = "Solo Cello Suites" subtitle = "Suite IV" subsubtitle = \markup { Originalstimmung: \raise #0.5 \tuning } tagline = ##f } \layout { …

Inserting score fragments above a staff, as markups

Modifying default font properties for piece titles [0.17857]

…very small. You can either directly put the markup into the piece=... header field, or better re-define …

…header { title = "Formatting of piece headers" } \paper { scoreTitleMarkup = \markup { \column { \if \should-print-all-headers { \bookTitleMarkup \hspace #1 } \fill-line { \fontsize … …very small. You can either directly put the markup into the piece=... header field, or better re-define …

Modifying default font properties for piece titles

Printing both the ancient and the modern clef in vocal music [0.17857]

…have to replace the clef symbol by a \markup block, and that can only be done by … …have to define this text element as a markup, and insert in it the \musicglyph you need. …

…Clef.stencil = #ly:text-interface::print \once \override Staff.Clef.text = \markup { \raise #-1 \musicglyph "clefs.C_change" \musicglyph "clefs.…

Printing both the ancient and the modern clef in vocal music

Creating "real" parenthesized dynamics [0.17857]

…to a dynamic mark is to use a \markup block, this method has a downside: the created … …combined with the make-dynamic-script function. This way, the markup will be regarded as a dynamic, and therefore …

paren = #(define-event-function (dyn) (ly:event?) (make-dynamic-script #{ \markup \concat { \normal-text \italic \fontsize #2 ( \pad-x #0.2 …

Creating "real" parenthesized dynamics

Using Scheme to display the list of all supported midi instruments [0.17857]

…the midi.scm file and then creating a \markup for each midi instrument definition. This is done …

…of instrument definitions % That function simply creates a markup containing the name as a simple string (the … …layout props) () (interpret-markup-list layout props (map (lambda (instr) (markup (car instr))) (@@ (lily) instrument-names-alist)))) % simply display the list …

Using Scheme to display the list of all supported midi instruments

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

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