thank you, Kieren!

I'm trying it out.

dirck
________________________________
From: Kieren MacMillan <kie...@kierenmacmillan.info>
Sent: Saturday, December 14, 2024 3:11 PM
To: Dirck Nagy <dn...@uwlax.edu>
Cc: Lilypond-User Mailing List <lilypond-user@gnu.org>; dirckn...@hotmail.com 
<dirckn...@hotmail.com>
Subject: Re: spacing staff...can it be done?


Caution: *External Email: Use caution responding, opening attachments, or 
clicking on links.*


Hi Dirck,

> Is there a better way to set up voices in a template?

One one option is included below.

Hope it helps!
Kieren.

%%%  SNIPPET BEGINS
\version "2.23.82"

rightOne = {
  c''8 d'' e'' d'' c'' d'' e'' d''
}

rightTwo = {
  e'8 f' g' f' e' f' g' f'
}

leftOne = {
  \clef bass
  g8 a g a g a g a
}

leftTwo = {
  \clef bass
  c8 b, c b, c b, c b,
}

\score {
  %%  PIANO
  \new PianoStaff <<
    %%  RH
    \new Staff = "right" \with {
      midiInstrument = "acoustic grand"
    }
    \voices 1,2 <<
      { \voiceOne \rightOne }
      \\
      \new Voice { \voiceTwo \rightTwo }
    >>
    %%  LH
    \new Staff = "left" \with {
      midiInstrument = "acoustic grand"
    }
    {
      \voices 1,2 <<
        { \voiceOne \leftOne }
        \\
        \new Voice { \voiceTwo \leftTwo }
      >>
    }
  >>

Reply via email to