The LilyPond Snippet Repository ♪♫

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

Results 51−60 of 371 for markup

Creating guitar scales on fretboards [0.24107]

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

…arg2 arg3) (list? integer? number?) (interpret-markup layout props (markup (#:override (cons 'size arg3 ) (#:override '(fret-diagram-details . ( (finger-code . in-dot) (… …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

Color Gradient using Postscript [0.24107]

…has no way of creating color 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 …

Color Gradient using Postscript

Encapsulated text [0.24107]

\capsule arg (markup). Draw a capsule around arg. Use thickness, x-padding, … …to determine line thickness and padding around the markup.

…interval-center y-ext)))))) #(define-markup-command (capsule layout props arg) (markup?) #:category graphic #:properties ((thickness 1) (font-size 0) (x-padding … …and padding around the markup. @lilypond[verbatim,quote] \\markup { \\capsule { Hi } } @end lilypond" (let ((th (* (ly:output-def-lookup layout '… …capsule-stencil m th pad-x pad-y))) %%%% Defs end %%%%%%%%%% %%%% Tests: \markup { \italic "Default:" \capsule "Hi" } \markuplist { \vspace #1 \italic "…

Encapsulated text

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.17 setlinewidth … …Accidental.stencil = #ly:text-interface::print \once \override Voice.Accidental.text = \markup {\musicglyph "accidentals.flat" \postscript "0.17 setlinewidth -2 …

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

[OBSOLETE] Adding a QR code [0.23214]

…LilyPond 2.25.3, which adds a \qr-code markup command that takes a URL directly instead of … …black" and "white" values. It is used like \markup \qr-code #10 "https://lilypond.org".

…00000000110011100010100011001 11111110101001101011101010110 10000010000110111110100010011 10111010011010111100111111111 10111010110001101111000011110 10111010100101101010100101001 10000010001001000100000010010 11111110010100110010111100010" \markup \qr-code \lilypondDotOrg \markup \vspace #5 \markup \override #'(width . 15) \qr-code \lilypondDotOrg

[OBSOLETE] Adding a QR code

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

Inserting large plain text sections, as independent \markup blocks [0.21429]

Inserting large plain text sections, as independent \markup blocks

…can enter different \score blocks, but also independent \markup sections. This snippet also demonstrates some interesting text …

Inserting large plain text sections, as independent \markup blocks

Stylized movement numbers [0.21429]

…for the instrumentName field (or wherever else a markup can be used).

…number for the instrumentName field. % syntax example: instrumentName = \markup \No #"14a" #(define-markup-command (No layout props … …against LSR bug: not needed. \set Staff.instrumentName = \markup { \No #"8" } % or: %\set Staff.instrumentName = \markup\magnify #1.3 \concat { № \hspace#.4 8. \hspace#-2 } \…

Stylized movement numbers

Clarinet fingering chart and tablatures [0.21429]

…diagram support.] This snippet defines a new \clarTab markup command to draw tablatures for the clarinet. The …

…space between notes ver 2.11 c^"1"_\markup \clarTab ##f #'(0 1 2 3) #'() … …3 4)#'(("Rring" . "b"))} d16 dis^"12"_\markup \clarTab ##f #'(0 1 2) #'(("Lring" . "dis")) e8 s1^"13"_\markup \clarTab ##t #'() #'( ("Rlittle" . "")("Llittle" . "") ("Rfore" . "")("Lfore" . "") ("…

Clarinet fingering chart and tablatures

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