Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Valentin Petzel
Hello Henning.

thank you for the tip, but the problem is not that Inkscape cannot handle OTF 
features but that the Lilypond svg backend does handle them.

Valentin

Am Freitag, 18. Februar 2022, 19:45:20 CET schrieb Henning Hraban Ramm:
> Am 18.02.22 um 19:01 schrieb Valentin Petzel:
> > Converting the svg is done using inkscape for now, as this
> > one handles ligatures and such stuff. Of course this means that we lack
> > otf
> > features for now.
> 
> You might want to look into ConTeXt LMTX, it uses a SVG-to-Metapost
> converter written in Lua to create PDF and supports all the OTF features.
> 
> Hraban



signature.asc
Description: This is a digitally signed message part.


Re: Red dot before all notes

2022-02-18 Thread Jacques Menu
Hello,

Using ". “ instead of ". “ in the original solution moves the dot apart.

JM

> Le 17 févr. 2022 à 20:02, Jean Abou Samra  a écrit :
> 
> Hi,
> 
> One thing you may not be aware of is that when you reply
> to an existing thread, the reply appears in the same thread
> for others, even if you change the title. I saw your message
> under "Box around MeasureCounter". It is better to start
> a new topic instead.
> 
> 
> Le 17/02/2022 à 19:21, Rajesh Baskar a écrit :
>> 
>> Hi,
>> 
>> I'm trying to get a red dot placed before each note. I have tried using 
>> \tweak and
>> 
>> \set fingeringOrientations = #'(left)
>> 
>> \finger  \markup \with-color "#FF" "."
>> 
>> But nothing seems to give the desired results.
>> 
>> The below image is what I'm trying to get.
>> 
>> 
>> \version "2.22.0" \include "english.ly" \header { tagline = "" } \score 
>> {\new Staff \with {\remove "Time_signature_engraver" } {\set 
>> Staff.midiInstrument = #"Acoustic Grand Piano" \key c \major \time 5/1 \clef 
>> treble c'1 d' e' f' g' \bar "||"} \layout { } \midi { \tempo 4 = 168}}
>> 
>> Thanks for all the help,
>> 
> 
> 
> 
> This works for me:
> 
> \version "2.22.1"
> 
> {
>   \set fingeringOrientations = #'(left)
>   
> }
> 
> Perhaps you forgot the chord <>? It is necessary to be
> able to use fingeringOrientations (see
> https://lilypond.org/doc/v2.23/Documentation/notation/inside-the-staff#fingering-instructions
>  
> ).
> 
> I'd adjust the formatting a bit and use a real dot sign:
> 
> \version "2.22.1"
> 
> {
>   \set fingeringOrientations = #'(left)
>"dots.dot">
> }
> 
> Best,
> Jean



Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Henning Hraban Ramm

Am 18.02.22 um 19:01 schrieb Valentin Petzel:

Converting the svg is done using inkscape for now, as this
one handles ligatures and such stuff. Of course this means that we lack otf
features for now.


You might want to look into ConTeXt LMTX, it uses a SVG-to-Metapost 
converter written in Lua to create PDF and supports all the OTF features.


Hraban



Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Valentin Petzel
Huh, this is quite an amount of replies.

The script basically works by inserting information about the current beat as 
well as the timing into the score, which is then output to svg. We then parse 
these svg files to retrieve this information and remove the codes. These 
cleaned svgs are then converted to png files. These are then turned into frames 
and sent to ffmpeg. Converting the svg is done using inkscape for now, as this 
one handles ligatures and such stuff. Of course this means that we lack otf 
features for now.

Currently this thing supports multiple pages as well as automatic scrolling 
(both vertically and horizontally). Support for repeats, jumps and omissions 
will eventually come, as well as handling of multiple scores (which I’ll 
implement by using score IDs.

Alignment is done by setting the context property Score.timestep to the time 
in seconds. For jumps and repeats this will probably at some point allow 
giving a list of timestamps, one entry for each time the part is played.

@Paolo: I started this because I just couldn’t get ly2video to handle timing 
well (that one uses a relative approach, so timing is adjusted by bpm. This is 
of course extremely volatile, as errors can sum up. My script instead aligns 
by the actual timestamp.). Also ly2video has to compromise on quality and 
speed as it works mainly on png. And yes, I’m going to publish the script once 
I’ve got it in a better shape. So far I’ve only been working on it a few 
hours.

@Kira: Glad you like it!

@Kevin: Syncing up to MIDI is surely possible. My script is fast enough to 
make display in realtime viable (and if we can modify the viewer of 
frescobaldi to draw additional stuff we can get even faster. So it should very 
well be possible to do something like this for Frescobaldi.

@Hendur: This script is written in python so far. Currently it relies on the 
output of Lilypond, eventually it should do stuff like running Lilypond and 
injecting relevant Lilypond code automatically.

@Mario: Yes! I will not give a more detailed explanation than the above for 
I’m a bit too tired now. I’ve currently just spend a few hours on this thing, 
once it is in a better shape I will make this available.

@Tom: No, I’m not asking for feedback at this point.  I’m just letting you 
know that I have something like this in the works. Once I have this far enough 
to be usable I’ll be open for feedback.

@Kenneth: I don’t think you need to wait long, but I need to add some 
logistics first.

Cheers,
Valentin

Am Freitag, 18. Februar 2022, 18:04:56 CET schrieb Kenneth Wolcott:
> Hi Valentin;
> 
>   This looks awesome!  Looking forward to seeing more become available.
> 
> Ken Wolcott
> 
> On Fri, Feb 18, 2022 at 8:58 AM Tom Sgouros  wrote:
> > It sounds like you're asking for feedback, so I'll say that it looks great
> > and I would be very interested to hear more.
> > 
> > Thank you,
> > 
> >  -Tom
> > 
> > On Fri, Feb 18, 2022 at 8:08 AM Valentin Petzel  
wrote:
> >> Hello Pondmates!
> >> 
> >> 
> >> I have created an experimental script to turn a Lilypond score into an
> >> animated video. Here is a little teaser:
> >> 
> >> https://youtu.be/oFFm7FcFaLA
> >> 
> >> 
> >> Just a trigger warning: This contains bad piano playing!
> >> 
> >> 
> >> Cheers,
> >> 
> >> Valentin



signature.asc
Description: This is a digitally signed message part.


Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Karlin High

On 2/18/2022 7:07 AM, Valentin Petzel wrote:
I have created an experimental script to turn a Lilypond score into an 
animated video.


Nice! Before, we had 2 different methods for generating video from LilyPond.

ly2video, by Adam Spiers, which makes a scrolling score.



MKVIDEO, by Knut Petersen, which makes a still score with notes changing 
color as they are played.








Now the video you've produced has a moving blue bar reminding me of the 
MuseScore software's playback function.


I think ideally these things would be combined into a best-hybrid 
product that's officially maintained within LilyPond or along-side as 
Frescobaldi is. Or whatever best serves the community around it.


As LilyPond moves towards using the cairo library for graphics output, I 
hope these video output methods (or something like them) is available 
beyond the transition. Video scores can be great learning aids for 
complex choral works. (Reminds me, I told someone I could get them one 
of "Worthy Is The Lamb" from Handel's Messiah by spring...)

--
Karlin High
Missouri, USA



Re: lilypond-user Digest, Vol 231, Issue 99

2022-02-18 Thread Wim van Dommelen


  1. Re: Teaser: Animated Lilypond Scores (Tom Sgouros)


--

It sounds like you're asking for feedback, so I'll say that it looks great
and I would be very interested to hear more.

Interesting 

> https://youtu.be/oFFm7FcFaLA
> 
Regards,
Wim.



Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Kenneth Wolcott
Hi Valentin;

  This looks awesome!  Looking forward to seeing more become available.

Ken Wolcott

On Fri, Feb 18, 2022 at 8:58 AM Tom Sgouros  wrote:
>
> It sounds like you're asking for feedback, so I'll say that it looks great 
> and I would be very interested to hear more.
>
> Thank you,
>
>  -Tom
>
> On Fri, Feb 18, 2022 at 8:08 AM Valentin Petzel  wrote:
>>
>> Hello Pondmates!
>>
>>
>> I have created an experimental script to turn a Lilypond score into an 
>> animated video. Here is a little teaser:
>>
>> https://youtu.be/oFFm7FcFaLA
>>
>>
>> Just a trigger warning: This contains bad piano playing!
>>
>>
>> Cheers,
>>
>> Valentin



Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Tom Sgouros
It sounds like you're asking for feedback, so I'll say that it looks great
and I would be very interested to hear more.

Thank you,

 -Tom

On Fri, Feb 18, 2022 at 8:08 AM Valentin Petzel  wrote:

> Hello Pondmates!
>
> I have created an experimental script to turn a Lilypond score into an
> animated video. Here is a little teaser:
>
> https://youtu.be/oFFm7FcFaLA
>
> Just a trigger warning: This contains bad piano playing!
>
> Cheers,
>
> Valentin
>


Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Kevin Cole
Bravo! Encore! Loving the "follow the non-bouncing line" -- as opposed
to the older "follow the bouncing ball".



Re: Teaser: Animated Lilypond Scores

2022-02-18 Thread Kira Garvie
I love it! That is amazing, and no need to apologize for your piano
playing. The scrolling scores are extremely helpful for score study!


On Fri, Feb 18, 2022 at 8:08 AM Valentin Petzel  wrote:

> Hello Pondmates!
>
> I have created an experimental script to turn a Lilypond score into an
> animated video. Here is a little teaser:
>
> https://youtu.be/oFFm7FcFaLA
>
> Just a trigger warning: This contains bad piano playing!
>
> Cheers,
>
> Valentin
>


Teaser: Animated Lilypond Scores

2022-02-18 Thread Valentin Petzel
Hello Pondmates!

I have created an experimental script to turn a Lilypond score into an animated 
video. Here is a little teaser:
https://youtu.be/oFFm7FcFaLA[1]

Just a trigger warning: This contains bad piano playing!

Cheers,
Valentin


[1] https://youtu.be/oFFm7FcFaLA


signature.asc
Description: This is a digitally signed message part.


Re: LilyPond 2.23.6 released

2022-02-18 Thread Thomas Scharkowski



> Am 17.02.2022 um 20:42 schrieb Jean Abou Samra :
> 
> 
> 
> Le 17/02/2022 à 09:08, Thomas Scharkowski a écrit :
>> I did GUILE_AUTO_COMPILE=1 lilypond file.ly - there was not much of change 
>> afterwards: MSDM.ly still needed 24“ compared to 10“ with MacPorts.
> 
> You did see all the logging output with warnings about 'possibly
> unbound variables' and stuff?

Yes, I did.

> If so, that's strange and disappointing.
> 
> Jean
>