The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 39 for width

Changing the width of ledger lines [0.33929]

Changing the width of ledger lines

If you want to modify the width of ledger lines (for example to make them …

% Override LedgerLineSpanner.length-fraction to change the width % of ledger lines. Its default setting is 0.… …on each side by 0.25 times the width % of the note head. (1.0 is equal to the width of the note head.) % % LilyPond will automatically shorten …

Changing the width of ledger lines

Changing the width of ledger lines for a group of notes [0.32143]

Changing the width of ledger lines for a group of notes

If you want to temporary modify the width of ledger lines you have to specify \stopStaff \…

…Morris scaleLedgers = #(define-music-function (s) (number?) "Changes the width of ledger lines. 0.25 is default value … …the note head by 0.25 times the width of the notehead. Scales the default value by …

Changing the width of ledger lines for a group of notes

Ripped, torn staff-lines [0.25000]

…X-extent of the BarLine stencil, NOT including its width. Can be used as "padding" around the stencil, … …the zigzag line. zigzagTearLineWidth ... default is 0.1 Width of the zigzag line itself. zigzagTearAngle ... default is … …of the zigzag BarLine stencil, NOT including its width. Can be used as "padding" around the stencil, …

…string zigzagTearHeight) " def /serrations " (number->string serrations) " def /width " (number->string zigzagTearWidth) " def /padding " (number->string (cdr zigzagTearXext)) " 2 width mul add def /serrationHeight height serrations div def /y0 " (number->string (cdr y-ext)) " def /xn width def /yn serrationHeight 2 div neg def /plotAngle { …

Ripped, torn staff-lines

Dashed individual staff lines [0.24777]

…means dashed, #f means normal and unchanged) The width of the dashes and the spacing between them … …The first number of the pair is the width, the second is the spacing. (The default is …

…doesn't match a warning is printed. The width of the dashes and the spacing between them … …and space (dash-space-width (+ dash-width space-width)) ;; another way: get width of dash from the dash stencil ;; (stil-width ;; (interval-length ;; (… …factor to scale the dashed-stil to fit ;; the width of the original staff-symbol-stencil (corr-factor (/ staff-width (- stil-x-length …

Dashed individual staff lines

Setting minimum width (spacing) for one particular measure [0.21429]

Setting minimum width (spacing) for one particular measure

…the snippet). One can, however, set a minimum width for that particular measure by using a parallel …

Setting minimum width (spacing) for one particular measure

Forcing measure width to adapt to MetronomeMark's width [0.21429]

Forcing measure width to adapt to MetronomeMark's width

Forcing measure width to adapt to MetronomeMark's width

Center Lyric Syllables (ignoring punctuation) [0.19643]

…to have the punctuation be included in the width of the syllable when centering it beneath the …

…list->char-set (string->list "—.?-;,:“”‘’–— */()[]{}|<>!`~&…"))) #(define (width grob text) (let* ((X-extent (ly:stencil-extent (grob-interpret-markup grob text) … …0 word-position)) (word (substring syllable word-position word-end)) (preword-width (width grob preword)) (word-width (width grob (if (string-null? syllable) text word))) (note-column (ly:grob-parent …

Center Lyric Syllables (ignoring punctuation)

Associate drumnotes with custom NoteHead stencils [0.14286]

…#(define (circSlash grob) (let* ((line-thickness (ly:staff-symbol-line-thickness grob)) (width (+ line-thickness 1)) (stem-thickness (* line-thickness 1.3)) (radius (/ (- … …def /x0 half-width def /y0 0 def /x1 width stem-thickness 2 div sub def /y1 half-width stem-thickness … …moveto x2 y2 lineto stroke grestore")) (cons 0 width) (cons 0 0)))) #(define plus (ly:make-stencil (list '…

Associate drumnotes with custom NoteHead stencils

Creating keyboard diagrams with chords or scales [0.14286]

…KEY-POS-LIST)) 0.5) ypos)))) #(define (make-keys l1 width off height fill) (if (null? l1) empty-stencil (ly:stencil-add (… …height) 0) (if fill (cons (- (car l1) (/ width 2)) off) ; (cons (- (car l1) 1) off))) (make-keys-black (cdr l1) width off height fill)))) #(define (make-dot key) (if (…

Creating keyboard diagrams with chords or scales

Easy Gregorian notation [0.14286]

…X-ext (ly:stencil-extent stencil X)) (Y-ext (ly:stencil-extent stencil Y)) (width (interval-length X-ext)) (len (interval-length Y-ext))) (ly:stencil-translate (grob-interpret-markup grob (… …X-ext (ly:stencil-extent stencil X)) (Y-ext (ly:stencil-extent stencil Y)) (width (interval-length X-ext)) (len (interval-length Y-ext))) (ly:stencil-translate (grob-interpret-markup grob (markup (#:path width (list (list (quote moveto) -0.7 -0.65) (…

Easy Gregorian notation

1 2 3 4 Next ⇨