[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Temporary Staves Above-Below
From: |
Mats Bengtsson |
Subject: |
Re: Temporary Staves Above-Below |
Date: |
Fri, 02 Sep 2005 09:36:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 |
I don't see the problem. How about
\version "2.7.8"
\score {
\new PianoStaff {
<<
\context Staff = "RH" {
\clef treble
{ f'2 c'4 d' e' f' r4 r8 c' d'4 e' }
}
\context Staff = "LH" {
\clef bass
{a,2 b,4 g, e, f,g,8} % i cut here into the notes of the LH
<<
\new Staff {\set Staff.alignAboveContext = #"RH"
c''16[ des'' gis'' fis'']} % but I want this staff to be above RH?
{c, c, c,4 cis,8 c, d, e, } % remaining notes of LH
>>
}
>>
}
\layout {
\context {
\Staff
\remove "Time_signature_engraver"
}
}
}
/Mats
Mehmet Okonsar wrote:
When I want to start a staff, if I do it inside a context, I have no choice
but I get it below the staff of the context I'm in,
if I want to use the :
\set Staff.alignAboveContext command,
I must have it outside any other staff context (that's logical) and I must
use \skip to have the new staff start where I want.
Using \skip in unmetered long scores can be quite unconvenient..
Am I right assuming that there is no way to "cut" into the notes of an
existing staff context, start a new staff and put it above or below ?..
Example:
---------------------------------------
\version "2.7.8"
\score {
\new PianoStaff {
<<
\context Staff = "RH" {
\clef treble
{ f'2 c'4 d' e' f' r4 r8 c' d'4 e' }
}
\context Staff = "LH" {
\clef bass
{a,2 b,4 g, e, f,g,8} % i cut here into the notes of the LH
<<
\new Staff {c''16[ des'' gis'' fis'']} % but I want this staff to be
above RH?
{c, c, c,4 cis,8 c, d, e, } % remaining notes of LH
>>
}
}
\layout {
\context {
\Staff
\remove "Time_signature_engraver"
}
}
}
Best Regards,
Mehmet Okonsar, pianist-composer
www.okonsar.com
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================