[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unfoldRepeats for midi - a little hack.
From: |
Gilles THIBAULT |
Subject: |
unfoldRepeats for midi - a little hack. |
Date: |
Mon, 6 Jul 2009 17:18:01 +0200 |
Here is a possible solution for the problem you get when you put all your
\repeat volta structure in a separate variable (often named global) and
then you want unfold all your music (for MIDI output for
example).
.
The "globalizeMusic.ly" (see joined files ) proposes a function
\globalizeMusic that can be used like this :
%%
\globalizeMusic \global
\new StaffGroup
{<<
\new Staff \musicA
\new Staff \musicB
>>}
%%
it will have the same effects than
%%
\new StaffGroup
{<<
\new Staff <<\global \musicA>>
\new Staff <<global \musicB>>
>>}
%%
BUT all the \repeat volta .. will be copied inside each Staff
so that you 'll get the right music when you call \unfoldRepeats.
Hope it will be usefull.
Gilles
NB
"globalizeMusic.ly" uses "extractMusic.ly" described here :
http://lsr.dsi.unimi.it/LSR/Item?id=542
extractMusic.ly
Description: Text Data
globalizeMusic.ly
Description: Text Data
Test.ly
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unfoldRepeats for midi - a little hack.,
Gilles THIBAULT <=