You would have to structure your files and variables differently, for instance 
something like (in pseudocode):

— foo.ly
\include "bar.ily"
\include ”baz.ily”

\book {
  \bookpart {
    \header {
      title = "Bar One"
    }
    \score {
      \barMusic
      \layout{}
    } 
  }
  \bookpart {
    \header {
      title = "BaZ"
    }
    \score {
      \bazMusic
      \layout{}
    }
  }
}

\book {
  \bookOutputName "bar"
  \score {
    \barMusic
    \midi {}
  }
}

\book {
  \bookOutputName "baz"
  \score {
    \bazMusic
    \midi {}
  }
}

— bar.ily
barMusic = %music
— baz.ily
bazMusic = %music

%%%%%%%%%%%%%%%%

> 17 feb. 2022 kl. 11:43 skrev Mark Probert <[email protected]>:
> 
> You wrote:
>>> It’s not that simple, since in the example all the scores are in the 
>>> same book.
>> 
>> It is that simple.
>> Put the score in one book and the midis separate books and done.
>> 
> My understanding is a \midi{} block is contained within a \score{} 
> block.
> 
> The structure I have is
> 
> \book foo
> \bookpart bar
>  \score
>   \midi => foo.mid
> \bookpart baz
>  \score
>   \midi => foo-1.mid
> 
> How do I separate the \midi from the \score putting the score into a 
> \book and the \midi into separate books?
> 
> Thanks,
> ..m.


Reply via email to