The LilyPond Snippet Repository ♪♫

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

Results 41−50 of 371 for markup

Ready-to-use LilyPond macros: advanced layout and titles, using a special stylesheet [0.25000]

…title, and a title in the TOC \piece markup adds a piece title in the TOC \titledPiece markup adds a piece title in book body and …

…#(define-markup-command (when-property layout props symbol markp) (symbol? markup?) (if (chain-assoc-get symbol props) (interpret-markup layout props markp) (… …d' e' f' \break } \section "Scene 2" \piece \markup { Choir: \italic { bla bla bla } } \repeat unfold 12 { … …break } \chapter "Act II" \section "Scene 1" \titledPiece \markup Overtura { c'4 d' e' f' g'1 }

Ready-to-use LilyPond macros: advanced layout and titles, using a special stylesheet

Horizontally aligning custom dynamics (e.g. "sempre pp", "piu f", "subito p") [0.25000]

…done manually each time you use that dynamic markup... Add some padding (#:hspace 7.1) into the … …that space and does not allow any other markup or dynamics to be shown in that position. …

…cm tagline = ##f } % Solution 1: Using a simple markup with a particular halign value % Drawback: It's … …c\semppM c } >> \new Staff = "sG" \with { instrumentName = \markup \column { Shift inside dynamics} } << \relative c'' { \key es \… …c\semppG c } >> \new Staff = "sMII" \with { instrumentName = \markup \column { Alignment inside dynamics } } << \relative c'' { \key es \…

Horizontally aligning custom dynamics (e.g. "sempre pp", "piu f", "subito p")

Filtering parts from the command line [0.25000]

…to use scheme code to filter music expressions, markup expressions, set up header fields and layout context … …list, then the expression won't be rendered. Markup expressions are filtered using the similar construct \if-target-in …

…value-if-target-in eligible music (make-music 'Music))) %% %% if-target-in %% Render the markup expression if the target is in the eligible … …-dtarget=song -o song <filename> #(set-target! 'song) \markup \box \line \typewriter { > lilypond -dtarget=song -o song <… …toplevelMarkupIfTargets #'(default) % WORKAROUND - ignore this line \markup \if-target-in #'(default) \fill-line { \column{ \line{\pad-around #1.…

Filtering parts from the command line

Draw a bracket spanning multiple staves [0.25000]

…bracket around objects on different staves. Syntax is ^\markup\openBracket #width #height and ^\markup\closeBracket #width #height

…openBracket layout props height) (number?) (interpret-markup layout props (markup #:line (#:with-dimensions (cons 0 0) (cons 0 0) (… …r4 r c' c'-\tweak X-offset #1 ^\markup\flip\crochet #32 c' s } \new Lyrics \lyricsto "Baryton" { I } \new Lyrics \lyricsto "Baryton" { \markup\italic So } \new PianoStaff << \new Staff { \global g''…

Draw a bracket spanning multiple staves

Creating fret diagrams with chord names but no staff/staves using fret diagram markup [0.25000]

…names but no staff/staves using fret diagram markup

…with the fret diagrams specified using fret diagram markup. The first example in the "Fret diagram markups" … …6f/lily-b213fdb4.ly) is defined using fret diagram markup, so I have used that example as the …

Creating fret diagrams with chord names but no staff/staves using fret diagram markup

Removing items from only voiceTwo using a Scheme filter [0.24777]

…each voice has all dynamics, articulations, ornaments and markup text assigned. However, when combining them as two … …engraver creates both the rest itself and all markup attached to it. Using the second approach, one …

…372 %here starts the snippet: \header { title = "Removing markup, dynamics etc. from voiceTwo" } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Description of the problem … …voiceOne \mI } \context Voice = "v2" \with { % Dynamics, text markup, articulations, ornaments etc. can be % removed from one … …approach! } { \voiceTwo \mII } >> \context Staff = "bothFiltered" \with { instrumentName = \markup \column { "Combined," "using" "filters" } } << \context Voice = "v1Filtered" { \voiceOne \…

Removing items from only voiceTwo using a Scheme filter

Draw a box spanning multiple staves [0.24777]

…boxes around objects on different staves. Syntax is ^\markup\myMarker #width #height or ^\markup\myBox #width #height

…props colorWidth colorHeight) (number? number?) (interpret-markup layout props (markup #:line (#:with-dimensions (cons 0 0)(cons 0 0) (… …lineto) -1.7 (* myHeight -1)) (list (quote closepath)))))))) \markup { \vspace #2 \italic "Option 2:" } << << \new Voice = VOne \… …autoBeamOff \time 3/4 s2 b8 c' | aes ^\markup\myBox #7.5 #15 %% #width #height aes } \new …

Draw a box spanning multiple staves

Three-sided box [0.24554]

This example shows how to add a markup command to get a three sided box around some text (or other markup).

…Y DOWN x-rule 0.0)) stencil)) % The corresponding markup command, based on the \box command defined % in … …m thickness pad))) % Test it: \relative c' { c1^\markup { \NWS-box ABCD } c1^\markup { \NWS-box \note {4} #1.0 } }

Three-sided box

Dynamics with attributes aligned on dynamic sign (e.g. "poco f" aligned on "f") [0.24554]

…the "forte". In this snippet we define a markup command to align a line-markup on the center … …forte". X-offset is tweaked to 0, because otherwise markup halign will not work and so overriding will …

…props ...) #(define-markup-command (center-dyn layout props atr-text dyn)(markup? string?) "x-align on center of dynamic" (let* ((text (… …atr-x dyn-x) ) 0.5) 2))) (interpret-markup layout props (markup #:halign x-align #:concat (#:normal-text #:italic text #:dynamic dyn))))) % … …#(define (make-atr-dynamic-script atr dyn) (let ((dynamic (make-dynamic-script (markup #:center-dyn atr dyn)))) #{ \tweak X-offset 0 $dynamic …

Dynamics with attributes aligned on dynamic sign (e.g. "poco f" aligned on "f")

Preventing long \mark objects to stretch a measure [0.24107]

When you put a long \markup text in a \mark object, LilyPond stretches the measure to encompass the complete markup. This can be avoided by overriding the 'X-extent …

…override Score.RehearsalMark.self-alignment-X = #left R1 R1 \mark \markup { "long markup with default horizontal extent" } R1*2 } \… …override Score.RehearsalMark.self-alignment-X = #left R1 R1 \mark \markup { "long markup with default horizontal extent" } \override Score.RehearsalMark.X-extent = …

Preventing long \mark objects to stretch a measure

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