[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ossia with signatures where needed
From: |
James Harkins |
Subject: |
Re: ossia with signatures where needed |
Date: |
Wed, 03 Aug 2011 12:15:58 -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) |
At Wed, 3 Aug 2011 18:00:50 +0200,
Xavier Scheuer wrote:
> You could use
>
> \context Staff = "ossia" \with {
> \override Clef #'stencil = ##f
> \override KeySignature #'stencil = ##f
> \override TimeSignature #'stencil = ##f
> } {
> \relative c' {
> c1
> \once \revert Staff.TimeSignature #'stencil
... snip
Ah... excellent. Revised code snippet is below -- it works beautifully for my
purpose!
Worthy of inclusion in the snippet repository? I had searched it for "ossia"
and found only two snippets, and neither of them illustrated what I wanted.
Thanks --
James
\version "2.14.1"
\include "english.ly"
showMeter = { \once \revert Staff.TimeSignature #'stencil }
outline = {
\time 4/4 s1*2
\showMeter \time 3/4 s2.
\showMeter \time 4/4 s1*2
}
\score {
<<
\new Staff = "ossia" \with {
\override Clef #'stencil = ##f
\override KeySignature #'stencil = ##f
\override TimeSignature #'stencil = ##f
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
\override StaffSymbol #'thickness = #(magstep -3)
} {
\stopStaff
\outline
}
\new Staff <<
\outline
{
\repeat unfold 16 { b'16 }
<<
{ \repeat unfold 60 { b'16 } }
\context Staff="ossia" {
\revert Staff.Clef #'stencil
\startStaff
\repeat unfold 22 { b'8 }
\override Clef #'stencil = ##f
\stopStaff
}
>>
}
>>
>>
}
--
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