lilypond-user
[Top][All Lists]
Advanced

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

Re: Another question about two voices


From: Klaus Ethgen
Subject: Re: Another question about two voices
Date: Mon, 4 Feb 2019 21:25:50 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Am Mo den  4. Feb 2019 um  2:50 schrieb Ivan Kuznetsov:
> Would you post an example that compiles successfully ?

Sure, why not.

I had to tweak a few thinks. The most remarkable is, that I had to note
the same different for the guitar tab and for the staff. With the
original solution I had not all tab notes noted. That does not seams to
work with multiple voices.

The second is that I had to note a separate part for cords only with as
large than possible chords (2.) to not influence the size of the staffs.

\version "2.18.2"
\include "predefined-guitar-fretboards.ly"
\language "deutsch"

\header
{
   title = "Der kleine Troll"
}

global =
{
   \key c \major
   \time 3/4
}

chordNamesChords = \chordmode
{
   \global
   \germanChords
   \set chordChanges = ##t
   \set chordNameLowercaseMinor = ##t
   d2. g a d g d a d
   \repeat volta 2
   {
      d2. g e:m a a d
   }
}

classicalGuitar = \transpose c d \relative c
{
   \global
   \easyHeadsOn
   c4 d8 e g g | a4 g8 f e4 | d e f | g2 r4 | \break
   a4 a8 g f4 | g e c | d e d | c2 r4 | \break
   \repeat volta 2
   {
      <<
         { \voiceOne e4 f g | a4. g8 f e | f4. e8 d c | d2 }
         \new Voice { \easyHeadsOn \voiceTwo c4 d e | f4. e8 d c | d4. c8 h a | 
h2 }
      >>
      \oneVoice r4 |
      <<
         { \voiceOne e4 f g | e2 }
         \new Voice { \easyHeadsOn \voiceTwo c4 d h | c2 }
      >>
      \oneVoice r4
   }
}

classicalGuitarTab = \transpose c d \relative c
{
   \global
   \easyHeadsOn
   c4 d8 e g g | a4 g8 f e4 | d e f | g2 r4 | \break
   a4 a8 g f4 | g e c | d e d | c2 r4 | \break
   \repeat volta 2
   {
      <e c>4 <f d> <g e> | <a f>4. <g e>8 <f d> <e c> | <f d>4. <e c>8 <d h> <c 
a> | <d h>2 r4 | <e c>4 <f d> <g h,> | <e c>2 r4
   }
}

tenorSax = \transpose b, c' \transpose c d \relative c
{
   \global
   \easyHeadsOn
   \transposition b,
   c4 d8 e g g | a4 g8 f e4 | d e f | g2 r4 | \break
   a4 a8 g f4 | g e c | d e d | c2 r4 | \break
   \repeat volta 2
   {
      <<
         { \voiceOne e4 f g | a4. g8 f e | f4. e8 d c | d2 }
         \new Voice { \easyHeadsOn \voiceTwo c4 d e | f4. e8 d c | d4. c8 h a | 
h2 }
      >>
      \oneVoice r4 |
      <<
         { \voiceOne e4 f g | e2 }
         \new Voice { \easyHeadsOn \voiceTwo c4 d h | c2 }
      >>
      \oneVoice r4
   }
}

verseOne = \lyricmode
{
   \set stanza = "1."
   Steigt so ein klei -- ner Troll von dem Fjell, nä -- her sich leis',
   hat in der Hand He -- xen -- kraut, was nie -- mand weiß.
   \set stanza = "Ref."
   <<
      { Sitzt du am Feu -- er und die Lie -- der sind ver -- weht, dann bleib 
ganz stumm, }
      \new Lyrics
      {
         \set associatedVoice = "noten"
         denn in dem Land, das Dich um -- gibt, ist was er -- wacht und 
schleicht he -- rum.
      }
   >>
}

verseTwo = \lyricmode
{
   \set stanza = "2."
   Plötz -- lich in Dei -- nem Nac -- ken spürst Du eis -- kal -- ten Hauch,
   A -- tem des Trolls trifft Dich wie gif -- ti -- ger Rauch.
}

verseThree = \lyricmode
{
   \set stanza = "3."
   Du führst den Be -- cher Tee nun zum Mund, was zau -- derst Du?
   Blü -- ten -- staub im Zau -- ber -- trank raubt Dir die Ruh.
}

verseFour = \lyricmode
{
   \set stanza = "4."
   Wenn Du in die -- ser Nacht Dei -- nen Schlaf fin -- dest nicht mehr,
   der klei -- ne Troll macht uns -- re Träu -- me so schwer.
}

chordsPart =
<<
   \new ChordNames \chordNamesChords
   \new FretBoards \chordNamesChords
>>

classicalGuitarPart = \new StaffGroup \with
{
   \consists "Instrument_name_engraver"
   instrumentName = "Gitarre"
}
<<
   \new Staff \with { midiInstrument = "acoustic guitar (nylon)" }
   {
      \clef "treble_8"
      \new Voice = "noten"
      {
         \classicalGuitar
      }
   }
   \new TabStaff \with { stringTunings = #guitar-tuning }
   \classicalGuitarTab
>>

tenorSaxPart = \new Staff \with
{
   instrumentName = "Tenorsax"
   midiInstrument = "tenor sax"
}
\tenorSax

leadSheetPart =
<<
   \new ChoirStaff
   <<
      \new Lyrics \lyricsto "noten" { \verseOne }
      \new Lyrics \lyricsto "noten" { \verseTwo }
      \new Lyrics \lyricsto "noten" { \verseThree }
      \new Lyrics \lyricsto "noten" { \verseFour }
   >>
>>

\score
{
   <<
      \chordsPart
      \classicalGuitarPart
      \tenorSaxPart
      \leadSheetPart
   >>
   \layout
   {
   }
   \midi
   {
      \tempo 4=130
   }
}

Regards
   Klaus
- -- 
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <address@hidden>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Comment: Charset: ISO-8859-1

iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlxYn8cACgkQpnwKsYAZ
9qySLwv9HBEAgYMk44sIihuo8QziZPLXstxyynn0bFBVma7JkFKRnpcygfQmo1zl
K8PWSnTuuPbzqdfZdqvB/Ss0qX7dmyhMqZj05XpiRavoV+5EYQUdEQLfM8RCXM9z
m4nNZ7m0cqmEBlmuDaVVnOgJvVkiizGCALTPzLXvWsz4HzMuiWSPfnJr0Bu2+aaO
F4w4cWM+5kWO85E0CjVJzwDit99Cntrh/45YLDYKMS9PRDOYHZi8MzXkz2HnJO77
GnNsDfXTFuQy0V7HEQa1oXMc3AqoNpYDKnTWDj2In2zbfWkdOgBfzvjZSQ6Mw96W
/TZ+GpWooQrh/guIIIyu5Hq60uLrjbFqAuCeA0Z8yaFeuCtCmPtRoHwHFfdSWlIQ
pLPHXrhIPgRmkXxRZfb76ECgYzEucfptWH9taSE1GK1Ivu7z7YnmCxeenRj9SWFa
+tzrQ6afhJb0bUG+ylizREoYG1Unr9z3L5xhFC04Z6amT9uQa4Cf9TbZUHXqj7y2
uHfKOK6L
=TmiY
-----END PGP SIGNATURE-----



reply via email to

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