Re: Removing a time signature only once

2013-01-15 Thread Kieren MacMillan
Hi Christopher,

 tl;dr: How does one remove a time signature completely (not just
 transparent) without removing the time signature engraver?

I believe this will work:
\once \override TimeSignature #'stencil = ##f

Hope this helps!
Kieren.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing a time signature only once

2013-01-15 Thread Christopher R. Maden
On 01/15/2013 03:40 PM, Kieren MacMillan wrote:
 tl;dr: How does one remove a time signature completely (not just 
 transparent) without removing the time signature engraver?
 
 I believe this will work:
 \once \override TimeSignature #'stencil = ##f

Thanks, Kieren.  That doesn’t seem to work (in 2.14.2); whether I put it
before or after the \time assertion, the time signature shows up unchanged.

songGlobalsVerse = {
  s8 |
  % \once \override TimeSignature #'stencil = ##f % tried this
  \time 6/8
  \once \override TimeSignature #'stencil = ##f % this doesn’t work either
  s2.*8 | \bar ||
}

~Chris
-- 
Chris Maden, text nerd  URL: http://crism.maden.org/ 
Axial tilt is the reason for the season.
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9  A210 4A51 DBAC 5C5C 3D5E

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing a time signature only once

2013-01-15 Thread Kieren MacMillan
Hi Christopher,

 That doesn’t seem to work

You need to specify the context:

songGlobalsVerse = {
 s8
 \once \override Staff.TimeSignature #'stencil = ##f
 \time 6/8
 s2.*8
 \bar ||
}

\score { \songGlobalsVerse }

Cheers,
Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing a time signature only once

2013-01-15 Thread james

On Jan 15, 2013, at 9:47 PM, Christopher R. Maden wrote:

 On 01/15/2013 03:40 PM, Kieren MacMillan wrote:
 tl;dr: How does one remove a time signature completely (not just 
 transparent) without removing the time signature engraver?
 
 I believe this will work:
 \once \override TimeSignature #'stencil = ##f
 
 Thanks, Kieren.  That doesn’t seem to work (in 2.14.2); whether I put it
 before or after the \time assertion, the time signature shows up unchanged.
 
 songGlobalsVerse = {
  s8 |
  % \once \override TimeSignature #'stencil = ##f % tried this
  \time 6/8
  \once \override TimeSignature #'stencil = ##f % this doesn’t work either
  s2.*8 | \bar ||
 }
 
 ~Chris
 -- 

a) Wrong context. Because no context is mention, Voice is implied, b) it should 
come before you want to change the time signature. Other tips and tricks for 
removing contexts and engravers can be found in the learning manual, section 4.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing a time signature only once

2013-01-15 Thread Christopher R. Maden
On 01/15/2013 04:05 PM, Kieren MacMillan wrote:
 You need to specify the context:

OK... a more complete example is attached.

The time signature is invoked in songGlobalsVerse.

That’s used in a Staff:

songVocals = \new Staff 
  \clef treble
  
{
  \songGlobalsIntro
  \repeat volta 6 {
\songGlobalsVerse
\songGlobalsChorus
  }
}
\new Voice = vocal {
  \songTacetIntro
  \repeat volta 6 {
\songMelodyVerse
\songMelodyChorus
  }
}
  


That is, in turn, used in both a layout and a midi context:

\score {
  
\songVocals
  
  \layout {}
}

The time signature is displayed.

~Chris
-- 
Chris Maden, text nerd  URL: http://crism.maden.org/ 
Axial tilt is the reason for the season.
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9  A210 4A51 DBAC 5C5C 3D5E
\version 2.14.2

\include english.ly

songGlobalsIntro = {
  \time 6/8
  \partial 8 s8 | s4. s4
}

songGlobalsVerse = {
  s8 |
  \once \override TimeSignature #'stencil = ##f
  \time 6/8
  % \once \override TimeSignature #'stencil = ##f
  % \override Staff.TimeSignature #'transparent = ##t
  s2. | \bar ||
}

songGlobalsChorus = {
  \time 4/4
  % \override Staff.TimeSignature #'transparent = ##f
  s2. s8
}

songTacetIntro = {
  \partial 8 r8 | r4. r4
}

songMelodyVerse = \relative c' {
  c8 | c'4.~ c8 r4 |
}

songMelodyChorus = \relative c' {
  c2. r8
}

songVocals = \new Staff 
  \clef treble
  
{
  \songGlobalsIntro
  \repeat volta 6 {
\songGlobalsVerse
\songGlobalsChorus
  }
}
\new Voice = vocal {
  \songTacetIntro
  \repeat volta 6 {
\songMelodyVerse
\songMelodyChorus
  }
}
  


\score {
  
\songVocals
  
  \layout {}
}

\score {
  \unfoldRepeats
  
\songVocals
  
  \midi {}
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing a time signature only once

2013-01-15 Thread james

On Jan 15, 2013, at 10:18 PM, Christopher R. Maden wrote:

 On 01/15/2013 04:05 PM, Kieren MacMillan wrote:
 You need to specify the context:
 
 OK... a more complete example is attached.
 
 The time signature is invoked in songGlobalsVerse.
 
 That’s used in a Staff:
 
 songVocals = \new Staff 
  \clef treble
  
{
  \songGlobalsIntro
  \repeat volta 6 {
\songGlobalsVerse
\songGlobalsChorus
  }
}
\new Voice = vocal {
  \songTacetIntro
  \repeat volta 6 {
\songMelodyVerse
\songMelodyChorus
  }
}
 
 
 
 That is, in turn, used in both a layout and a midi context:
 
 \score {
  
\songVocals
 
  \layout {}
 }
 
 The time signature is displayed.
 
 ~Chris

As previously noted in kieren's email, you need to add Staff. before 
TimeSignature #'stencil = ##f in order to specify the context that you want the 
override to take place in. In the Internals reference, you can see that the 
TimeSignature engraver lives in the Staff context, and as explained in the 
learning manual section 4.3.1 (using barlines instead of time signatures, but 
exactly the same situation) when you want to override the visibility of 
something, you have to tell lilypond which context it's in, if it's not the 
implicit Voice context.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Removing a time signature only once

2013-01-15 Thread Christopher R. Maden
On 01/15/2013 04:27 PM, james wrote:
 As previously noted in kieren's email, you need to add Staff.
 before TimeSignature #'stencil = ##f in order to specify the context
 that you want the override to take place in.

Yes!  Thank you, James.  I had not properly understood Kieren.  This
works now.

~Chris
-- 
Chris Maden, text nerd  URL: http://crism.maden.org/ 
Axial tilt is the reason for the season.
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9  A210 4A51 DBAC 5C5C 3D5E

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user