Hi, in /Documentation/snippets we have clip-systems.ly (attached). In 2.24.0 it always crashes for me with fatal error: cannot find file: `clip-systems-1-from-2.0.1-to-4.0.1-clip.eps'
Afaict, the emitted .eps-files are always converted to .pdf. Thus trying to call such an eps via \epsfile crashes. Furthermore the NR 3.5.1 "Extracting fragments of music" reads "By default, each music fragment will be output as a separate EPS file, but other formats such as PDF or PNG can also be created if required." This is obviously not correct, currently. Otoh,we print the result of said snippet in the Snippets-manual. No clue how we avoid the crash, alas the image is wrong. Compare https://lsr.di.unimi.it/LSR/Item?id=602 (running 2.22.2) with http://lilypond.org/doc/v2.24/Documentation/snippets/paper-and-layout#paper-and-layout-clip-systems Cheers, Harm
%% DO NOT EDIT this file manually; it was automatically %% generated from the LilyPond Snippet Repository %% (http://lsr.di.unimi.it). %% %% Make any changes in the LSR itself, or in %% `Documentation/snippets/new/`, then run %% `scripts/auxiliar/makelsr.pl`. %% %% This file is in the public domain. \version "2.23.13" \header { lsrtags = "paper-and-layout" texidoc = " This code shows how to clip (extract) snippets from a full score. This file needs to be run separately with @code{-dclip-systems}; the snippets page may not adequately show the results. The result will be files named @samp{@emph{base}-from-@emph{start}-to-@emph{end}[-@emph{count}].eps}. If system starts and ends are included, they include extents of the System grob, e.g., instrument names. Grace notes at the end point of the region are not included. Regions can span multiple systems. In this case, multiple EPS files are generated. " doctitle = "Clip systems" } % begin verbatim #(ly:set-option 'clip-systems) #(define output-suffix "1") origScore = \score { \relative c' { \new Staff \with { instrumentName = "Instrument" } c1 d1 \grace c16 e1 \key d \major f1 \break \clef bass g,1 fis1 } } \book { \score { \origScore \layout { % Each clip-region is a (START . END) pair % where both are rhythmic-locations. % (make-rhythmic-locations BAR-NUMBER NUM DEN) % means NUM/DEN whole-notes into bar numbered BAR-NUMBER clip-regions = #(list (cons (make-rhythmic-location 2 0 1) (make-rhythmic-location 4 0 1)) (cons (make-rhythmic-location 0 0 1) (make-rhythmic-location 4 0 1)) (cons (make-rhythmic-location 0 0 1) (make-rhythmic-location 6 0 1)) ) } } } %#(ly:set-option 'clip-systems #f) #(define output-suffix #f) \book { \score { \origScore } \markup { \bold \fontsize #6 clips } \score { \lyrics { \markup { from-2.0.1-to-4.0.1-clip.eps } \markup { \epsfile #X #30.0 #(format #f "~a-1-from-2.0.1-to-4.0.1-clip.eps" (ly:parser-output-name)) } } } }
_______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond