[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Instrument switching with a new staff - possible?
From: |
SoundsFromSound |
Subject: |
Re: Instrument switching with a new staff - possible? |
Date: |
Wed, 27 Feb 2013 15:24:00 -0800 (PST) |
Nathan:
Wow, that comes out amazingly in LilyPond when I render it - how did you
know how to do all that? Damn, I wish I could be that savvy :)
It's not *essential* that the line be centered, I was just trying to make
this as "neat" on the eyes as possible - it's absolutely FINE if it must
stay up in that RH area of the piano's grand staff.
Thank you again!
May I ask one more thing of you? Can you briefly explain the various parts
of the code you added, and touch upon what does what for the output?
Ben
Nathan wrote
> On Wed, Feb 27, 2013 at 12:47 PM, SoundsFromSound <
> soundsfromsound@
> > wrote:
>
>> Good afternoon everyone,
>>
>> I was attempting to engrave this piece today and I've hit a bit of a
>> roadblock.
>>
>> Essentially what I'm supposed to do is have the piano break away from
>> it's
>> "normal" grand staff for many measures (15+).
>>
>> Then change to a percussion 1-line staff to notate the various percussion
>> instruments the performer must play as well. Then return to standard
>> piano
>> notation.
>>
>> Is instrument switching possible in Lilypond, with a complete staff-type
>> change? I know you can add labels and change instruments, but I was
>> unsure
>> it a total staff change was possible, temporarily, in a score.
>> http://kainhofer.com/~lilypond/Documentation/notation/writing-parts.html
>>
>> I've done some experiments with instrument switching, but my code doesn't
>> seem to be working - only making things worse.
>>
>> Could anyone possibly point me in the right direction please? Thank you
>> kindly!
>>
>> Note: I just used "dummy notes" in this example, for simplicity, so don't
>> worry much that the notes don't match :) That's not an issue.
>>
>> Ben
>>
>> My goal:
>> (something like this, but ideally the 1-line percussion part would be
>> centered in the grand staff, instead of up near the RH of the piano - but
>> that's flexible if need be)
>> <http://lilypond.1069038.n5.nabble.com/file/n141635/Capture.png>
>>
>> My current code:
>>
>> \version "2.17.10"
>>
>> global = {
>> \key c \major
>> \numericTimeSignature
>> \time 4/4
>> \tempo "Slow"
>> }
>>
>> right = \relative c'' {
>> \global
>> c4 d e f | R1 | R1 | c4 f g f
>>
>> }
>>
>> left = \relative c' {
>> \global
>> c,4 d e f | R1 | R1 | c4 f g f
>>
>> }
>>
>> <http://lilypond.1069038.n5.nabble.com/file/n141635/how_to_change.png>
>>
>>
> This code more or less reproduces the image.
>
> If a line break happens during a percussion part, maybe use "\clef
> percussion" plus an override to hide the clef change -- that way a
> percussion clef shows up at the line break instead of a treble clef.
>
> I have no idea how to put the percussion clef between the other two.
>
> global = {
> \key c \major
> \numericTimeSignature
> \time 4/4
> \tempo "Slow"
> }
>
> right = \relative c'' {
> \global
> c4 d e f | R1 | R1 | c4 f g f
> \stopStaff
> \once \override Staff.BarLine #'bar-extent = #'(-2 . 2)
> \override Staff.StaffSymbol #'line-count = #1
> \set squashedPosition = #0
> \xNotesOn
> \startStaff
> c4 c4 c4 c4 | c4 c4 c4 c4 | c4 c4 c4 c4
> \stopStaff
> \revert Staff.StaffSymbol #'line-count
> \unset squashedPosition
> \xNotesOff
> \startStaff
> c4 d4 e4 f4 | g4 r4 r2
> }
>
> left = \relative c' {
> \global
> c,4 d e f | R1 | R1 | c4 f g f
> \stopStaff
> s1*3
> \startStaff
> c4 d4 e4 f4 | g4 r4 r2
> }
>
> \score {
> \new PianoStaff <<
> \new Staff \right
> \new Staff { \clef bass \left }
> >>
> \layout {
> \context {
> \Voice
> \consists "Pitch_squash_engraver"
> }
> }
> }
>
> Regards,
> Nathan
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@
> https://lists.gnu.org/mailman/listinfo/lilypond-user
-----
composer | sound designer
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Instrument-switching-with-a-new-staff-possible-tp141635p141647.html
Sent from the User mailing list archive at Nabble.com.
- Instrument switching with a new staff - possible?, SoundsFromSound, 2013/02/27
- Re: Instrument switching with a new staff - possible?, Nathan, 2013/02/27
- Re: Instrument switching with a new staff - possible?,
SoundsFromSound <=
- Re: Instrument switching with a new staff - possible?, Nathan, 2013/02/27
- Re: Instrument switching with a new staff - possible?, SoundsFromSound, 2013/02/27
- Re: Instrument switching with a new staff - possible?, David Kastrup, 2013/02/28
- Re: Instrument switching with a new staff - possible?, Urs Liska, 2013/02/28
- Re: Instrument switching with a new staff - possible?, SoundsFromSound, 2013/02/28
- Re: Instrument switching with a new staff - possible?, David Kastrup, 2013/02/28
- Re: Instrument switching with a new staff - possible?, SoundsFromSound, 2013/02/28
Re: Instrument switching with a new staff - possible?, Eluze, 2013/02/27