lilypond-user
[Top][All Lists]
Advanced

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

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


From: Knut Petersen
Subject: Video generation, bash script, keeps sync in spite of tempo changes
Date: Tue, 6 Sep 2016 14:22:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2

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

Attachment: JSBI1.ly
Description: Text Data

Attachment: videohelper.ily
Description: Text document

Attachment: mkvideo
Description: Text document


reply via email to

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