Re: Generation of Notation Videos with Lilypond Tool Chain

2016-06-14 Thread Knut Petersen

Three months ago you wrote:


A weakness of the approach is that the page turning times
for the score are gained by parsing the Postscript output
file of lilypond.  This approach is fragile and might break
when the font set is changed or whenever lilypond changes
its rendering philosophy.


David Nalesnik demonstrated how to teach lilypond to generate a list of bar 
numbers at line breaks,
see his original message at 
https://lists.gnu.org/archive/html/bug-lilypond/2015-01/msg00051.html. 


Add the following code to the top of your ly file:


#(define out (open-output-file "line-breaks.txt"))

#(define (display-breaks grob)
   (if (and (grob::has-interface grob 'paper-column-interface)
(eq? #t (ly:grob-property grob 'non-musical)))
   (if (eq? 1 (ly:item-break-dir grob))
   (let* ((location (ly:grob-property grob 'rhythmic-location))
  (m (car location)))
 (format out "Line beginning at measure ~a~%" m)))
   (ly:message "Need NonMusicalPaperColumn grob to determine line 
breaks.")))

Then activate the code as shown below:


\score {
   [...]
\layout{
\context {
\Score
\override NonMusicalPaperColumn #'after-line-breaking = 
#display-breaks
}
}
}

Best regards,

Knut
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Generation of Notation Videos with Lilypond Tool Chain

2016-03-08 Thread Dr. Thomas Tensi

Dear Joram, dear Richard,


thanks for the hints and for your nice comments! It seems
that a lot has improved since my first attempt in 2006 with
lilypond, timidity and avisynth.

I wrote:
> > [video rendering from lilypond has some limitations]
> > Another disadvantage is that tempo changes must be
> > supplied in a separate text file, because they cannot
> > easily be deduced from rendering data.

Richard wrote:
> Mathieu Demange found a way of extracting tempo changes see
> his work at
> https://gitlab.com/sigmate/lilypond-html-live-score

Joram wrote:
> And one particular link from the examples:
> http://www.youtube.com/watch?v=vDOZZzbfL00

This is really nice work, but to be honest, I find the
rolling variant shown in that video a bit distracting. The
advantage of having static pages is a real quiet picture
only seldomly changing when pages are turned.  This also
reduces video size significantly, because a maximum
compression can be used (almost all pictures are the same).

When you need positional information in that case, subtitles
can be optionally turned on.  In the current implementation
the time reference is "full measures", but, of course,
subdivisions (e.g. quarters) would be easy to implement.

And the data injection technique used by Mathieu is really
clever, but I am still looking for some intelligent way to
extract the tempo data without having an additional pass on
the input and without altering the input file in any way.

The postscript file is free, because it is produced anyway
when the PNG files are rendered, but it is difficult to
parse and, of course, subject to change.

For my current tool chain, the additional file with tempo
data is acceptable.  A lot more effort goes into the
audio rendering and postprocessing and most of my (pop)
pieces for stage have a really simple tempo track.

> HTH
> Richard

Yes, of course, thanks to both of you!  That gives me food
for thought on how to improve my toolchain.


  Best regards,

  Thomas

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Generation of Notation Videos with Lilypond Tool Chain

2016-03-07 Thread Richard Shann
On Sun, 2016-03-06 at 19:24 +0100, Dr. Thomas Tensi wrote:
> Dear all,
> 
> 
> for my practising and stage usage I developped a tiny
> toolchain based on lilypond.
> 
> Starting from a lilypond file an MP4 video is produced
> playing the music (or part of) and showing the score (or
> part of) with page turning synchronous to the music. As an
> additional aid, a (soft) subtitle shows the current measure
> number for orientation.
> 
> I use this on a tablet on stage for a duo to have the
> background tracks for that band synchronous with the score
> for the live instruments.  Of course, only one tablet can be
> used like that, because there is no video synchronisation
> among several tablets out of the box.
> 
> The whole process is described in
> 
>  http://www.tensi.eu/thomas/iPod/notation-video.html
> 
> the appetizer demo video with a BWV 639 rendition can be
> found at
> 
>  https://youtu.be/bqiMfUvmpug
> 
> The idea originated in 2006, where I made a tool chain based
> on avisynth and on Windows.  Now the 2016 tool chain just
> uses lilypond, timidity plus soundfont, ffmpeg and python
> (for scripting); those tools should be available on almost
> any platform.
> 
> A weakness of the approach is that the page turning times
> for the score are gained by parsing the Postscript output
> file of lilypond.  This approach is fragile and might break
> when the font set is changed or whenever lilypond changes
> its rendering philosophy.
> 
> Another disadvantage is that tempo changes must be supplied
> in a separate text file, because they cannot easily be
> deduced from rendering data.

Mathieu Demange found a way of extracting tempo changes see
his work at
https://gitlab.com/sigmate/lilypond-html-live-score

and a video showing LilyPond score visualisation based on his work in
Denemo
https://vimeo.com/154414223

this is based on LilyPond 2.18, his latest work uses new features in the
2.19 series and a corresponding version of Denemo using that route can
be found in a branch 
http://git.savannah.gnu.org/gitweb/?p=denemo.git;a=shortlog;h=refs/heads/PlaybackView

HTH

Richard



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Generation of Notation Videos with Lilypond Tool Chain

2016-03-06 Thread Noeck
And one particular link from the examples:
https://www.youtube.com/watch?v=vDOZZzbfL00&index=3&list=PLfRwjd606WZlxRU_kaUPagX3-Uv-SYRMH

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Generation of Notation Videos with Lilypond Tool Chain

2016-03-06 Thread Noeck
Hi Thomas,

this is cool for playing from screen (if the musician keeps the tempo
exactly). It might be interesting for you to see, what has been done here:
https://github.com/aspiers/ly2video
With some examples:
http://www.youtube.com/playlist?list=PLfRwjd606WZlxRU_kaUPagX3-Uv-SYRMH

Cheers,
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Generation of Notation Videos with Lilypond Tool Chain

2016-03-06 Thread Dr. Thomas Tensi

Dear all,


for my practising and stage usage I developped a tiny
toolchain based on lilypond.

Starting from a lilypond file an MP4 video is produced
playing the music (or part of) and showing the score (or
part of) with page turning synchronous to the music. As an
additional aid, a (soft) subtitle shows the current measure
number for orientation.

I use this on a tablet on stage for a duo to have the
background tracks for that band synchronous with the score
for the live instruments.  Of course, only one tablet can be
used like that, because there is no video synchronisation
among several tablets out of the box.

The whole process is described in

http://www.tensi.eu/thomas/iPod/notation-video.html

the appetizer demo video with a BWV 639 rendition can be
found at

https://youtu.be/bqiMfUvmpug

The idea originated in 2006, where I made a tool chain based
on avisynth and on Windows.  Now the 2016 tool chain just
uses lilypond, timidity plus soundfont, ffmpeg and python
(for scripting); those tools should be available on almost
any platform.

A weakness of the approach is that the page turning times
for the score are gained by parsing the Postscript output
file of lilypond.  This approach is fragile and might break
when the font set is changed or whenever lilypond changes
its rendering philosophy.

Another disadvantage is that tempo changes must be supplied
in a separate text file, because they cannot easily be
deduced from rendering data.

Nevertheless I think that this approach might be interesting
for other performing musicians.  One can have a "moving"
score on any device capable of playing MP4 videos without
having to resort to a special software (like e.g. a MIDI
sequencer).

Feel free to comment on the approach; I am always willing to
learn.

   Best regards,

  Thomas

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user