The LilyPond Snippet Repository ♪♫

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

Results 71−80 of 366 for markup

Curved arrow [0.19643]

Markup function to draw a curved arrow with variable …

…with variable length and height." (interpret-markup layout props (markup #:with-dimensions (cons 0 0) (cons 0 0) (#:override (… …05 (abs height)) 0 0) (closepath))))))) %% Test: { c'^\markup\curvedArrow #0 #0 #0 c' c'_\markup\scale #'(-1 . -1)\rotate #-10 \curvedArrow #3 …

Curved arrow

Inserting score fragments above a staff, as markups [0.17857]

The \markup command is quite versatile. In this snippet, it …

tuning = \markup { \score { \new Staff \with { \remove "Time_signature_engraver" } { \… …title = "Solo Cello Suites" subtitle = "Suite IV" subsubtitle = \markup { Originalstimmung: \raise #0.5 \tuning } } \layout { ragged-right = ##f } \…

Inserting score fragments above a staff, as markups

Printing both the ancient and the modern clef in vocal music [0.17857]

…have to replace the clef symbol by a \markup block, and that can only be done by … …have to define this text element as a markup, and insert in it the \musicglyph you need. …

…Clef.stencil = #ly:text-interface::print \once \override Staff.Clef.text = \markup { \raise #-1 \musicglyph #"clefs.C_change" \musicglyph …

Printing both the ancient and the modern clef in vocal music

Creating "real" parenthesized dynamics [0.17857]

…to a dynamic mark is to use a \markup block, this method has a downside: the created … …combined with the make-dynamic-script function. This way, the markup will be regarded as a dynamic, and therefore …

…#(define-event-function (parser location dyn) (ly:event?) (make-dynamic-script #{ \markup \concat { \normal-text \italic \fontsize #2 ( \pad-x #0.2 …

Creating "real" parenthesized dynamics

Using Scheme to display the list of all supported midi instruments [0.17857]

…the midi.scm file and then creating a \markup for each midi instrument definition. This is done …

…of instrument definitions % That function simply creates a markup containing the name as a simple string (the … …layout props) () (interpret-markup-list layout props (map (lambda (instr) (markup (car instr))) (@@ (lily) instrument-names-alist)))) % simply display the list …

Using Scheme to display the list of all supported midi instruments

Customising note heads [0.17857]

…text attribute of the NoteHead. It accepts any markup. The easiest thing to do is to simply …

…NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = #(markup #:musicglyph "scripts.flageolet" ) } headPlus = { \once \override NoteHead.stencil = #ly:text-interface::print \once \override NoteHead.text = #(markup #:musicglyph "scripts.stopped") } { \headCircle c'4 \headPlus d'…

Customising note heads

Printing text from right to left [0.17857]

…print text from right to left in a markup object, as demonstrated here.

{ b1^\markup { \line { i n g i r u m … …u s n o c t e } } f'_\markup { \override #'(text-direction . -1) \line { i n g …

Printing text from right to left

Adding the current date to the tagline [0.17857]

…or placing the same Scheme code in a \markup block. One more option is to place the …

…mm))) paper-alist)) \paper { #(set-paper-size "snippet") indent = 0 } \markup\vspace #.5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \header { title = "Title" composer = "Composer" arranger = "Arranger" tagline = \markup { Engraved on \simple #(strftime "%x at %X" (…

Adding the current date to the tagline

Using make-connected-path-stencil to draw custom shapes [0.17857]

…and also how they can be used in \markup. The snippet also shows how to use ly:stencil-translate …

…stencil = \bowtie e'4 f' g' a' } triangle = \markup \stencil #(make-connected-path-stencil '((1 2) ;; path coordinates (2 … …origin point? (0 0) #t) % filled path? moon = \markup \stencil #(ly:stencil-translate (make-connected-path-stencil '((-6 -2 -6 7 …

Using make-connected-path-stencil to draw custom shapes

Replacing some accidentals with a user-defined stencil [0.17857]

…with an arbitrary stencil (in this case, a markup). Alterations are defined as 1 for a double-flat, …

…rather ugly collision on older LilyPond versions. doubleSharp = \markup \concat { \raise #-.15 \sharp \sharp } \layout { \context { \… …ly:grob-property (ly:grob-property grob 'cause) 'cause) 'pitch))) (grob-interpret-markup grob (markup doubleSharp)) (ly:accidental-interface::print grob))) } } \relative c'{ cisis cisih des }

Replacing some accidentals with a user-defined stencil

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