Staff Centre Vertical Alignment on page?

2023-12-12 Thread Stefano Antonelli
Hello List, I'm producing muliple pngs with a single staff each. When I 'flip' through these pngs, the staff appears to move up and down on the page. I can set top-system-spacing.basic-distance = #7 in my \paper block and that seems to work for the one piece I'm playing with, but it depends

Re: ly:set-option png backend broken?

2023-12-12 Thread Stefano Antonelli
On Tue, 2023-12-12 at 21:48 +0100, K. Blum wrote: > Am 10.12.2023 um 20:17 schrieb lilypond-user-requ...@gnu.org: > > Is there any way to produce png output without --png in the > > command? > Did I get you right that you don't want to add anything to the > command line, but you don't mind

Re: lilypond "preprocessor"?

2023-12-12 Thread Mats Bengtsson
On 2023-12-12 11:26, Werner LEMBERG wrote: One thing occurred to me.  If the original \score did not have a \midi block, would it be possible to ask lilypond to produce midi output without modifying the input file?

Re: lilypond "preprocessor"?

2023-12-12 Thread Stefano Antonelli
On Tue, 2023-12-12 at 12:40 -0800, Aaron Hill wrote: > Any better? > > > #(define (add-midi-to-score score) >(define (has-midi? score) > (any (lambda (x) (ly:output-def-lookup x 'is-midi)) > (ly:score-output-defs score))) >(if (has-midi? score) score > #{ \score {

Re: lilypond "preprocessor"?

2023-12-12 Thread David Kastrup
Aaron Hill writes: > On 2023-12-12 1:04 pm, David Kastrup wrote: >> Aaron Hill writes: >>> >>> #(define (add-midi-to-score score) >>> (define (has-midi? score) >>> (any (lambda (x) (ly:output-def-lookup x 'is-midi)) >> Wouldn't that need to be (ly:output-def-lookup x 'is-midi #f) ? >

Re: lilypond "preprocessor"?

2023-12-12 Thread Aaron Hill
On 2023-12-12 1:04 pm, David Kastrup wrote: Aaron Hill writes: #(define (add-midi-to-score score) (define (has-midi? score) (any (lambda (x) (ly:output-def-lookup x 'is-midi)) Wouldn't that need to be (ly:output-def-lookup x 'is-midi #f) ? The default is to return '() which I

Re: lilypond "preprocessor"?

2023-12-12 Thread David Kastrup
Aaron Hill writes: > On 2023-12-12 12:06 pm, Stefano Antonelli wrote: >> On Tue, 2023-12-12 at 02:31 -0800, Aaron Hill wrote: >>> Would this not work? >>> >>> #(define (add-midi-to-score score) >>>#{ \score { $score \midi {} } #}) >>> toplevel-score-handler = >>> #(lambda (score) >>>

Re: ly:set-option png backend broken?

2023-12-12 Thread K. Blum
Hi Stefano, Am 10.12.2023 um 20:17 schrieb lilypond-user-requ...@gnu.org: Is there any way to produce png output without --png in the command? Did I get you right that you don't want to add anything to the command line, but you don't mind adding options to your LY files? I'v tried this to get

Re: lilypond "preprocessor"?

2023-12-12 Thread Aaron Hill
On 2023-12-12 12:06 pm, Stefano Antonelli wrote: On Tue, 2023-12-12 at 02:31 -0800, Aaron Hill wrote: Would this not work? #(define (add-midi-to-score score) #{ \score { $score \midi {} } #}) toplevel-score-handler = #(lambda (score) (collect-scores-for-book (add-midi-to-score

Re: lilypond "preprocessor"?

2023-12-12 Thread Stefano Antonelli
On Tue, 2023-12-12 at 02:31 -0800, Aaron Hill wrote: > Would this not work? > > > #(define (add-midi-to-score score) >#{ \score { $score \midi {} } #}) > > toplevel-score-handler = > #(lambda (score) >(collect-scores-for-book (add-midi-to-score score))) > Indeed it does!

Re: lilypond "preprocessor"?

2023-12-12 Thread Stefano Antonelli
On Tue, 2023-12-12 at 11:00 +0100, Jean Abou Samra wrote: > > cat first.ly second.ly third.ly > out.ly > > lilypond out.ly > > But it's not portable. I'd have to do the equivalent in python if > > there's no way to do it with lilypond. > > Not sure I understand the need, why do you need to

Re: lilypond "preprocessor"?

2023-12-12 Thread Aaron Hill
On 2023-12-12 2:01 am, Jean Abou Samra wrote: One thing occurred to me.  If the original \score did not have a \midi block, would it be possible to ask lilypond to produce midi output without modifying the input file? No, this is not currently possible, although it would be a nice addition.

Re: lilypond "preprocessor"?

2023-12-12 Thread Werner LEMBERG
>> One thing occurred to me.  If the original \score did not have a >> \midi block, would it be possible to ask lilypond to produce midi >> output without modifying the input file? > > No, this is not currently possible, although it would be a nice > addition. Stefano, please file an issue for

Re: lilypond "preprocessor"?

2023-12-12 Thread Jean Abou Samra
> One thing occurred to me.  If the original \score did not have a \midi > block, would it be possible to ask lilypond to produce midi output > without modifying the input file? No, this is not currently possible, although it would be a nice addition. signature.asc Description: This is a

Re: lilypond "preprocessor"?

2023-12-12 Thread Jean Abou Samra
> If I can find a way to append to the input file, I can probably get rid > of that scraping/parsing code completely.  I came across -dread-file- > list.  If I understand I would need to create a file: > > ``` > $ cat list-of-files.txt > first.ly > song.ly > last.ly > ``` > > And then > > ``` >