Re: Repeat in Score and in Midi

2013-01-09 Thread EmilLask
Yes, but if I use  \repeat ... and  \unfoldRepeats

it repeats one measure only.

How can I repeat more than one measure in parallel mode?


Emil



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-in-Score-and-in-Midi-tp139046p139107.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat in Score and in Midi

2013-01-09 Thread curtmcd
Hi,

I do it by using one \score for the layout and another \score for the MIDI. 
For example, see below.

Regards,
-Curt

mainRh = { [music...] }
mainLh = { [music...] }
codaRh = { [music...] }
codaLh = { [music...] }

\score {
  \new PianoStaff 
\new Staff = rh { \repeat volta 2 \mainRh\codaRh }
\new Staff = lh { \repeat volta 2 \mainLh\codaLh }
  
  \layout { }
}

\score {
  
\new Staff = rh { \repeat unfold 2 \mainRh\codaRh }
\new Staff = lh { \repeat unfold 2 \mainLh\codaLh }
  
  \midi { }
}




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-in-Score-and-in-Midi-tp139046p139109.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat in Score and in Midi

2013-01-09 Thread David Kastrup
EmilLask laske...@gmail.com writes:

 Yes, but if I use  \repeat ... and  \unfoldRepeats

 it repeats one measure only.

 How can I repeat more than one measure in parallel mode?

\unfoldRepeats is a command working on the immediately following piece
of music.  If you write

\unfoldRepeats x y z

then only x will get unfolded repeats.  Use { } or similar to get more
than one music expression unfolded.

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat in Score and in Midi

2013-01-09 Thread EmilLask
Thank everyone  very much and thank Hwaen Ch'uqi particularly for the
suggestions and the examples.

All more efficient or elegant solutions will be welcome.

Ex.

global = {
 \key c \major
 \time 4/4
}

\parallelMusic #'(voiceA voiceB) {
 
  c'' c'' c'' c''  | %voiceA measure 1
  c' c' c' c' | %voiceB measure 1

  g' g' g' g'| %voiceA measure 2
  g g g g   | %voiceB measure 2
  }

\parallelMusic #'(voiceC voiceD) {

 c' c' c' c'   | %voiceC measure 3
 c c c c  | %voiceD measure 3

 g' g' g' g'  | %voiceC measure 4
 g g g g | %voiceD measure 4
 
 d' d' d' d'  | %voiceC measure 5
 d d d d | %voiceD measure 5

e' e' e' e'   | %voiceC measure 6
e e e e  | %voiceD measure 6
   
}

\parallelMusic #'(voiceE voiceF) {

  c'' c'' c'' c''  | %voiceE measure 1
  c' c' c' c' | %voiceF measure 1

  g' g' g' g'| %voiceE measure 2
  g g g g   | %voiceF measure 2
   
}

\score{
 \new StaffGroup
   \new Staff{
 \global
 %\unfoldRepeats{   % Comment \unfoldRepeats for 
Score and Uncomment
for Midi
 
 \repeat volta 2{
 \voiceA \\ \voiceB
}
% \alternative {% In case of 
\alternative for \repeat
% { \voiceC \\ \voiceD}
% {\voiceA \\ \voiceB}
%   }
   \repeat volta 2{
   \voiceC \\ \voiceD
   }
 %} % Comment \unfoldRepeats for 
Score and Uncomment for Midi

 \voiceE \\ \voiceF

   }
   
\layout{}
 \midi{}
}




Emil



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-in-Score-and-in-Midi-tp139046p139137.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat in Score and in Midi

2013-01-09 Thread EmilLask
EC



Ex.

global = {
\key c \major
\time 4/4
}

\parallelMusic #'(voiceA voiceB) {

 c'' c'' c'' c''  | %voiceA measure 1
 c' c' c' c' | %voiceB measure 1

 g' g' g' g'| %voiceA measure 2
 g g g g   | %voiceB measure 2
 }

\parallelMusic #'(voiceC voiceD) {

c' c' c' c'   | %voiceC measure 3
c c c c  | %voiceD measure 3

g' g' g' g'  | %voiceC measure 4
g g g g | %voiceD measure 4

