Re: Video generation from multiple pages

2023-12-09 Thread Stefano Antonelli
On Sat, 2023-12-09 at 17:34 +0100, Jean Abou Samra wrote: > > The line breaks come out before the rest of the measure does. I > > would > > expect the first line break print to appear after the third > > ly2videoBar. > > Are you relying on the order in which after-line-breaking callbacks > are

Re: Video generation from multiple pages

2023-12-09 Thread Jean Abou Samra
 > The line breaks come out before the rest of the measure does. I would > expect the first line break print to appear after the third > ly2videoBar. Are you relying on the order in which after-line-breaking callbacks are run? You shouldn't, as the order is completely undefined and has no

Re: Video generation from multiple pages

2023-12-09 Thread Stefano Antonelli
On Fri, 2023-12-08 at 22:55 +0100, Jean Abou Samra wrote: > Yes, but it was not called for System specifically until > > commit 782f5528e014cc3c7f705298a83f777306541e89 > Author: Jean Abou Samra > Date: Mon Mar 21 21:21:28 2022 +0100 > > Also call

Re: Video generation from multiple pages

2023-12-08 Thread Jean Abou Samra
> The after-line-breaking callback appears to be in stable/2.20 from git. > At least in system.cc. Yes, but it was not called for System specifically until commit 782f5528e014cc3c7f705298a83f777306541e89 Author: Jean Abou Samra Date: Mon Mar 21 21:21:28 2022 +0100 Also call

Re: Video generation from multiple pages

2023-12-08 Thread Stefano Antonelli
On Tue, 2023-12-05 at 11:23 +0100, Jean Abou Samra wrote: > Is this the sort of thing you're looking for? > > #(define (dump-system-info sys) >(let* ((right (ly:spanner-bound sys RIGHT)) > (time (ly:grob-property right 'when 0))) > (format #t "\nline break at ~f"

Re: Video generation from multiple pages

2023-12-05 Thread Jean Abou Samra
Is this the sort of thing you're looking for? ``` #(define (dump-system-info sys) (let* ((right (ly:spanner-bound sys RIGHT)) (time (ly:grob-property right 'when 0))) (format #t "\nline break at ~f" (ly:moment-main time \layout { \context { \Score \override

Re: Video generation from multiple pages

2023-12-04 Thread Stefano Antonelli
On Mon, 2023-12-04 at 14:48 -0600, Karlin High wrote: > On 12/1/2023 2:21 PM, Stefano Antonelli wrote: > > trying to modify ly2video to produce a different kind of video > > Have you seen Knut Petersen's MKVIDEO project? I have, but thanks for the suggestion. MKVIDEO is not nicely distributed

Re: Video generation from multiple pages

2023-12-04 Thread Karlin High
On 12/1/2023 2:21 PM, Stefano Antonelli wrote: trying to modify ly2video to produce a different kind of video Have you seen Knut Petersen's MKVIDEO project?

Re: Video generation from multiple pages

2023-12-04 Thread Stefano Antonelli
On Sat, 2023-12-02 at 22:56 -0800, Stefano Antonelli wrote: I wanted to mention that for some reason none of this stuff works unless it appears before the score block. Both dump-spacetime-info.ly and event-listener.ly must be included at the top of the file. If they are located at the bottom of

Re: Video generation from multiple pages

2023-12-02 Thread Stefano Antonelli
On Fri, 2023-12-01 at 12:21 -0800, Stefano Antonelli wrote: > The second issue is that the space-time-dumper in ly2video produces > what I need, but there are no page transitions indicated. I can > probably work out the transitions from when the x coordinate wraps, > but > it would be nice to