lilypond-user
[Top][All Lists]
Advanced

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

Re: Two staves one stops with repeat the other continues


From: Jay Hamilton
Subject: Re: Two staves one stops with repeat the other continues
Date: Wed, 14 Feb 2007 14:31:33 -0800

Mats- Yes your new example works fine.  I'm guessing that having two different 
endings on the second line is just not possible and that is why you left it the 
'older' way which is a pity as the version with endings is a bit clearer for my 
students.
Anyway I am going to sit down and examine all your examples and learn what each 
one is and does thank you for the education.
Jay

Jay Hamilton
www.soundand.com
206-328-7694

--- address@hidden wrote:

From: Mats Bengtsson <address@hidden>
To:  address@hidden
CC:  address@hidden
Subject: Re: Two staves one stops with repeat the other continues
Date: Wed, 14 Feb 2007 22:06:57 +0100

I didn't use \relative mode in the simple example I sent
earlier. Here's a version of your code that hopefully
works better.

\version "2.8.4"
\header {
  title = "Little Chaconne"
  composer = "Jay Hamilton"
  copyright = "CC lic 2.5 some rights reserved Jay Hamilton 2007"
  tagline = "see http://creativecommons.org/licenses/by-nd/2.5/";


}

#(set-global-staff-size 30)

\layout{
  \context{
    \Score
    \remove Repeat_acknowledge_engraver
    \remove Default_bar_line_engraver
   }
  \context{
    \Staff
    \consists Repeat_acknowledge_engraver
    \consists Default_bar_line_engraver
   }
}

cello = \relative c'
{
\set Staff.instrument = "cello"
\clef bass
\key c \major
\time 4/4
\override Staff.TimeSignature #' style = #' ()
\repeat volta 3 {g,4 d' a c b d g,e'\break d b g a }
   \alternative{{c d a2}{c4 d g,2}} \bar "|."
}

violin = \relative c'
{
\set Staff.instrument = "violin"
\clef treble
\key c \major
\time 4/4
\override Staff.TimeSignature #' style = #' ()
\repeat volta 2 {g'8 a b4 a8 b c4
  b8 c d4 g8 fis e4
  d8 c b4 c8 b a b\coda
  c e d2.
  g8 fis e4 e8 fis g fis
  e8 d4. b8 b c d\break
  g fis g a g e a,4^\markup {\italic "da capo"} }
  c8\coda b a4 g2 \bar "|." 
}

\score{
<<
  \new Staff \cello
  \new Staff \violin
 >>
\layout{}
\midi { \tempo 4=60 }
}

   /Mats

Jay Hamilton wrote:

>Here's the file, first off I don't get why the octaves are all messed up but 
>mostly the endings for the second line are missing.  Let me know what you 
>think is the problem.
>Thanks
>Jay
>
>\layout{
>  \context{
>    \Score
>    \remove Repeat_acknowledge_engraver
>    \remove Default_bar_line_engraver
>   }
>  \context{
>    \Staff
>    \consists Repeat_acknowledge_engraver
>    \consists Default_bar_line_engraver
>   }
>}
>
>\score{
><<
>#(set-global-staff-size 30)
>  \new Staff {\clef bass
>  \time 4/4
>  \override Staff.TimeSignature #' style = #' ()
>  \repeat volta 3 {g, d' a c b d g, e' d b g a} \alternative{{c d a2}{c4 d 
> g,2}} }
>  \new Staff { \clef treble
>  \time 4/4
>  \override Staff.TimeSignature #' style = #' ()
>  \repeat volta 2 {g'8 a b4 a8 b c4| b8 c d4 g8 fis e4 |d8 c b4 c8 b a b}
>  \alternative{{c8 e d2.| g8 fis e4 e8 fis g fis | e d4. b8 b c d|
>   g8 fis g c g e a,4}{c8 b a4 g2}} }
> >>
>}
>
>The following is what I got to work and even that isn't as nice/clear as what 
>I think I've coded above.  But at least you can see the notes in the right 
>octaves.
>
>\version "2.8.4"
>\header {
>  title = "Little Chaconne"
>  composer = "Jay Hamilton"
>  copyright = "CC lic 2.5 some rights reserved Jay Hamilton 2007"
>  tagline = "see http://creativecommons.org/licenses/by-nd/2.5/";
>
>
>}
>melody = \relative c'
>{
>\set Staff.instrument = "cello"
>\clef bass
>\key c \major
>\time 4/4
>#(set-global-staff-size 35)
>\override Staff.TimeSignature #' style = #' ()
>\repeat volta 3 {g,4 d' a c b d g,e'\break d b g a }
>   \alternative{{c d a2}{c4 d g,2}} \bar "|." }
>
>}
>
>\score {
>\new Staff \melody
>\layout { }
>\midi { \tempo 4=60 }
>}
>melody = \relative c'
>{
>\set Staff.instrument = "violin"
>\clef treble
>\key c \major
>\time 4/4
>\override Staff.TimeSignature #' style = #' ()
>g'8 a b4 a8 b c4
>  b8 c d4 g8 fis e4
>  d8 c b4 c8 b a b\coda
>  c e d2.
>  g8 fis e4 e8 fis g fis
>  e8 d4. b8 b c d\break
>  g fis g a g e a,4^\markup {\italic "da capo"} \bar ":|"
>  c8\coda b a4 g2 \bar "|."  }
>
>
>
>}
>
>\score {
>\new Staff \melody
>\layout { }
>\midi { \tempo 4=60 }
>}
>
>
>Jay Hamilton
>www.soundand.com
>206-328-7694
>
>--- address@hidden wrote:
>
>From: Mats Bengtsson <address@hidden>
>To:  address@hidden
>CC:  address@hidden
>Subject: Re: Two staves one stops with repeat the other continues
>Date: Mon, 12 Feb 2007 09:35:05 +0100
>
>It should certainly work with version 2.8 as well. If you don't want to 
>share
>your full example over the public email list, you can send me a copy of the
>file that failed, and I could try to take a quick look.
>
>   /Mats
>
>Jay Hamilton wrote:
>  
>
>>Mats-
>>Yeah I thought of that after I sent the message.  So I tried it and fiddled 
>>with the input.  Your example worked but once I filled in the actual data it 
>>promptly got all wonky so it won't work as a two lined score- the defaults, I 
>>suspect are just too many to override.   It also seems that if I try to give 
>>the longer-2nd- line a volta 2 it the program rejects it as not matching the 
>>first line and then attaches the alternative measure to the score as a 3rd 
>>staff.  Very strange.
>>
>>So I'm going to try your second suggestion of two scores on one page which I 
>>didn't think was possible and I've not seen (but I suspect is somewhere) an 
>>example of to get it right.
>>
>>Thanks-
>>Jay
>>
>>Jay Hamilton
>>www.soundand.com
>>206-328-7694
>>
>>--- address@hidden wrote:
>>
>>From: Mats Bengtsson <address@hidden>
>>To: address@hidden
>>Cc: address@hidden
>>Subject: Re: Two staves one stops with repeat the other continues
>>Date: Sat, 10 Feb 2007 21:27:53 +0100
>>
>>Why not try it? I would be very surprised if it didn't work
>>in version 2.8.4. See the section on Changing Defaults to learn more 
>>about this type of settings.
>>
>>   /Mats
>>
>>Quoting Jay Hamilton <address@hidden>:
>>
>>  
>>    
>>
>>>Mats- You don't have to see the point of this- that's ok, however 
>>>your layout below doesn't look like any template allowed/workable for 
>>>2.8.4
>>>So can this work in the older version?
>>>Jay
>>>
>>>Jay Hamilton
>>>www.soundand.com
>>>206-328-7694
>>>
>>>--- address@hidden wrote:
>>>
>>>From: Mats Bengtsson <address@hidden>
>>>To:  address@hidden
>>>CC:  address@hidden
>>>Subject: Re: Two staves one stops with repeat the other continues
>>>Date: Thu, 08 Feb 2007 14:11:05 +0100
>>>
>>>You mean something like
>>>\layout{
>>> \context{
>>>   \Score
>>>   \remove Repeat_acknowledge_engraver
>>>   \remove Default_bar_line_engraver
>>>  }
>>> \context{
>>>   \Staff
>>>   \consists Repeat_acknowledge_engraver
>>>   \consists Default_bar_line_engraver
>>>  }
>>>}
>>>
>>>\score{
>>><<
>>> \new Staff { \repeat volta 3 {c1 c c } \alternative{{c}{c}} }
>>> \new Staff { \repeat volta 2 {e1 e e e e e e} \mark "Fine" e }
>>>    
>>>}
>>>
>>>
>>>
>>>If the score spans several lines, I honestly don't see the point of
>>>printing this
>>>type of score, since the line break will happen at different places in the
>>>two parts.
>>>
>>>  /Mats
>>>    
>>>      
>>>
>>
>>
>>  
>>    
>>
>
>  
>


-- 
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================







reply via email to

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