lilypond-user
[Top][All Lists]
Advanced

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

Newbie needs help - how to set beats for midi output


From: MING TSANG
Subject: Newbie needs help - how to set beats for midi output
Date: Tue, 17 Aug 2010 03:16:31 -0700 (PDT)

Lilypond user community:

I started to use lilypond window (XP) version 2.13. ( I am a newbie to lilyPond). The following is lilypond text file I managed to compose.  I have question ato ask for assistance.

1. How can I create two voices for pianoRHMusic and pianoLHMusic?
    I want to generate piano  accompainment not just repeat soprano/alto tenor/bass.
2. the speed of generated midi file is very slow. How can I adjust it?
    I try to put      \midi {    \tempo 4=120  }    but I got the following error::
       
    C:/Documents and Settings/Administrator/Desktop/LILY_POND/la-men.ly:99:8: error: syntax error, unexpected \tempo
\midi {   
        \tempo 4=120 }
3. How can I just generate soprano or tenor midi for practice singing?
4. How can I combine soprano and alto into one treble clef staff?
5.  Is there any window version for mup2ly?
    I have many mup score text files. I like to convert it to lilypond text file.
    The learning curve for lilypond is hard. In times, I might like it.  The reason I try to switch from mup to lilypond is because mup cannot generate Chinese character lyrics, but lilypond can. A must for me.  Currently I do cut and past after the score sheet and then enter chinese character separately in words.
6. From a sample lilyPond demo file, where does the "Music engraving by lilyPond 2.12.3 -- www.lilypond.org" generated?

Thanks,
Lyndon

Sample lilypond text file

\header {
  title = "A-men : 阿 們 頌 "
  enteredby="ymingT"
  maintainer="address@hidden"

  texidoc = "
heavily mutilated Edition Peters Morgenlied by Schubert"

}

\version "2.12.0"

ignoreMelisma =    \set ignoreMelismata = ##t
ignoreMelismaOff = \unset ignoreMelismata

#(set-global-staff-size 21)

\paper  {
                %#(set-global-staff-size (* 5.8 mm))
  indent = #(* mm 4)
  line-width = #(* mm 140)
  interscoreline = 2.\mm
  between-system-space = 15\mm
  ragged-bottom = ##t
}
#(set-global-staff-size 17)
\paper {
indent = 3.0\cm
short-indent = 1.5\cm
}
sopranoMusic = \relative c' { \key f \major a'1 g2. r4 bes1 a2. r4 c2( bes4 g f2 e )f1 f ~ f f }
%sopranoLyrics = \lyricmode { A- men a- men a- men a- men }
firstVerse = \lyricmode { \set stanza = " " A- men a- men a- men a- men }
secondVerse = \lyricmode {    \set stanza = " " 阿 們 阿 們 阿_ 們 阿 們 }

altoIMusic = \relative c' { \key f \major f1 e2. r4 e1 f2. r4 f2( d2 c1 )c1 d1( des) c1 }
altoILyrics = \lyricmode { A- men a- men a- men a- men }
altoIIMusic = \relative c' { \key c \major c1 d }
altoIILyrics = \lyricmode { A -- two }

tenorMusic = \relative c  { \clef "bass" \key f \major c1 c2. r4 c1 c2. r4 f,2 ( g4 bes4 a2 g2 )a1 bes1 ~ bes1 a1 }
tenorLyrics = \lyricmode { A- men a- men a- men a- men }

bassMusic = \relative c { \clef "bass" \key f \major f1 c2. r4 c'1 c2. r4 a,2 ( bes2 c1 )f1 bes,1 ~ bes1 f1 }
bassLyrics = \lyricmode { " "  "" a- men a- men a- men }

pianoRHMusic = \relative c' { \key f \major a'1 g2. r4 bes1 a2. r4 c2( bes4 g f2 e )f1 f ~ f f }
pianoLHMusic = \relative c { \key f \major c1 c2. r4 c1 c2. r4 f,2 ( g4 bes4 a2 g2 )a1 bes1 ~ bes1 a1 }


\score {
\new GrandStaff = "GrandStaff_score" <<  %1
    \new ChoirStaff = "ChoirStaff_choir" <<  %7
        \new Staff = "Staff_soprano" {
            \set Staff.instrumentName = #" "
            \new Voice = "soprano"
            \sopranoMusic
        }
         \new Lyrics \lyricsto "soprano" { \firstVerse }
        \new Lyrics \lyricsto "soprano" { \secondVerse }
         \new GrandStaff = "GrandStaff_altos" \with { \accepts Lyrics } <<  %8
             \new Staff = "Staff_altoI" {
                 \set Staff.instrumentName = #" "
                 \new Voice = "altoI"
                 \altoIMusic
             }
%             \new Lyrics \lyricsto "altoI" { \altoILyrics }
            \new Lyrics \lyricsto "altoI" { \firstVerse }
            \new Lyrics \lyricsto "altoI" { \secondVerse }
        >>  %8
        \new Staff = "Staff_tenor" {
            \set Staff.instrumentName = #" "
            \clef "treble_8"
            \new Voice = "tenor"
            \tenorMusic
        }
%        \new Lyrics \lyricsto "tenor" { \tenorLyrics }
         \new Lyrics \lyricsto "tenor" { \firstVerse }
        \new Lyrics \lyricsto "tenor" { \secondVerse }
        \new Staff = "Staff_bass" {
            \set Staff.instrumentName = #" "
            \new Voice = "bass"
            \bassMusic
        }
%        \new Lyrics \lyricsto "bass" { \bassLyrics }
         \new Lyrics \lyricsto "bass" { \firstVerse }
        \new Lyrics \lyricsto "bass" { \secondVerse }
        >>  %7
     \new PianoStaff << %6 
         \set PianoStaff.instrumentName = #" "
         \new Staff { \pianoRHMusic }
         \new Staff {
             \clef bass
             \pianoLHMusic
         }
     >> %6
>>  %1
\layout { }
\midi {     }
}

reply via email to

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