Oh, that makes sense.  It never occurred to me to have separate book
blocks for just the midi output.  Thanks for the suggestion!

-David


Carolyn Beeton <[email protected]> writes:

> David,
>
> Does producing multiple “books” and specifying \bookOutputSuffix work for 
> you?  My files have book blocks for pdfs and separate ones to produce named 
> midi files the way you mention below.
>
> \book {
>   \bookOutputSuffix "Bass"
>   \score {
>     \keepWithTag #'(bass) \unfoldRepeats \music
>     \midi { }
>   }
> }
>
>
> Carolyn
>
>> From: David Zelinsky <[email protected] <mailto:[email protected]>>
>> Subject: midi output filenames
>> Date: January 9, 2026 at 7:25:15 PM EST
>> To: [email protected] <mailto:[email protected]>
>> 
>> 
>> I have a file with multiple scores (inside multiple books and bookparts)
>> that produce midi files.  The output files are named like:
>> 
>>  foo.mid
>>  foo-1.midi
>>  foo-2.midi
>> 
>> where foo is the output filename as set for the book block.  Is there a
>> way to specify the filename suffix, as for a book block?  So the files
>> come out, say,
>> 
>>  foo-allegro.midi
>>  foo-andante.midi
>>  foo-presto.midi
>> 
>> I know I can set the midi-extension, so I could have output files
>> 
>>  foo.allegro.midi
>>  foo.andante.midi
>>  foo.presto.midi
>> 
>> But I don't like that dot.  Is there any other way?
>> 
>> Really what I'd like is to have one midi file for all the scores in one
>> book, so they can be named corresponding to the pdf's.  Is that
>> possible?
>> 
>> 
>> -- 
>> David

Reply via email to