The LilyPond Snippet Repository ♪♫

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

Results 41−50 of 366 for markup

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

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 th 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")

Creating guitar scales on fretboards [0.24554]

…5 you can wrap this up in a markup command for building up a list of scales cpenta = \markup \scale-diagramm #'((5 3) (5 5 ) (4 3) (…

…mm))) paper-alist)) \paper { #(set-paper-size "snippet") tagline = ##f } \markup\vspace #.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %here starts the snippet: % Helper … …1 7) (1 8)) #7 #1.0 dmajor=\markup\scale-diagramm #'((5 5) (5 7) (4 4) (… …1 9) (1 10)) #7 #1.35 cpenta=\markup\scale-diagramm #'((5 3) (5 5) (4 3) (…

Creating guitar scales on fretboards

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

Colour Gradient using Postscript [0.24107]

…has no way of creating colour gradients. This markup function duplicates the path markup, converts it to postscript and uses postscript's …

…ps (path->ps path)) (markup-test (ly:text-interface::interpret-markup layout props (markup #:line (#:path 0.1 path)))) (xextnt (ly:stencil-extent markup-test … …xextls)) (colored (map (lambda (a r g b) (markup #:line (#:with-color (list r g b) a))) (reverse … …curveto -50 -50 -50 50 -10 0) (closepath)) \markup \translate #'(40 . -20) %% \with-dimensions is needed to …

Colour Gradient using Postscript

Customized accidentals [0.23214]

…in three steps: Replace the alteration with a \markup object (which is printed by the text-interface) Specify the \markup itself (as we still want an alteration to … …command) Add a \postscript simple design in the markup, using simple commands like lineto or moveto. Notice …

…Accidental.stencil = #ly:text-interface::print \once \override Voice.Accidental.text = \markup {\musicglyph #"accidentals.sharp" \postscript #"gsave 0.… …Accidental.stencil = #ly:text-interface::print \once \override Voice.Accidental.text = \markup {\musicglyph #"accidentals.flat" \postscript #"0.17 …

Customized accidentals

Creating keyboard diagrams with chords or scales [0.23214]

…The function can be wrapped up in a markup command like this cnine=\markup\keys #'(c e g bes d') and …

…0.65 2 4 #t) (make-dot-list arg1 ))) cnine=\markup\keys #'(c e g bes d' ) cmnine=\markup\keys #'(c ees g bes d') cmninealt=\markup\keys #'(c bes d' ees' g') \relative …

Creating keyboard diagrams with chords or scales

Fret diagrams [0.21429]

Frets are supported as markup commands.

…context Voice = "mel" { % simple D chord d'2 ^\markup \fret-diagram-verbose #'((mute 6) (mute 5) (open 4) (… …4-3;4-5;3-2;3-4;3-5;2-x;1-x;" c' ^\markup \fret-diagram-terse #'"x;3 5;2 3 5;… …two octaves on six strings, white dots g' ^\markup \override #'(dot-color . white) {\fret-diagram-terse #'"3 5;…

Fret diagrams

Segno / Coda on top of rehearsal mark [0.21429]

…mark \default and e.g. something like \mark \markup { \musicglyph #"scripts.segno" } they will most likely …

…rehearsalmarks (complete) %% ------------------------------------------------------ #(define (format-mark-box-letters-segno mark context) (markup #:line (#:center-column (#:musicglyph "scripts.segno" #:bold #:box (#:markletter (… …and coda-marks) %% -------------------------------------------------------------------- #(define (format-mark-box-numbers-segno mark context) (markup #:line (#:center-column (#:musicglyph "scripts.segno" #:bold #:box (number->… …context 'rehearsalMark) 1)) )))) #(define (format-mark-box-numbers-coda mark context) (markup #:line (#:center-column (#:fontsize 3 #:musicglyph "scripts.coda" #:bold …

Segno / Coda on top of rehearsal mark

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