Piano staff notes across both staffs

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Piano staff notes across both staffs

Vivyan
I have been taught to set up piano staffs like so. But I can't work out why
these two notes aren't crossing both staffs?

[code]
\version "2.19.80"

\header {
  title = "Composition Study I: Techniques"
  composer = "Joel Ramsbottom"
  tagline = ""  % removed
}
 
upper = \relative c'' {
  \clef treble
  \time 5/4
  \tempo "Andante" 4 = 76
   r4
  <e'>8
 
  }
 
 lower =  \relative c {
  \clef bass
  \time 5/4
   r4

  \autoBeamOff
  \crossStaff {*}
 
}

\score {
  \new PianoStaff <<

    \set PianoStaff.instrumentName = #"Piano  "
    \new Staff = "upper" \upper
    \new Staff = "lower" \lower
  >>
  \layout {
    \context {
    \PianoStaff
    \consists #Span_stem_engraver
  }
  }
  \midi { }
}

[\code]





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Piano staff notes across both staffs

N. Andrew Walsh
Hi Vivyan,

your example does not compile, failing with an error. You appear to be using \crossStaff incorrectly; see NR 2.2.1: http://lilypond.org/doc/v2.19/Documentation/notation/common-notation-for-keyboards for the correct usage.

Cheers,

A

On Sat, Feb 3, 2018 at 8:10 PM, Vivyan <[hidden email]> wrote:
I have been taught to set up piano staffs like so. But I can't work out why
these two notes aren't crossing both staffs?

[code]
\version "2.19.80"

\header {
  title = "Composition Study I: Techniques"
  composer = "Joel Ramsbottom"
  tagline = ""  % removed
}

upper = \relative c'' {
  \clef treble
  \time 5/4
  \tempo "Andante" 4 = 76
   r4
  <e'>8

  }

 lower =  \relative c {
  \clef bass
  \time 5/4
   r4

  \autoBeamOff
  \crossStaff {*}

}

\score {
  \new PianoStaff <<

    \set PianoStaff.instrumentName = #"Piano  "
    \new Staff = "upper" \upper
    \new Staff = "lower" \lower
  >>
  \layout {
    \context {
    \PianoStaff
    \consists #Span_stem_engraver
  }
  }
  \midi { }
}

[\code]





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Piano staff notes across both staffs

Vivyan
Okay so for this to work you have to abandon the previous Piano staff style.

the following code should work. However the latest rest is now set to high (
because it thinks its the 1st voice? How can this be adjusted?

\header {
  title = "Composition Study I: Techniques"
  composer = "Joel Ramsbottom"
  tagline = ""  % removed
}

\layout {
  \context {
    \PianoStaff
    \consists #Span_stem_engraver
  }
}

%Piano Score
{
  \new PianoStaff <<
    \new Staff {
      \clef treble
      \time 5/4
      \tempo "Andante" 4 = 76
     
      des'4
     
      e'
    }
    \new Staff {
      \clef bass
      r4
     
      \voiceOne
      \autoBeamOff
      \crossStaff { b}
     
      r4
     
    }
  >>
}



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Piano staff notes across both staffs

SoundsFromSound
On 2/3/2018 4:10 PM, Vivyan wrote:
Okay so for this to work you have to abandon the previous Piano staff style.

the following code should work. However the latest rest is now set to high (
because it thinks its the 1st voice? How can this be adjusted?

    \new Staff {
      \clef bass
      r4
      
      \voiceOne
      \autoBeamOff
      \crossStaff { b} 
      
      r4
      
    }
  >>
}




You could just change r4 to:

d4\rest

That would move it down. See attached.

Is this what you wanted? :)

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user

snap.png (46K) Download Attachment
composer | sound designer | asmr artist
LilyPond video tutorials: http://bit.ly/LearnLilyPond
Reply | Threaded
Open this post in threaded view
|

Re: Piano staff notes across both staffs

Vivyan
that is what I want. Thats what I will do for now then is that's the
solution. Thanks



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Piano staff notes across both staffs

Vivyan
I've ended up taking this apporach but the b4 that I need to join still does
cross the staves. why is that?
<http://lilypond.1069038.n5.nabble.com/file/t5486/Screen_Shot_2018-02-04_at_01.png>


\new Staff {
      \clef bass
      \voiceOne
      \autoBeamOff
     
      d4\rest
     
      \crossStaff { b4  }
 
      d8\rest
      e8
      d4\rest
     
      \tuplet 3/2 {
        d4\rest f,8
      }



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Piano staff notes across both staffs

Vivyan
I've had a look at 2.2.1.  I've tried extening the stem instead. I just don't
see why \cross staff can't work in my current code? I've had too many other
compromises trying re approaching the RotationalArrays.ly
<http://lilypond.1069038.n5.nabble.com/file/t5486/RotationalArrays.ly>  
score from scratch different just to implement  \crossstaff the way the
manual demonstrates?



lower = \relative c {
 \clef bass
  \time 5/4
  % FIRSTMETER
  r4
  \autoBeamOff
  \override Stem.length = #5.0
  b



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

RE: Piano staff notes across both staffs

Mark Stephen Mrotek
In reply to this post by Vivyan
Vivyan,

Just on inspection, the stems are in different directions. They cannot be
connected.
Try inserting \stemup before the b.

Mark

-----Original Message-----
From: lilypond-user
[mailto:lilypond-user-bounces+carsonmark=[hidden email]] On Behalf Of
Vivyan
Sent: Saturday, February 03, 2018 5:24 PM
To: [hidden email]
Subject: Re: Piano staff notes across both staffs

I've ended up taking this apporach but the b4 that I need to join still does
cross the staves. why is that?
<http://lilypond.1069038.n5.nabble.com/file/t5486/Screen_Shot_2018-02-04_at_
01.png>


\new Staff {
      \clef bass
      \voiceOne
      \autoBeamOff
     
      d4\rest
     
      \crossStaff { b4  }
 
      d8\rest
      e8
      d4\rest
     
      \tuplet 3/2 {
        d4\rest f,8
      }



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user