lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Video generation, bash script, keeps sync in spite of tempo changes


From: Urs Liska
Subject: Re: Video generation, bash script, keeps sync in spite of tempo changes
Date: Wed, 7 Sep 2016 14:32:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0


Am 07.09.2016 um 14:20 schrieb Phil Hézaine:
> On 06/09/2016 14:22, Knut Petersen wrote:
>> Hi everybody!
>>
>> I think some people might be interested in the files attached.
>>
>> JSBI1.ly is a sample document (Bach Invention No. 1) that demonstrates
>> the syntax.
>> It includes some insane tempo changes and a bad layout to force pages
>> with a variable
>> number of systems. You'll see that despite of this video and audio keeps
>> synchronized.
>>
>> videohelper.ily includes some code to generate a helper file during the
>> lilypond run.
>>
>> mkvideo is a bash script that generates videos from the lilypond output,
>> following
>> instructions generated during the lilypond run. mkvideo use the
>> following tools
>>
>> ls, sort, tail, uniq, grep, sed, bc, gs, pdftk, fluidsynth, sox, ffmpeg
>> and the
>>  /usr/share/sounds/sf2/FluidR3_GM.sf2 sound file.
>>
>> Put the attached files into a seperate directory, don't forget "chmod
>> 700 mkvideo",
>> and execute
>>
>>     lilypond JSBI1
>>    ./mkvideo
>>
>> mkvideo is pretty fast (lilypond time here approximately 1.6 seconds,
>> video
>> generation time less than 9 seconds on an i4790K system)
>>
>> cu,
>>  Knut
>
> Hi Knut,
>
> It seems there are 2 errors in videohelper.ily, line 128 and 146:
>
> GNU LilyPond 2.18.2
> Traitement de « JSBI1.ly »
> Analyse...
> Interprétation en cours de la musique...[8][16]
> Pré-traitement des éléments graphiques...
> Détermination du nombre optimal de pages...
> Répartition de la musique sur une page...
> Dessin des systèmes...
> Sortie mise en page vers « JSBI1.ps »...
> Conversion à « ./JSBI1.pdf »...
> videohelper.ily:146:2: Erreur : GUILE a signalé une erreur pour
> l'expression débutant ici
> #
>  (format out "~a~a~a" "LILYSOURCE=" (ly:parser-output-name) ".ly\n")
> Wrong number of arguments to #<primitive-procedure ly:parser-output-name>
> Interprétation en cours de la musique...[8][16]
> Pré-traitement des éléments graphiques...
> Détermination du nombre optimal de pages...
> Répartition de la musique sur 7 à 8 pages...
> Dessin des systèmes...videohelper.ily:128:20: In expression
> (grob::when (car m)):
> videohelper.ily:128:20: Unbound variable: grob::when
>
> Phil.
>

Obviously this code doesn't work with LilyPond 2.18. Both errors refer
to changes someway down the 2.19 line.

I assume that the \version statement "2.11.47" is erroneous and refers
to "2.19.47" instead.

HTH
Urs

>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

[Prev in Thread] Current Thread [Next in Thread]