lilypond-user
[Top][All Lists]
Advanced

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

Re: Triplets and Diddles


From: Cameron Horsburgh
Subject: Re: Triplets and Diddles
Date: Tue, 14 Nov 2006 18:29:12 +1100
User-agent: Mutt/1.5.13 (2006-08-11)

On Mon, Nov 13, 2006 at 07:28:02PM -0800, X X wrote:
> 
>    Thanks, I kind of get this now, so far I've only written out one of
>    our Cadences out, and it's only a line or so long. So, I have some
>    work cut out for me. Oh, also I keep getting an error with this code:
>    \header{
>      title = "Tipsy (Snare)"
>    }
>    \relative{
>     << \new Staff {c' c-^ r8 c8 c4:32~ c c-^ r8 c8 c4:32~ c c-^ r8 c8
>    c4:32~ c16-^ c c c-^ c c c-^ c c c-^ c c c-^ c-^ c-^ c-^ c-^}
>    \new Staff { c c c c-^ c c c c-^ c c c c16-^ c c c-^ c c c-^ c c c-^ c
>    c c-^ c-^ c-^ c- } >>

The problem here is the c- doesn't have an articulation. Add a ^ or remove the 
hyphen, add the final } and it should work (see below). 


>    And I'm having trouble with this one as well:
>    \header{
>      title = "Gator Snare: First Line, Bass: Second Line, Cymbal: Third
>    Line"
>    }
>    \relative{
>      \repeat volta 2 << \new Staff  {c'16 c c c c-^ c c c c c c c c-^ c c
>    c c c c c c-^ c c c c c c c c-^ c c-^ c c c c c c-^ c c c c c c c c-^
>    c c c c4 r4 r r }
>    \new Staff {<f, a c e> r8 <f a c e>8 <f a c e> <f a c e>4 r4 <f a c
>    e>8 <f a c e> \times 2/3 {<f a c e> <f a c e> <f a c e>} <f a c e>8 <f
>    a c e> r8 <f a c e>8 <f a c e> \times 2/3 {<f a c e> <f a c e> <f a c
>    e> <f a c e> <f a c e> <f a c e>} <f a c e>8 <f a c e> <f a c e> r4 r
>    r }
>    \new Staff {r d r d r d r d8 d r4 d r d d r r r }  >>
>    }
>    The repeats don't go in the right places and I can't make an alternate
>    ending (or any ending, I tried \alternate {})
>    Thanks in advance.

Ah. Try putting the repeat inside each Staff context. When you add alternate 
endings LilyPond should automatically do The Right Thing at the score level. 
You also have problems here with the beats in each bar --- something that is 
easier to spot once it compiles!

You also have a few stylistic things you could do to make bughunting easier 
(and these are all in the manual, but I'll let you find them.).

First, add a /version statement. It makes upgrading easier, and it stops the 
annoying warning.

Second, add bar checks. This is incredibly impoirtant if you're doing this sort 
of music with complicated rhythms.

Third, only put one bar to a line. It makes finding things easier later on.

Because I'm a *really* nice guy (no, really! I am!) I've reset your two pieces 
for you taking these notes into account so you can see how it probably should 
be done. I've also added a few touches like adding instrument names to the 
staff. I've had to change some of the rhythms to fit the bars --- I've applied 
no sense of musical sensitivity and just forced 'em where needed!

(Watch out -- your mail client may mistake the >> characters for something 
else.)

%%%%%%%%%%%%%%First example

\version "2.10.0"
\header{
  title = "Tipsy (Snare)"
}
\relative{
  << 
    \new Staff {
      c' c-^ r8 c8 c4:32~ |
      c c-^ r8 c8 c4:32~ |
      c c-^ r8 c8 c4:32~|
      c16-^ c c c-^ c c c-^ c c c-^ c c c-^ c-^ c-^ c-^|
      c-^
    }
    \new Staff {
      c4 c c c-^|
      c c c c-^|
      c c c c16-^ c c c-^||
      c c c-^ c c c-^ c
      c c-^ c-^ c-^ c-^ 
    } 
  >>
}
%%%%%%%%%%%%%%End first example

%%%%%%%%%%%%%%Second example
\version "2.10.0"
\header{
     title = "Gator Snare: First Line, Bass: Second Line, Cymbal: Third Line"
   }

   \relative{
     \repeat volta 2 << 
       \new Staff  {
         \set Staff.instrumentName = "Gator Snare"
         \repeat volta 2{
           c'16 c c c c-^ c c c c c c c c-^ c c c |
           c c c c c-^ c c c c c c c c-^ c c-^ c |
           c c c c c-^ c c c c c c c c-^ c c c|
           c4 r4 r r 
         }
       }
       \new Staff {
         \set Staff.instrumentName = "Bass"
         \repeat volta 2
         {
           <f, a c e>4 r8 <f a c e>8 <f a c e>4 <f a c e>4|
           r <f a c e>8 <f a c e> \times 2/3 {<f a c e> <f a c e> <f a c e>} <f 
a c e>8 <f a c e>|
           r8 <f a c e>8 <f a c e> \times 2/3 {<f a c e> <f a c e> <f a c e> <f 
a c e> <f a c e> <f a c e>} <f a c e>8 |
           <f a c e> <f a c e> r4 r r 
         }
       }
       \new Staff {
         \set Staff.instrumentName = "Cymbal"
         \repeat volta 2{
           r d r d|
           r d r d8 d|
           r4 d r d |
           d r r r| 
         }  
       }
     >>
   }


%%%%%%%%%%%%%End second example

-- 

=============================================
Cameron Horsburgh

=============================================





reply via email to

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