The LilyPond Snippet Repository ♪♫

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

Results 31−40 of 366 for markup

Alphabetical sorted index [0.28571]

…indexItem and \indexSection both take two arguments (string, markup). The first is used to calculate the order … …Songs" \indexItem #"rock - Stairway to Heaven" \markup "Stairway to heaven" \indexItem #"rock - Nothing Else Matters" \markup "Nothing Else Matters" Limitations: It is not yet …

…- define and index item with \indexItem $sortstring $markup % - use \indexSection $sortstring $markup to divide the … …10 { c d e f } \indexItem #"Bettina" \markup { \larger "Bettina" } \indexItem #"Barbara" \markup { \smallCaps "Barbara" } \repeat unfold 10 { c d e …

Alphabetical sorted index

Aligning columns from different markups [0.26786]

One can use \markup \fill-line { \column { "line1" "line2" ... } \column { "line1" "line2" ... } } to create text markup in multiple columns (for example, writing out the … …one has to use \columns instead of \fill-line: \markup \columns { \column{"default column 1" "line 2"} \column{"…

…paper { #(set-paper-size "snippet") indent = 0 tagline = ##f } \markup\vspace #.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %here starts the snippet: \header{ … …rest" "line 2" } \column { "c 3" "line 2" } } \markup \columns { \column { "col 1" "line 2" } \column { "col … …column { "Here, column 3 is wider" "line 2" } } \markup \columns { \column { "short" "line 2"} \column { "Long text, …

Aligning columns from different markups

Arrows [0.26786]

…scale when the global-staff-size changes. Here's a markup function that helps to create ready to use … …length #'boldness. Example (at default global-staff-size): \markup{ \scale #'(1.8 . 1.8) \arrow #"… …#0.14 } will give the same output as: \markup{ \combine \fontsize #5 \arrow-head #Y #UP ##f \override …

…mm))) paper-alist)) \paper { #(set-paper-size "snippet") tagline = ##f } \markup\vspace #.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%% Snippet start here: %%% "arrows.ily %%% … …angle-rad))) (target-y (* length (sin angle-rad)))) (interpret-markup layout props (markup #:translate (cons (/ target-x 2) (/ target-y 2)) #:rotate angle-deg … …3.4 0.07 )))) %%%% SNIPPET END %%%% % LSR workaround: \markup\vspace #.5

Arrows

Accordion-discant symbols [0.25000]

This snippet has been obsoleted by predefined markup commands, see 'Discant symbols' in the Notation Reference. … …symbols: the placement of the symbols added with \markup can be tweaked by changing the \translate-scaled arguments. \…

discant = \markup { \musicglyph #"accordion.discant" } dot = \markup { \musicglyph #"… …discant \translate-scaled #'(0 . 1.5) \dot } accPiccolo = ^\markup { \combine \discant \translate-scaled #'(0 . 2.5) \dot } accViolin = ^\markup { \combine \discant \combine \translate-scaled #'(0 . 1.5) \…

Accordion-discant symbols

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

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

…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 …

…paper { #(set-paper-size "snippet") %indent = 0 tagline = ##f } \markup\vspace #.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %here starts the snippet: \header { … …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

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. …

…2.5\cm } % Solution 1: Using a simple markup with a particular halign value % Drawback: It's … …semppM c } >> \context Staff = "sG" << \set Staff.instrumentName = \markup \column { Shifting inside dynamics } \relative c'' { \override Staff.… …semppG c } >> \context Staff = "sMII" << \set Staff.instrumentName = \markup \column { Alignment inside dynamics } \relative c'' { \override Staff.…

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 box spanning multiple staves [0.25000]

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

…mm))) paper-alist)) \paper { #(set-paper-size "snippet") tagline = ##f } \markup\vspace #.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \layout { \context { \Lyrics \override LyricText.… …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

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.

…mm))) paper-alist)) \paper { #(set-paper-size "snippet") tagline = ##f } \markup\vspace #.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% SNIPPET: %%% #(define-markup-command (openBracket layout … …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

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