The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 229 for example

Ready-to-use LilyPond macros: advanced layout and titles, using a special stylesheet [0.23214]

…of the snippet description if you want an example of an actual score source file). Using LilyPond … …the bottom of the source code, a short example demonstrating some of these abilities.

…which should be a string, to small caps. @example \\markup \\small-caps \"Text between double quotes\" @end example" (define (string-list->markup strings lower) (let ((final-string (string-upper-case (… …parser*)) (make-music 'Music 'void #t)) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%% Here's an example file that use the above functions. \header { title = "…

Ready-to-use LilyPond macros: advanced layout and titles, using a special stylesheet

Alphabetically sorted index [0.21429]

…possible to create heavily customized sorted indices. For example, a topic-based index can be achieved by \markuplist \… …not yet possible to create multiple indices, for example, an alphabetically sorted and a topic-based one. To …

…divide the alphabetical index into different sections, for example one section for each first letter." (add-index-item! 'indexSectionMarkup text sorttext)) % --------------------------------------------------------------- % Example \markuplist \index \indexSection #"B" \markup { "B" } \indexSection …

Alphabetically sorted index

Tam-tam example [0.21429]

Tam-tam example

A tam-tam example, entered with 'tt'

Tam-tam example

Tambourine example [0.21429]

Tambourine example

A tambourine example, entered 'tamb'

Tambourine example

Percussion example [0.21429]

Percussion example

A short example taken from Stravinsky's L'histoire du Soldat.

Percussion example

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

…as shown in the second half of the example.

example = { \tempo "Allegro" R1*6 \tempo "Rall." R1*2 \tempo "A tempo" R1*8 } { \compressMMRests { \example R1 R1 \override Score.MetronomeMark.extra-spacing-width = #'(-3 . 0) \example } }

Forcing measure width to adapt to MetronomeMark's width

Specifying number of measures per line [0.19643]

…pattern which will repeat throughout the score. The example shows how to specify four measures per line. … …will create a pattern of greater complexity. For example, \consists #(bars-per-line-engraver '(2 3 4)) defines lines … …of 'line-break-permission which is commented out in the example.

…working-copy (cdr working-copy)))) (set! total (+ total (car working-copy)))))))))))) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% EXAMPLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% myMusic = \relative c' { \repeat unfold 4 { \time 5/…

Specifying number of measures per line

Force unparenthesized accidentals [0.19643]

…parenthesis from selected cautionary accidentals, based on an example like this: \partial 4 cis''4( | c'') Precede …

…MusicI \bar "|." } \header { piece = "LilyPond's default result" } } %%%% Example 1: #(define (remove-parenthesis-from-accidental grob) (let ((accidental (ly:grob-object … …had to put this command inside a chord!)" } } } %%%% Example 2: MusicIII = { \key f \major % \partial 4 cis''… …defined before-line-breaking procedure" "by »\\override AccidentalCautionary.before-line-breaking = #visit-cautionary-accidentals«)" } } } %%%% Example 3: % This will not run on version 2.…

Force unparenthesized accidentals

Filtering parts from the command line [0.17857]

…lilypond -dtarget=chords -o chords snippet.ly, for example, to build a score emphasizing chords. In the … …the target but can be more exotic, for example 'chords => "Full accompaniment". You just need to set …

…WORKAROUND SECTION ================================= %%% THIS IS NOT PART OF THE EXAMPLE CODE -- JUST A WORKAROUND. %%% As we fake …

Filtering parts from the command line

Flexible Transposing a whole score [0.17857]

…the function definition. As you see in the example this works with transposed voices as well (in the example I've written the Bb-Trumpet pitches as they …

…new Staff { << \global \Trp >> } >> } \layout {} } % End of the example % ============================================================= % The remainder is just for visualisation the deactivation …

Flexible Transposing a whole score

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