lilypond-user
[Top][All Lists]
Advanced

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

Video generation on linux systems: Note and rests change color


From: Knut Petersen
Subject: Video generation on linux systems: Note and rests change color
Date: Fri, 21 Jul 2017 10:00:04 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hi everybody!

To generate score videos like Bach: Invention 1, Wolf: Resignation and Peterson-Berger: I Fyrreskoven
that give a different color to notes and rest while they are active you might use the attached files if
you run a unixoid system like linux.

mkvideo-lily-diff contains changes to an installed version of lilypond (tested with 2.19.65, but it also
should work with much older versions). No recompilation is necessary, only scm and ps files are
changed. The patched version of lilypond will behave exactly like the unpatched version as long as
videohelper.ily is not used. One exception: If you define illegal rgb colors (R,G,B not in the range
[0.0 ... 1.0]) this will not be detected.

Wolf_Resignation.ly is a lilypond score that demonstrates the intended use. Be sure to have a close
look at the comments!

videohelper.ily includes some definitions needed for video generation.

mkvideo requires bash, ls, sort, tail, uniq, grep, sed, usleep, bc, gs, pdftk,
lilypond, fluidsynth, sox, ffmpeg, wc and a suitable sound font, e.g. FluidR3_GM.sf2

1. Patch some of the scm and ps files of your version of lilypond. Adapt the paths first!
cd /some/path/lilypond/2.19.65
patch -p 1 < /some/path/mkvideo-lily-diff
2. Store the other files in a separate directory and feed lilypond:
lilypond Wolf_Resignation
3. Run the mkvideo script:
./mkvideo
At the top of mkvideo there are some definitions that might be changed ... be sure to define a
suitable soundfont.

If you have problems: DEBUG gives a very verbose output, clean keeps temporary files.

cu,
 Knut

Attachment: mkvideo-lily-diff
Description: Text document

Attachment: videohelper.ily
Description: Text document

Attachment: mkvideo
Description: Text document

Attachment: Wolf_Resignation.ly
Description: Text Data


reply via email to

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