[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ossia with signatures where needed
From: |
James Harkins |
Subject: |
ossia with signatures where needed |
Date: |
Tue, 02 Aug 2011 21:52:06 -0400 |
User-agent: |
Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Is it possible to create an ossia staff context where clefs and time signatures
are displayed only when the staff is visible?
I'm following the model of the 3rd example under "Ossia staves" in the notation
reference -- creating a staff named "ossia" and then using \context
Staff="ossia" { \startStaff ... \stopStaff } where it should be visible. This
is fine as long as I...
\remove "Time_signature_engraver"
\remove "Key_engraver"
\override Clef #'transparent = ##t
But then, clefs, time signatures and keys will never be displayed. I have an
ossia that crosses a couple of time signatures, and it looks funny that the
time signatures are absent. But if I remove those lines from the ossia staff's
\with block then I get a free-floating clef, time signature and key signature
-- without staff lines -- above the "real" staff.
I'm sure it must be possible -- it just eludes me in the documentation tonight.
Thanks,
James
%%% For reference, the file layout goes something like this (omitting some fine
print):
\outline {
... meter changes and spacer rests...
}
\score {
\new StaffGroup \with {
\override SpanBar #'glyph-name = #":"
}
<<
\set StaffGroup.systemStartDelimiter = #'SystemStartBar
\new Staff = "ossia" \with {
\remove "Time_signature_engraver"
\remove "Key_engraver"
\override Clef #'transparent = ##t
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
\override StaffSymbol #'thickness = #(magstep -3)
} {
\stopStaff \outline
}
\new Staff <<
\outline
{
... whole bunch of notes...
<<
{
... notes, ossia goes above this...
}
\context Staff="ossia" {
\startStaff
\relative c'' {
d8^"accented note rhythm" b8 r16 [ d8 b16 ] r8 d \noBeam b d
r8 b d [ r16 b ] r16 d16 r8
b8. d b d b8 r8
}
\stopStaff
}
>>
... a lot more notes...
}
>>
>>
\layout {
\context { \RemoveEmptyStaffContext }
\context {
\Score
\remove "System_start_delimiter_engraver"
}
}
}
--
James Harkins /// dewdrop world
address@hidden
http://www.dewdrop-world.net
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman
blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks