lilypond-user
[Top][All Lists]
Advanced

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

Re: bar line


From: Hugh Myers
Subject: Re: bar line
Date: Sun, 22 Nov 2009 20:30:47 -0700

Here is the 'close--- but not quite ready for cigar time' code that
I've cobbled together:

\version "2.13.7"
%
% malaguena.ly -- q&d testbed for mixed notation score and tab.
%
\header {
  title = "Malaguena"
  subtitle = "none"
  composer = "Music by Unknown"
}

eMinor = < e   b  gis  e b e, >
firstMono = { \eMinor \eMinor \eMinor }
firstPoly = {
  << { b c d } \\ { < gis, d e, >2. } >>
  << { d'4 c b } \\ { e,,2. } >>
  << { c''4 a b} \\ { a,2. } >>
  << { \acciaccatura d'8 c4 b a } \\ { a,2. } >>
  << { b'4 a c } \\ { g,2. } >>
  << { a'4 g f } \\ { f,2. } >>
}

firstPolyRepeat = {
  << { r4 \times 2/3 {gis'8 b e } e,4 \times 2/3 {gis8 b e} e,2 }\\ {e,2.~e} >>
}
secondMono = {
  { e'8 [e'] gis, [e'] b [e] }
  { e,8 [e'] gis, [e'] b [e] }
  { a,8 [e'] c [e] b [e] }
  { a,8 [e'] g, [e'] f, [e'] }
}
thirdMono = {
  { e,8 [e'] gis, [e'] b [e] }
}

{
\time 3/4
\set Score.barNumberVisibility = #all-bar-numbers-visible
\bar ""
<<
  \new Staff \relative c'' {
    \firstMono
    \repeat volta 2 {
     \firstPoly
    }
    \alternative {
      { \firstPolyRepeat }
      { \secondMono }
    }
    \thirdMono
  }
  \new TabStaff \relative c' {
    \firstMono
    \repeat volta 2 {
     \firstPoly
    }
    \alternative {
      { \firstPolyRepeat }
      { \secondMono }
    }
    \thirdMono
  }
>>
}

If you run this, you will see that the bar between the alternates is
single sided where it should be double sided. Likewise there is no bar
concluding the second alternative. Also a nit-pick, but the volta bars
are two long, should be one bar, not 'N' bars.

--hsm

On Sun, Nov 22, 2009 at 8:24 PM, Hugh Myers <address@hidden> wrote:
> What I have/want is a phrase repeated twice with two alternate
> endings, then continuing on with the main line. Written out entire it
> would be phrase, ending A, phrase, ending B, main line. The part that
> repeats is the phrase, not the alternates.
>
> --hsm
>
> On Sun, Nov 22, 2009 at 8:06 PM, Brett Duncan <address@hidden> wrote:
>> Hugh Myers wrote:
>>>
>>> Brett,
>>>
>>> Thanks for the hint. The URL is where I got the notion for what I
>>> wrote in the first place. In the source, firstPoly repeats, once with
>>> firstPolyRepeat as an ending and once with secondMono as an ending.
>>> That is what I want, but as you say not what I asked for. None of the
>>> examples I've seen thus far(hardly exhaustive) match what I need, so
>>> what I wrote was a guess based on what I saw. More hints welcome at
>>> this point ;)
>>>
>>
>> Well, it's hard to know exactly what to suggest since I'm not sure what you
>> are after. The snippets and the part about Manual reports on that particular
>> webpage don't help?
>>
>> Can you can describe in more detail what you want to achieve?
>>
>> Something like this?
>>
>>
>>
>>
>




reply via email to

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