Re: MIDI and Volta repeats in parallel music

2014-11-22 Thread Michael Ellis
On Wed, Nov 19, 2014 at 10:54 AM, Michael Ellis michael.f.el...@gmail.com
wrote:



 ​
 I find it advantageous when working with multiple voices to keep
 'structural' information (meter, tempo, etc.) in a separate voice that gets
 combined with the other voices as illustrated in the image and code below.
 In this example, the pdf layout is correct and the MIDI output honors the
 tempo change, but doesn't repeat the second measure despite using a
 separate score block with \unfoldRepeats.


After some further research, it appears that there is no general solution
(other than copying the volte into each voice) so I'm dropping the question.

I have another question that's somewhat related.  If my example  contained
notes above the middle line, you would notice that the stem directions
would still be up because I designated \music as \voiceOne and \structure
as \VoiceTwo.


 music = \relative c' { c4 d e | f g a b  }

 structure = {
 \time 3/4 \tempo 4=60 s2.
 \time 4/4 \tempo 4=120 \repeat volta 2 { s1 }
  }

 \score {
   \new Staff = Music {
   
 \new Voice = Music { \voiceOne \music }
 \new Voice = Structure { \voiceTwo \structure }
   
   }
 }


Is there a way to tell LilyPond to apply the usual single voice rules for
stem direction to \music?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: MIDI and Volta repeats in parallel music

2014-11-22 Thread Urs Liska


Am 22.11.2014 17:12, schrieb Michael Ellis:
I have another question that's somewhat related.  If my example 
 contained notes above the middle line, you would notice that the stem 
directions would still be up because I designated \music as \voiceOne 
and \structure as \VoiceTwo.


music = \relative c' { c4 d e | f g a b  }

structure = {
\time 3/4 \tempo 4=60 s2.
\time 4/4 \tempo 4=120 \repeat volta 2 { s1 }
 }

\score {
  \new Staff = Music {
  
\new Voice = Music { \voiceOne \music }
\new Voice = Structure { \voiceTwo \structure }
  
  }
}


Is there a way to tell LilyPond to apply the usual single voice rules 
for stem direction to \music?





Well, in this case you don't have any conflicting music in the two Voice 
contexts (because the \structure isn't a printed music voice).

So you can simply leave out the \voiceXXX commands and you're ready.

using \voiceOne and \voiceTwo is not mandatory at all to manage two 
voices. These commands only give LilyPond the necessary clues how to 
deal with potential collision events and how to typeset the voices (e.g. 
the stem direction you noticed, but also which voice would move to which 
direction in case of collisions etc.).


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


Re: MIDI and Volta repeats in parallel music

2014-11-22 Thread Michael Ellis
On Sat, Nov 22, 2014 at 11:16 AM, Urs Liska u...@openlilylib.org wrote:



 Well, in this case you don't have any conflicting music in the two Voice
 contexts (because the \structure isn't a printed music voice).
 So you can simply leave out the \voiceXXX commands and you're ready.

 using \voiceOne and \voiceTwo is not mandatory at all to manage two
 voices. These commands only give LilyPond the necessary clues how to deal
 with potential collision events and how to typeset the voices (e.g. the
 stem direction you noticed, but also which voice would move to which
 direction in case of collisions etc.).


Works beautifully. Thanks, Urs!

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


Re: Nalesnik's Roman number analysis code

2014-11-22 Thread Ivan Kuznetsov
Thanks !

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