d' d' d' d'  | %voiceC measure 5
d d d d | %voiceD measure 5

   e' e' e' e'   | %voiceC measure 6
   e e e e  | %voiceD measure 6

}

\parallelMusic #'(voiceE voiceF) {

 c'' c'' c'' c''  | %voiceE measure 7
 c' c' c' c' | %voiceF measure 7

 g' g' g' g'| %voiceE measure 8
 g g g g   | %voiceF measure 8

}

\score{
\new StaffGroup
  \new Staff{
\global
%\unfoldRepeats{% Comment \unfoldRepeats for 
Score and Uncomment
for Midi
 
\repeat volta 2{
\voiceA \\ \voiceB
}
% \alternative {% In case of 
\alternative for \repeat
% { \voiceC \\ \voiceD}
% {\voiceA \\ \voiceB}
%   }
  \repeat volta 2{
  \voiceC \\ \voiceD
  }
%}  % Comment \unfoldRepeats for 
Score and Uncomment for Midi

\voiceE \\ \voiceF

  }

\layout{}
\midi{}
}




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-in-Score-and-in-Midi-tp139046p139138.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat in Score and in Midi

2013-01-08 Thread David Kastrup
EmilLask laske...@gmail.com writes:

 Hi,

 If I introduce a repeat (\repeat volta 2  or \bar :|) the Score is
 perfect, but the midi doesn't repeat the measures.

 Is it possible to do it?

URL:http://lilypond.org/doc/v2.16/Documentation/notation/repeats-in-midi

-- 
David Kastrup


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat in Score and in Midi

2013-01-08 Thread EmilLask
Thank you.

ex.

\parallelMusic #'(voiceA voiceB) {
   \key b \minor
   \time 4/4

   \voiceOne 

\unfoldRepeats { 
 \repeat volta 2 { 
 b4. d16 e fis8 d cis b} |
 \repeat volta 2 {
 b,4 fis' d e} |
}
 ais8 g' fis e d cis16 d e8 cis |
 fis4 ais fis cis |

   fis2 ~ fis8 e16 d cis8 b |
   d4 cis b e |

   ais2 r8 cis16 b ais b cis8 | 
   fis4 fis, fis' e | 

   r8 b16 cis d e fis8 fis b, fis' b, |
   d4 fis d b |

   r8 eis16 fis gis a b8 b16 cis d8 cis b  |
   cis4 eis gis eis |

   a8 gis16 a b a gis8 gis fis4 eis8 |
   fis4 d b cis |

   fis4 r2. |
   fis8 cis16 b ais b cis8 fis,2   | 
 
   \bar :|:
   
   fis4. e16 d cis8 b ais b |
   fis4 d' e fis |
   
   g'4. fis16 e cis8 d e g |
   bes,4 cis e cis | 
   
   fis8 g16 fis e8 fis16 e d cis b4 ais8 |
   d4 e fis fis, |
   
   b4 r2. |
   b8 fis'16 e dis e fis8 b,2 |
   
   b4. d16 e fis8 d cis b |
   b4 fis' d e |

   ais8 g' fis e d d'16 cis b8 cis |
   fis4 ais b, d |

   d8 g16 fis e d cis8 cis b4 ais8 | 
   g4 e, fis' fis, | 
   
   b4 r2. |
   b8 g'16 fis e d e fis b,2 |
   
   \bar :| 
}

This works for only one measure.

If I try to repeat more than one doesn't work.
Where am I wrong?

Emil



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Repeat-in-Score-and-in-Midi-tp139046p139049.html
Sent from the User mailing list archive at Nabble.com.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Repeat in Score and in Midi

2013-01-08 Thread Marc Hohl

Am 08.01.2013 17:02, schrieb EmilLask:

Thank you.

ex.

\parallelMusic #'(voiceA voiceB) {
[...]
  
\bar :|:

\bar ... tells LilyPond to draw this specific bar line *without* being 
interpreted

musically. To make MIDI work as expected, you'll have to use \repeat ... and
\unfoldRepeats, as David pointed out earlier.

HTH,

Marc


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user