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: David Nalesnik
Subject: Re: Video generation, bash script, keeps sync in spite of tempo changes
Date: Wed, 7 Sep 2016 07:34:25 -0500

On Wed, Sep 7, 2016 at 7:20 AM, Phil Hézaine <address@hidden> wrote:
> 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
>

grob::when wasn't introduced until 2.19.16

David



reply via email to

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