lilypond-user
[Top][All Lists]
Advanced

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

Re: newbie issues:repetition, midi & lyrics


From: James E. Bailey
Subject: Re: newbie issues:repetition, midi & lyrics
Date: Tue, 20 Jan 2009 23:31:47 +0100

I won't attempt to answer all of this, but, the easiest beginning to a solution is to have two separate \score blocks, one with a \layout and one with a \midi. That way, you can structure your midi output the way it should be, and structure the pdf the way it should be.
Very simplified example:
\score {
        <<
                \new Staff <<
                        \global
                        \Chords
                        \new Voice = "yesterday" \Notes
                >>
                \new Lyrics \lyricsto "yesterday" \Lyrics
        >>
        \layout {}
}
\score {
        <<
                \new Staff <<
                        \global
                        \Notes
                >>
        >>
        \midi {}
}

Am 20.01.2009 um 22:52 schrieb Grateful Frog:

Hello again!
Let me first say that despite my newness to the pond, I've already done some great stuff thanks to this incredible tool!

I'm now trying to create a version of the Beatle's "Yesterday" with Chords, Melody, Lyrics and guitar tabs.

I attach below my current file which generates pretty nice sheet music, but which has some weakness in the structuring of the melody sections and the lyrics. Also, I haven't been able to figure out the midi generation. When I put a midi block in, then the output has the chords but doesn't follow the structure of the song.

So the problems are:
how to better structure the source notes, lyrics, chords and tabs to match the song structure which is:
verse
verse
bridge + bridge-ending-1
bridge + bridge-ending-2
verse
coda
how to get that out in a midi file that plays properly, and only the melody not the lyrics and chords?
this is the output timidity:
$ timidity Yesterday-04a.midi
Playing Yesterday-04a.midi
MIDI file: Yesterday-04a.midi
Format: 1  Tracks: 6  Divisions: 384
Sequence: control track
Text: creator:
Text: GNU LilyPond 2.12.1
Track name:
Track name:
Track name:
Track name:
Track name:
YesSudYesterdenterday,ly,day,allI'mlovemynotwastrouhalfsuchblestheanse emedmanesoIasyfarusedgameatotoway,be,play,NowThere'sNowitaIlooksshanee dasdowaifhangplacethey'reingtohereohidetoverastay,me,way,OhOhOhIyesIbe terbelievedaylieveincameinyessudyesterdenterday.ly.day.WhyIshesaidhads ometothinggo,wrong,Inowdon'tIknow, she would n't say. long,foryesterday.Mmmmmmmmmm.Playing time: ~64 seconds
Notes cut: 0
Notes lost totally: 0

All help is welcome!
Thanks in advance!
GF.
----- file ----
% Yesterday-04a.ly
\version "2.12.0"
flushRight = "John Lennon and Paul McCartney"
title = "Yesterday"
flushLeft = "Guitar"
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%  Standard File Headers - No need to modifiy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\paper {
  #(set-paper-size "a4")
  #(define dump-extents #t)
  ragged-right = ##f
  force-assignment = #""
}
\header {
  title = \title
  poet = \flushLeft
  composer = \flushRight
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%  Music Definitions that will be used in the \score section
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
chordsOne = \chordmode {
  f1
  e2:m7  a:7
  d2.:m  d4:m7
  bes2   c:7
  f2.    c4
  d2:m7  g:7
  bes4  f2.
}
chordsBridge = \chordmode {
  e2:m7  a:7
  d4:m   c   bes  d:m
}
chordsBridgeEnd = \chordmode {
  g2:m   c:7
  f1
}
chordsCoda = \chordmode {
  r2    g:7
  bes4  f2.
}
mychords =  \chordmode {
  \repeat volta 2 \chordsOne
  \repeat volta 2 \chordsBridge
  \alternative {
    {\chordsBridgeEnd}
    {\chordsBridgeEnd}
  }
  %\chordsOne
  \chordsCoda
}
%%%%%%%%%%%%%%%%%%%%%%
% These are the notes:
%%%%%%%%%%%%%%%%%%%%%%
notesOne  = {
  % measure 1
  g'8\4  f f2.
  r4 a8 b\3 cis d e\2 f
  e8.\2 d16 d2.
  r4 d8 d c bes a g\4
  % measure 5
  bes4 a8 a~ a4 g\4
  f a8 g~\4 g4\4 d\5
  f^\markup{\italic To \italic Coda} a8 a~ a2\coda
}
notesBridge = {
  % measure 1
  a2 a2
  d4 e\2 f e8\2 d
}
notesBridgeEndA = {
  e4.\2 d8 c4  d4
  a1
}
notesBridgeEndB = {
  e'4.\2 d8 c4 e4\2
  f^\markup{\italic D.C. \italic al \italic Coda}( c bes a)
  \bar "||"
}
notesCoda = {
  f4\coda  a       g\4  d\5
  f   a8  a~  a2
}
myNotes = {
  \repeat volta 2 \notesOne
  \repeat volta 2 \notesBridge
  \alternative  {
    {\notesBridgeEndA}
    {\notesBridgeEndB}
  }
  \relative c'
  %\notesOne
  \notesCoda
}
myLyricsVOne = \lyricmode {
  Yes -- ter -- day, all my trou -- bles seemed so far a -- way,
  Now it looks as if they're here to stay,
  Oh I be -- lieve in yes -- ter -- day.
}
myLyricsVTwo = \lyricmode {
  Sud -- den -- ly, I'm not half the man I used to be,
  There's a sha -- dow hang -- ing o -- ver me, Oh yes -- ter -- day
  came sud -- den -- ly.
}
myLyricsVThree = \lyricmode {
  Yes -- ter -- day, love was such an e -- asy game to play,
  Now I need a place to hide a -- way,
  Oh I be -- lieve in yes -- ter -- day.
}
myLyricsBridgeOne = \lyricmode {
  Why she had to go, I don't know, she would -- n't say.
}
myLyricsBridgeTwo = \lyricmode {
  I said some -- thing wrong, now
  I _ _ _ _ _
}
myLyricsEnd = \lyricmode {
  long, for yes -- ter -- day. __
}
myLyricsCoda = \lyricmode {
  Mm mm mm mm mm.
}
myTabs = {
  \repeat volta 2\notesOne
  \repeat volta 2  \notesBridge
  \alternative  {
    {\notesBridgeEndA}
    {\relative c
     \notesBridgeEndB}
  }
  \relative c
  \notesCoda
}
% define the key time and tempo signatures
myKey = \key f \major
myTime = \time 4/4
myTempo = \tempo 4=86
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%  This section generates the score - No need to modify it!
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\score {
  <<
    \new ChordNames {
      \mychords
    }
    \new Staff \relative c' {
      \myKey
      \override Staff.TimeSignature #'style = #'()
      \override Voice.StringNumber #'transparent = ##t
      \myTime
      \myNotes
    }
    \addlyrics {
      \myLyricsVOne
      \myLyricsBridgeOne
      \myLyricsEnd
      \myLyricsCoda
    }
    \addlyrics {
      \myLyricsVTwo
      \myLyricsBridgeTwo
    }
    \addlyrics {
      \myLyricsVThree
    }
    \new TabStaff  \relative c {
      \override Staff.TimeSignature #'style = #'()
      \myTime
      \stemDown
      \override Beam #'damping = #+inf.0
      \myTabs
    }
  >>
  \midi {
  }
  \layout {
    \context {
      \Lyrics
      \override LyricText #'font-size = #-1
    }
  }
}

------------- end of file ------------------
--
50°48'39.85"N  4°25'20.29"E
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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