lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Naming midi files


From: David Wright
Subject: Re: Naming midi files
Date: Thu, 17 Feb 2022 13:44:47 -0600
User-agent: Mutt/1.10.1 (2018-07-13)

On Thu 17 Feb 2022 at 21:43:09 (+1100), Mark Probert wrote:
> [ ] 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?

To some extent, it depends what you're using the midis for.
My two uses are proof-reading by ear, and teach-tapes.

I always set the score and midis separately, placing all the
notes into variables. Thus:

\header { …
miditempo = { …
\paper { …
global = { …
soprano = \relative { …
alto = \relative { …
tenor = \relative { …
bass = \relative { …
\include "Midi-satb.ily" % midis made here
sopranotext = \lyricmode { …
altotext = \lyricmode { …
tenortext = \lyricmode { …
basstext = \lyricmode { …
\score { % typesettng here
  \new ChoirStaff <<
    \new Staff <<
      \clef treble \global
      \new Voice { \soprano }
      \addlyrics { \sopranotext }
    >>
 …
  >>
  \layout { }
}

I've attached Midi-sab.ily (as it's smaller), and I have versions
for any arrangement I've set, from "cs" (click and single voice)
to "satbsatbp" (skeleton piano accompaniment). They call in turn
trivial files like:

Midi-hi-soprano.ily:
\new Staff { \midihighlight { \soprano } }

Midi-back-alto.ily:
\new Staff { \midibacking { \alto } }

and the definitions are in Midi-bits.ily (attached).

In a multi-section work, the midi filenames don't collate well,
so my lilypond shell script calls _Midirename_ to read through
the run's log file and renumber all the midi files for each
section with a 2-digit sequence number (bash function).

Typical teach-tape for one voice of an opening section attached.

Cheers,
David.

Attachment: Midi-sab.ily
Description: Text document

Attachment: Midi-bits.ily
Description: Text document

Attachment: _Midirename_
Description: Text document

Attachment: requiem6-alto-00.midi
Description: MIDI audio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]