lilypond-user
[Top][All Lists]
Advanced

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

Re: Accessing context properties (e.g. the current key) from a music fun


From: David Nalesnik
Subject: Re: Accessing context properties (e.g. the current key) from a music function?
Date: Thu, 30 Apr 2015 19:07:27 -0500



On Thu, Apr 30, 2015 at 6:41 PM, David Nalesnik <address@hidden> wrote:


P.S.  Now I'm going to set out to break it...

Well, with simultaneous music you do end up having to repeat the key.

 \test
\new PianoStaff <<
  \new Staff <<
    \new Voice {
      \key re \major
      \voiceOne
      do''4 mi'' sol'' do''' <do''' mi''' sol'''>1
      \key fa \major
      do''4 mi'' sol'' do''' <do''' mi''' sol'''>1
      
    }
    \new Voice {
      \voiceTwo
      \key re \major
      do'4 mi' sol' do'' <do' mi' sol'>1
      \key fa \major
      do'4 mi' sol' do'' <do'' mi'' sol''>1
    }
  >>
  \new Staff <<
    
    \new Voice {
      \voiceOne
      \key fa \major
      do''4 mi'' sol'' do''' <do''' mi''' sol'''>1
      \key re \major
      do''4 mi'' sol'' do''' <do''' mi''' sol'''>1
    }
    \new Voice {
      \voiceTwo
      \key fa \major
      do'4 mi' sol' do'' <do' mi' sol'>1
      \key re \major
      do'4 mi' sol' do'' <do' mi' sol'>1
    }
  >>
>>

And the ottavation needs rationalization.

DN

reply via email to

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