X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2Fnon-music.itely;h=db77f49497e851f318e07d525286d910b8e6c1be;hb=1a290adc90530a61fb14a476b7d94bbd815df65a;hp=3f3b00c22f7fff7f7cf19bffeb6c0c5f163c6c1c;hpb=977b0bada6d7ca93cfdf28ff486ac4d3e3c3c6ef;p=lilypond.git diff --git a/Documentation/user/non-music.itely b/Documentation/user/non-music.itely index 3f3b00c22f..db77f49497 100644 --- a/Documentation/user/non-music.itely +++ b/Documentation/user/non-music.itely @@ -20,6 +20,7 @@ specific notation. @menu * Titles and headers:: * MIDI output:: +* other midi:: @end menu @@ -482,6 +483,7 @@ output. Players that are known to work include * Creating MIDI files:: * MIDI block:: * MIDI instrument names:: +* What goes into the MIDI? FIXME:: @end menu @node Creating MIDI files @@ -633,4 +635,59 @@ the list of MIDI instruments, the Grand Piano (@code{"acoustic grand"}) instrument is used. +@node What goes into the MIDI? FIXME +@subsection What goes into the MIDI? FIXME + +@menu +* Repeats and MIDI:: +@end menu + +@node Repeats and MIDI +@unnumberedsubsubsec Repeats and MIDI + +@cindex expanding repeats +@funindex \unfoldRepeats + +With a little bit of tweaking, all types of repeats can be present +in the MIDI output. This is achieved by applying the +@code{\unfoldRepeats} music function. This function changes all +repeats to unfold repeats. + +@lilypond[quote,verbatim,fragment,line-width=8.0\cm] +\unfoldRepeats { + \repeat tremolo 8 {c'32 e' } + \repeat percent 2 { c''8 d'' } + \repeat volta 2 {c'4 d' e' f'} + \alternative { + { g' a' a' g' } + {f' e' d' c' } + } +} +\bar "|." +@end lilypond + +When creating a score file using @code{\unfoldRepeats} for MIDI, +it is necessary to make two @code{\score} blocks: one for MIDI +(with unfolded repeats) and one for notation (with volta, tremolo, +and percent repeats). For example, + +@example +\score @{ + @var{..music..} + \layout @{ .. @} +@} +\score @{ + \unfoldRepeats @var{..music..} + \midi @{ .. @} +@} +@end example + + +@node other midi +@section other midi + +Micro tones are also exported to the MIDI file. + + +