The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 44 for textscript

Integrating LilyPond expressions inside Scheme functions [0.24777]

…are defined to apply different paddings on the TextScript markups, using native LilyPond commands such as \override TextScript #'padding.

…#(define-music-function (padding music) (number? ly:music?) #{ \override TextScript.padding = #padding $music \revert TextScript.padding #}) withPaddingB = … …#(define-music-function (padding music) (number? ly:music?) #{ \override TextScript.padding = #(+ 1 (* padding 2)) $music \revert TextScript.padding #}) { c'^"1" \withPaddingA #2 { c'^"2" …

Integrating LilyPond expressions inside Scheme functions

Adding markups in a tablature [0.20536]

…them appear, simply use the command \revert TabStaff.TextScript.stencil

…low \\ \pulse >> } \layout { \context { \TabStaff \clef moderntab \revert TextScript.stencil \override TextScript.font-series = #'bold \override TextScript.font-size = #-2 \override TextScript.color = #red } \context { \Score proportionalNotationDuration = #(ly:make-moment 1/…

Adding markups in a tablature

Customizing markup fret diagrams [0.19643]

…diagrams, overrides can be applied to the Voice.TextScript object or directly to the markup.

…textLengthOn % Set global properties of fret diagram \override TextScript.size = 1.2 \override TextScript.fret-diagram-details.finger-code = #'in-dot \override TextScript.fret-diagram-details.dot-color = #'white %% C major for guitar, …

Customizing markup fret diagrams

Automatically coloring grobs to indicate when their direction has been manually set [0.17857]

…i.e. just Slur, or just Slur and TextScript).

…c''^3_\4_"xy" } % only color Slur and TextScript grobs \new Voice \with { \mapList #colorizeDir Slur.TextScript } { \music } % color all grobs \new Voice \with { \mapList …

Automatically coloring grobs to indicate when their direction has been manually set

Controlling the vertical ordering of scripts [0.14286]

…put to the note. In this example, the TextScript (the sharp symbol) first has the lowest priority, …

\relative c''' { \once \override TextScript.script-priority = -100 a2^\prall^\markup { \sharp } \once \override …

Controlling the vertical ordering of scripts

Colored boxes around / behind notes [0.14286]

…override SpacingSpanner.common-shortest-duration = #(ly:make-moment 1/4) \override TextScript.staff-padding = #7 \genericSpan #-4 #0 #-4 #0 \colDarkRed \… …e \stopGroup r4 } } \new Staff { \relative c' { \override TextScript.staff-padding = #2 \genericSpan #-4 #4 #-4 #4 \colDarkGreen \… …colDarkOrange \colLightOrange \pad-markup #0.4 ":-)" } } } \layout { \override TextScript.staff-padding = #3 \context { \Score \remove "Bar_number_engraver" } }

Colored boxes around / behind notes

Of the ubiquity of markup objects [0.14286]

…such, markup blocks may be used: in any TextScript object (attached to notes with -, ^ or _), any …

…markup \lower #0.5 "NoteHead" c''8^\markup "TextScript" \once \override Rest.stencil = #(lambda (grob) (grob-interpret-markup …

Of the ubiquity of markup objects

Centering markup on note heads automatically [0.14063]

…note-column grob)) ((text-script-interface trans grob source) ;; whenever a TextScript is acknowledged, ;; add it to `scripts' list (set! … …deleted, %% sufficient would be: %{ \layout { \context { \Voice \override TextScript.self-alignment-X = #CENTER \override TextScript.parent-alignment-X = #CENTER } } %} \new Staff << \relative c'' { \override NoteColumn.…

Centering markup on note heads automatically

Positioning segno and coda (without line break) [0.13839]

…segno" shorthands %% ------------------------------ DSCodaTextLine = { % choice one \once \override TextScript.extra-offset = #'( 2 . -3.5 ) <>^\markup { D.S. … …to manipulate indentation s1 \noBreak \bar "" } \once \override TextScript.extra-offset = #'( 0 . -4.0 ) \once \override TextScript.word-space = #1.5 <>^\markup { \center-column { "D.S. al …

Positioning segno and coda (without line break)

Fret diagrams explained and developed [0.13839]

…Voice { % Set global properties of fret diagram \override TextScript.size = 1.2 \override TextScript.fret-diagram-details .finger-code = #'… …These chords will be in landscape orientation %% \override TextScript.fret-diagram-details .orientation = #'landscape % 8 % % C major for … …These chords will be in opposing-landscape orientation. %% \override TextScript.fret-diagram-details .orientation = #'opposing-landscape % 13 % % C major for …

Fret diagrams explained and developed

1 2 3 4 5 Next ⇨