bug-lilypond
[Top][All Lists]
Advanced

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

Input file generates very short (or missing) MIDI output


From: Ian Chard
Subject: Input file generates very short (or missing) MIDI output
Date: Mon, 08 Aug 2005 16:38:34 +0100
User-agent: Mozilla Thunderbird 1.0.5 (X11/20050711)

Hi,

I'm using lilypond 2.7.4, and my (first!) input file doesn't seem to
generate valid MIDI output.  I'm more than happy to admit it's my fault,
but I can't see what I'm doing wrong.

If I include a \midi directive on its own (i.e. no \layout), then I get

GNU LilyPond 2.7.4
Processing `jump.ly'
Parsing...
Interpreting music...

with no output at all.  If I have both \midi and \layout, a 294 byte
MIDI file is written that isn't playable.

I've included the full input file below (I couldn't figure out which bit
makes it break).  Any help gratefully received!

Thanks
- Ian

--CUT HERE--
\version "2.7.4"

mainRight = \relative c'' { <g b d>8 r4 <g c e>8 r4 <f a c>8 r4 <f a c>8 r <g b d> r <g b d>~ <g b d>4 <g c e>8 r4 <f a c>8 r <c f a>8~ <c f a>~ <c f g>4~ <c d g>8~ <c d g>2 }

differentRight = \relative c'' { r4 <g b d>8 r4 <g c e>8 r4 | <f a c>8 r4 <f a c>8 r <g b d>4. | r4 <f' a c>8 r4 <c e g>8 r <c, f a>8~ <c f a>~ <c f g>4~ <c d g>8~ <c d g>2 | }

lastRight = \relative c'' { r4 <f a c>8 r4 <f a c>8 r4 | <f a c>8 r4 <f a c>8 r4 <c e g>4~ | <c e g>8 r <f, a c>8 r4 <c f a>8 r <c f a>~ | <c f a>~ <c f g>4~ <c d g>8~ <c d g>2 }

bridgeRight = \relative c''' { r4^"Bridge" <e g b>4. <e a c> | <e g b> <e a c> c4 |
                              r4 <f a>4. <e g>4 <d f>8~ | <d f>1 |
                              <f a>2 <e g>4. <d f>8~ | <d f>1 |
<f a>2 <e g>4. <g b>8~ | << { <g b>1~ | <g b> } \\ { r2. r8 <d, g> | r8 <d g> r <d g>8~ <d g>2 } >> }

bridgeLeft = \relative c { a8 r4 g8 r4 a8 r8 | r8 g r8 a r g r4 | f8 r f e e' r e d,~ | d2. r4 | f8 r f e e' r e d,~ | d2. r4 | f2 e4. g8~ | g8 g g g g g g g | <g g'> <g g'> <g g'> <g g'> <g g'> <g g'> <g g'> <g g'> | }

middleRight = \relative c'' { bes8^"Middle 8" des' bes ges, ges' bes aes aes,~ |
                              aes ees' aes des,, des' ges ees des |
                              bes des' bes ges, ges' bes aes aes,~ |
                              aes ees' aes des,, des' ges ees des |
                              r1 | r1 |
                              bes8 des' bes ges, ges' bes aes aes,~ |
                              aes ees' aes des,, des' ges ees des | }

middleLeft = \relative c { r1 | r1 |
                           r1 | r1 |
                           bes8 des' bes ges, ges' bes aes aes,~ |
                           aes ees' aes des,, des' ges ees des |
                           r1 | r1 | }

introLeft = { c1~ c~ c~ c8 f4 g,2 g,8 | c g, c2.~ c1~ c~ c8 f,4 g,2 g,8 | }

mainLeft = { <c c'>8 <c c'> <c c'> <c c'> <c c'> <c c'> <c c'> <c c'> |
             <c c'>8 <c c'> <c c'> <c c'> <c c'> <c c'> <c c'> <c c'> |
             <c c'>8 <c c'> <c c'> <c c'> <c c'> <c c'> <c c'> <c c'> |
             <c c'>8 <f, f>4       <g, g>8 <g, g> <g, g> <g, g> <g, g> | }

soloRight = \relative c'' { r8^"Keyboard solo" d16 b g d' b g e' c g e' c g d' b | g d' b g d' b g c a f c' a f c' a f | r8 d'16 b g d' b g e' c g e' c g d' b | g d' b g d' b g c a f c' a f c' a f | r8 b16 g d b' g d c' a f d' b g c a | f d' b g c a f c' a f b g d b' g d | r8 a'16 f c a' f c b' g d a' f c b' g d c' a f d' b g c a f d' b g c a f | \set tupletSpannerDuration = #(ly:make-moment 1 8) r8 \times 2/3 { g16 c d g d c g c d g d c g c d g d c g c d } | \times 2/3 { g16 d c g c d g d c g c d g d c g c d g d c g c d } | r8 \times 2/3 { g,16 c d g d c g c d g d c g c d g d c g c d } | \times 2/3 { g16 d c g c d g d c g c d g d c g c d g d c g c d } | r8 \times 2/3 { g,16 c d g d c g c d g d c g c d g d c g c d } |
                            g16 d c g c d g d c g c d g d c g |
\set tupletSpannerDuration = #(ly:make-moment 1 2)
                            \times 2/3 { r4 c d e c d } |
                            \times 2/3 { e g c, e c d } |
<< { c1\fermata } \\ { \times 2/3 { d4 e r } } >> | }

soloLeft = \relative c { c1~ | c | c~ | c | f~ | f | g~ | g | bes~ | bes | a~ | a | aes~ | aes | g~ | g | c~ | }

melodyRight = {
        \clef treble
        \key c \major
        \time 4/4

        r4^"Solo" \mainRight
        r4 \mainRight
        r4^"Tutti" \mainRight
        \lastRight

        r4^"Verse 1" \mainRight
        r4 \mainRight
        r4 \mainRight
        r4 \mainRight

        \bridgeRight

        r4^"Verse 2" \mainRight
        \differentRight
        r4 \mainRight
        r4 \mainRight

        \bridgeRight

        r4^"Verse 3" \mainRight
        r4 \mainRight
        r4 \mainRight

        \key des \major
        \middleRight

        \key c \major
        \soloRight

        r4^"Solo" \mainRight
        r4 \mainRight
        r4^"Tutti" \mainRight
        \lastRight

        r4^"Verse 1 reprise" \mainRight
        r4 \mainRight
        \repeat volta 2 { r4^"repeat to fade" \mainRight }
}

melodyLeft = {
        \clef bass
        \key c \major
        \time 4/4

        \introLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \bridgeLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \bridgeLeft
        \mainLeft
        \mainLeft
        \mainLeft

        \key des \major
        \middleLeft

        \key c \major
        \soloLeft

        \introLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \mainLeft
        \repeat volta 2 { \mainLeft }
}

\header {
        title = "Jump"
        composer = "Van Halen"
}

\score {
        \context PianoStaff <<
                \context Staff = upper \melodyRight
                \context Staff = lower \melodyLeft
        >>

        \layout { }
        \midi { \tempo 4=120 }
}
--CUT HERE--
--
Ian Chard, Unix & Network Administrator   |  E: address@hidden
Systems and Electronic Resources Service  |  T:  80587 / (01865) 280587
Oxford University Library Services        |  F:          (01865) 204937




reply via email to

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