lilypond-user
[Top][All Lists]
Advanced

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

Possible to adjust relative midi volume of a single voice?


From: Carl Youngblood
Subject: Possible to adjust relative midi volume of a single voice?
Date: Wed, 24 Mar 2010 23:23:24 +0100

I am writing a six-part male choir arrangement and would like to
generate midi for each part that plays the part louder than the rest.
Although I can use a sequencing program to adjust the volume of a
given track, it would be nice to be able to generate voices with a
specific volume or relative volume in my lilypond source. Does anyone
know how to do this? Here is my source code:

global = {
  \key bes \major
  \time 4/4
}
tenoronenotes = \relative c {
  \clef "G_8"
  \partial 4
  r4 r1 r r2 r4 f4( bes4. c8 d c bes a) g2 g4 bes c4. d8 ees( d c bes) c1 c2.
}
tenoronewords = \lyricmode {
  Ah __ san- na, Ho- san- na, Ho __ san- na!
}
tenortwonotes = \relative c {
  \clef "G_8"
  \partial 4
  r4 r1 r r2 r4 f4( bes4. c8 d c bes a) g2 g4 bes c4. d8 ees( d c bes) bes1 a2.
}
tenortwowords = \lyricmode {
  Ah __ san- na, Ho- san- na, Ho __ san- na!
}
barionenotes = \relative c' {
  \clef "G_8"
  \partial 4
  r4 r2 r4 a c bes2. ~ bes1 bes2 f' f ees4 d ees2 ees4 ees f1 f2.
}
barionewords = \lyricmode {
  Ho- san- na, __ Ah Ho- san- na, Ho- san- na, Ho- san- na!
}
baritwonotes = \relative c {
  \clef "G_8"
  f4 bes f2. ~ f1 ~ f1 f2 bes bes bes4 bes
  aes2 aes4 aes f1 f2.
}
baritwowords = \lyricmode {
  Ho- san- na __ Ah Ho- san- na, Ho- san- na, Ho- san- na!
}
bassonenotes = \relative c {
  \clef bass
  \partial 4
  r4 r1 r2. d4 c bes f' f, bes2. bes4 ees,2 ees4 ees aes2 aes4 aes f1 f2.
}
bassonewords = \lyricmode {
  Ho- san- na to the Lord Ho- san- na, Ho- san- na, Ho- san- na!
}
basstwonotes = \relative c {
  \clef bass
  \partial 4
  r4 r1 r2. d4 c bes f' f, bes2. bes4 ees,2 ees4 ees aes2 aes4 aes f1 f2.
}
basstwowords = \lyricmode {
  Ho- san- na to the Lord Ho- san- na, Ho- san- na, Ho- san- na!
}

\score{
  \context ChoirStaff
  <<
    \context Staff = tenorone <<
      \context Voice = tenone {
        \set midiInstrument = #"Choir Aahs"
        << \global \tenoronenotes >>
      }
      \lyricsto "tenone" \new Lyrics \tenoronewords
    >>
    \context Staff = tenortwo <<
      \context Voice = tentwo {
        \set midiInstrument = #"Choir Aahs"
        << \global \tenortwonotes >>
      }
      \lyricsto "tentwo" \new Lyrics \tenortwowords
    >>
    \context Staff = barione <<
      \context Voice = barone {
        \set midiInstrument = #"Choir Aahs"
        << \global \barionenotes >>
      }
      \lyricsto "barone" \new Lyrics \barionewords
    >>
    \context Staff = baritwo <<
      \context Voice = bartwo {
        \set midiInstrument = #"Choir Aahs"
        << \global \baritwonotes >>
      }
      \lyricsto "bartwo" \new Lyrics \baritwowords
    >>
    \context Staff = bassone <<
      \context Voice = basone {
        \set midiInstrument = #"Choir Aahs"
        << \global \bassonenotes >>
      }
      \lyricsto "basone" \new Lyrics \bassonewords
    >>
    \context Staff = basstwo <<
      \context Voice = bastwo {
        \set midiInstrument = #"Choir Aahs"
        << \global \basstwonotes >>
      }
      \lyricsto "bastwo" \new Lyrics \basstwowords
    >>
  >>
  \midi {
    \context {
      \Staff
      \remove "Staff_performer"
    }
    \context {
      \Voice
      \consists "Staff_performer"
    }
    \context {
      \Score
      tempoWholesPerMinute = #(ly:make-moment 72 2)
    }
  }
}




reply via email to

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