Re: Unapproved LSR-snippet "Generating scores within a function"
Am Do., 2. Juli 2020 um 12:16 Uhr schrieb Valentin Petzel : > > Hello, > > While I cannot help you with this, I noticed that this snippet must have been > done in an older version of lilypond, thus it uses older music function calls. > I’ve updated the snippet to 2.20, so now it compiles at least locally. > > Regards, > Valentin Hi Valentin, the LSR currently runs 2.18.2. Upgrading it to 2.20.0 is on TODO. Thanks, Harm
Re: Unapproved LSR-snippet "Generating scores within a function"
Hello, While I cannot help you with this, I noticed that this snippet must have been done in an older version of lilypond, thus it uses older music function calls. I’ve updated the snippet to 2.20, so now it compiles at least locally. Regards, Valentin%% LSR originally contributed by Gilles Thibault: %% https://lists.gnu.org/archive/html/lilypond-user-fr/2011-11/msg00141.html %% See also http://lsr.di.unimi.it/LSR/Item?id=630 %% and https://lists.gnu.org/archive/html/lilypond-user/2015-04/msg00311.html \version "2.20" duo = #(define-music-function (nr) (number?) (let* ((s (number->string nr)) (h (make-module)) (m (ly:make-score #{<< \new Staff { \global \clarI } \new Staff { \global \clarII } >> #}))) (module-define! h 'piece (markup #:concat ("Duo n." s))) (ly:score-set-header! m h) (collect-scores-for-book m) (make-music 'Music 'void #t))) %% Duo 1 global = { \key c \major \time 4/4 } clarI = { e'1} clarII = { c'1} \duo #1 %% Duo 2 global = { \key d \minor \time 3/4 } clarI = { f'2.} clarII = { d'2.} \duo #2 %% Duo 3 global = { \key e \minor \time 2/4 } clarI = { g'2} clarII = { e'2} \duo #3 signature.asc Description: This is a digitally signed message part.
Unapproved LSR-snippet "Generating scores within a function"
Hi, said snippet waits to be approved. Alas, I think it will never work in the jail the lsr is running in. Could someone with experience in running LilyPond in a jail could have a look at the code: https://lsr.di.unimi.it/form.php?type=snippet;id=;rld=m_snippet ? Thanks, Harm