The LilyPond Snippet Repository ♪♫

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

Results 1−10 of 65 for file

File Information [0.37500]

File Information

Display ly file information in markup, including file name, file size, LilyPond version, date processed, time processed, time …

…H:%M:%S" (localtime modt))) \markup \column { \line { "File Name = " \filen } \line { "File Size = " \siz } \line { "LilyPond Version = " \ver } \line { "Date …

File Information

Including a file only once [0.37500]

Including a file only once

…require them. I defined \includeIfAbsent to include a file if and only if it has not already … …scope from \include, so definitions in the included file need to be made global with define-public-toplevel in …

…now for 2.18 (Feb. 2014) % Include a file unless it has already been included. This executes % … …cloned parser, so all definitions in the included file need to % be made global with define-public-toplevel. Include … …ends with a segmentation fault. % % In the included file, do lilypond variable defintion % % var = <stuff> % as % #(…

Including a file only once

Generating multiple PDFs from one lilypond file (and naming them appropriately) [0.35714]

Generating multiple PDFs from one lilypond file (and naming them appropriately)

…make lilypond create multiple PDFs from one .ly file by simply adding mupltiple \book {...} secions in the file. Each such block will be converted into its …

…title = "Multiple Books in one score" } % The output file will be named after the source file % (default behavior) \book { \score { \new Staff << \vI >> } } % The …

Generating multiple PDFs from one lilypond file (and naming them appropriately)

Include a file only once, new version [0.32143]

Include a file only once, new version

This snippet lets you include a file only once, which is great for breaking circular …

…it/LSR/Item?id=894 % includeOnce: include a file only if it hasn't already been included. % Usage: \includeOnce "my_file.ily" % By Marnen Laibow-Koser <marnen@marnen.org> % Based …

Include a file only once, new version

Printing the full title on several scores in the same file [0.25000]

…full title on several scores in the same file

…you have multiple \score{...} blocks in your input file. As explained in the Notation Reference, you can … …repeat the information several times in the input file.

Printing the full title on several scores in the same file

String quartet template with separate parts [0.21429]

…contained in comments at the beginning of each file. piece.ly contains all the music definitions. The …

% piece.ly % (This is the global definitions file) global= { \time 4/4 \key c \major } Violinone = \… …layout { } } % vla.ly % (This is the Viola part file) \include "piece.ly" \score { \keepWithTag #'vla \music \layout { } } % vlc.ly % (This is the Cello part file) \include "piece.ly" \score { \keepWithTag #'vlc \music \…

String quartet template with separate parts

Defining predefined fretboards for other instruments [0.21429]

…addition to the standards used for guitar. This file shows how this is done by defining a … …few predefined fretboards for the Venezuelan cuatro. This file also shows how fingerings can be included in …

…This section could be put into a separate file % predefined-cuatro-fretboards.ly % and \included into each of your … …2-2;o;1-1;o;" % end of potential include file /predefined-cuatro-fretboards.ly #(set-global-staff-size 16) primerosNames = \chordmode { d:6 …

Defining predefined fretboards for other instruments

Predefined ukulele fretboards [0.20536]

…Delete that and include the rest of the file to use the diagrams in your own scores. … …produce fret diagrams for the ukulele, use the file predefined-ukulele-fretboards.ly: \include "predefined-ukulele-fretboards.ly" myChords = { a1 a:m … …ninth) for the same keys. In addition, the file predefined-guitar-ninth-fretboards.ly contains major ninth chords for guitar. …

…above here as "predefined-ukulele-fretboards.ly", %%% and include that file in your own sheet music to produce ukulele %%% …

Predefined ukulele fretboards

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

…the whole code, paste it in a separate file, named, for instance, 'book-titling.ily'; then just include … …want an example of an actual score source file). Using LilyPond to produce a whole book This … …stylesheet (you may save it as a separate file named "book-titling.ily", and then include it in …

…make-music 'Music 'void #t)) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%% Here's an example file that use the above functions. \header { title = "The …

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

Filtering parts from the command line [0.19643]

…build a score emphasizing chords. In the input file several facilities are provided: Music expressions are filtered …

…by setting the %%% target option in the source file itself, and as when markup commands %%% are interpreted the whole file as been read long ago, the %%% \if-target-in markup … …But here, as we fake in a single file the three possible calls, we use %%% this music …

Filtering parts from the command line

1 2 3 4 5 6 7 Next ⇨