Re: remove first empty staff and ambitus

2014-10-09 Thread Kai Lautenschläger
Dear Thomas,

Thnx so much. It works perfectly! I have been fiddling around with the problem 
for over half a year. Really: Thanks a lot. Also to Knute and HTH!

Kai

---
kai.lautenschlae...@me.com

Am 5.10.2014 um 15:30 schrieb Thomas Morley thomasmorle...@gmail.com:

 2014-10-02 20:50 GMT+02:00 Kai Lautenschläger kai.lautenschlae...@me.com:
 Dear list,
 
 a few weeks ago I asked about removing the first empty staff in choir music 
 and inserting the ambitus in the n-th system for selected voices. From the 
 answers you gave, I could built the following example, which solved a whole 
 set of problems.
 
 Now, can anyone come up with an idea how to remove the upper staff in the 
 first system? I’m grateful for any hints. Thanks
 
 best regards, Kai
 
 \version 2.19.15
 
 musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
 musicII = \relative { \repeat unfold 5 { c''4^second voice b' c, g' } }
 ambitus = \with { \consists Ambitus_engraver }
 noAmbitusAtEnd = {
  \override Voice.AmbitusNoteHead.break-visibility = ##(#f #f #t)
  \override Voice.AmbitusLine.break-visibility = ##(#f #f #t)
 }
 
 \score {
  
\new Staff = StaffI
\new Voice = VoiceI { s1*5 \break \new Voice \ambitus \musicI }
\new Staff = StaffII
\new Voice = VoiceII \ambitus { \musicII }
 
  \layout {
\context {
  \Staff
  \RemoveEmptyStaves
 
 Delete Staff in the following command.
 You are adding something to the Staff-context-definition here.
 LilyPond will be confused by repeating the Staff-context, although you
 are in there already.
 
  \override Staff.VerticalAxisGroup.remove-first = ##t
 
 I'm surprised the following works, because noAmbitusAtEnd is defined
 for Voice-context
 
  \noAmbitusAtEnd
 
}
  }
 }
 
 
 Though the main problem is that the ambitus appears end-of-line at a
 line-break here This adds note-heads to this lines. And as default
 this will cause this line alive.
 Making them invisible via break-visibility is not enough, they're still there.
 
 You could try to use settings for keep-AliveInterfaces as described here:
 http://lsr.di.unimi.it/LSR/Item?id=312
 
 Though, no clue if it will work in real life scores:
 
 \version 2.19.13
 
 keep-AliveInterfaces =
 #'(
  rhythmic-grob-interface
  lyric-interface
  stanza-number-interface
  percent-repeat-interface
 )
 
 musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
 musicII = \relative { \repeat unfold 5 { c''4_second voice b' c, g' } }
 ambitus = \with { \consists Ambitus_engraver }
 noAmbitusAtEnd = {
  \override Staff.AmbitusNoteHead.break-visibility = ##(#f #f #t)
  \override Staff.AmbitusLine.break-visibility = ##(#f #f #t)
 }
 
 \score {
  
\new Staff = StaffI
\new Voice = VoiceI {
\set Staff.keepAliveInterfaces = #'()
s1*5
\break
\set Staff.keepAliveInterfaces = \keep-AliveInterfaces
\new Voice \ambitus
\musicI
}
\new Staff = StaffII
\new Voice = VoiceII \ambitus {
\musicII
s1*5
}
 
  \layout {
\noAmbitusAtEnd
\context {
  \Staff
  \RemoveEmptyStaves
  \override VerticalAxisGroup.remove-first = ##t
}
  }
 }
 
 
 
 HTH,
  Harm

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


Re: remove first empty staff and ambitus

2014-10-09 Thread Simon Albrecht
Hello Kai,

HTH would sure be one of the most active contributors to this list if he were 
one, but it's only an abbreviation for 'hope that helps'... I also had to look 
that one up when I first came across it :-)

Yours, Simon

Am 09-Oct-2014 14:21:57 +0200 schrieb kai.lautenschlae...@me.com: 
Dear Thomas,   Thnx so much. It works perfectly! I have been fiddling around 
with the problem for over half a year. Really: Thanks a lot. Also to Knute and 
HTH! Kai   --- kai.lautenschlae...@me.com  
  Am 5.10.2014 um 15:30 schrieb Thomas Morley : 

 2014-10-02 20:50 GMT+02:00 Kai Lautenschläger :

Dear list,

a few weeks ago I asked about removing the first empty staff in choir music and 
inserting the ambitus in the n-th system for selected voices. From the answers 
you gave, I could built the following example, which solved a whole set of 
problems.

Now, can anyone come up with an idea how to remove the upper staff in the first 
system? I'm grateful for any hints. Thanks

best regards, Kai

\version 2.19.15

musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
musicII = \relative { \repeat unfold 5 { c''4^second voice b' c, g' } }
ambitus = \with { \consists Ambitus_engraver }
noAmbitusAtEnd = {
 \override Voice.AmbitusNoteHead.break-visibility = ##(#f #f #t)
 \override Voice.AmbitusLine.break-visibility = ##(#f #f #t)
}

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


Re: remove first empty staff and ambitus

2014-10-05 Thread Thomas Morley
2014-10-02 20:50 GMT+02:00 Kai Lautenschläger kai.lautenschlae...@me.com:
 Dear list,

 a few weeks ago I asked about removing the first empty staff in choir music 
 and inserting the ambitus in the n-th system for selected voices. From the 
 answers you gave, I could built the following example, which solved a whole 
 set of problems.

 Now, can anyone come up with an idea how to remove the upper staff in the 
 first system? I’m grateful for any hints. Thanks

 best regards, Kai

  \version 2.19.15

 musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
 musicII = \relative { \repeat unfold 5 { c''4^second voice b' c, g' } }
 ambitus = \with { \consists Ambitus_engraver }
 noAmbitusAtEnd = {
   \override Voice.AmbitusNoteHead.break-visibility = ##(#f #f #t)
   \override Voice.AmbitusLine.break-visibility = ##(#f #f #t)
 }

 \score {
   
 \new Staff = StaffI
 \new Voice = VoiceI { s1*5 \break \new Voice \ambitus \musicI }
 \new Staff = StaffII
 \new Voice = VoiceII \ambitus { \musicII }
   
   \layout {
 \context {
   \Staff
   \RemoveEmptyStaves

Delete Staff in the following command.
You are adding something to the Staff-context-definition here.
LilyPond will be confused by repeating the Staff-context, although you
are in there already.

   \override Staff.VerticalAxisGroup.remove-first = ##t

I'm surprised the following works, because noAmbitusAtEnd is defined
for Voice-context

   \noAmbitusAtEnd

 }
   }
 }


Though the main problem is that the ambitus appears end-of-line at a
line-break here This adds note-heads to this lines. And as default
this will cause this line alive.
Making them invisible via break-visibility is not enough, they're still there.

You could try to use settings for keep-AliveInterfaces as described here:
http://lsr.di.unimi.it/LSR/Item?id=312

Though, no clue if it will work in real life scores:

\version 2.19.13

keep-AliveInterfaces =
#'(
  rhythmic-grob-interface
  lyric-interface
  stanza-number-interface
  percent-repeat-interface
)

musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
musicII = \relative { \repeat unfold 5 { c''4_second voice b' c, g' } }
ambitus = \with { \consists Ambitus_engraver }
noAmbitusAtEnd = {
  \override Staff.AmbitusNoteHead.break-visibility = ##(#f #f #t)
  \override Staff.AmbitusLine.break-visibility = ##(#f #f #t)
}

\score {
  
\new Staff = StaffI
\new Voice = VoiceI {
\set Staff.keepAliveInterfaces = #'()
s1*5
\break
\set Staff.keepAliveInterfaces = \keep-AliveInterfaces
\new Voice \ambitus
\musicI
}
\new Staff = StaffII
\new Voice = VoiceII \ambitus {
\musicII
s1*5
}
  
  \layout {
\noAmbitusAtEnd
\context {
  \Staff
  \RemoveEmptyStaves
  \override VerticalAxisGroup.remove-first = ##t
}
  }
}



HTH,
  Harm

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


Re: remove first empty staff and ambitus

2014-10-04 Thread Kai Lautenschläger
Hi Knute,

Am 3.10.2014 um 17:21 schrieb Knute Snortum ksnor...@gmail.com:

 I'm not sure what you're trying to do.  For example, why not one Staff and 
 Voice? 
I try to do the following: I have five voices (v1 - v5) and want to have 
ambitus (:) at their first appearance. It should look like this:


———8—SCHNIPP——

Titel etc.

v1:—



v2:—
v3:—
v4:—
v5:—



v1—
v2—
v3—
v4—
v5—

———8—SCHNAPP——


 Right now LilyPond is doing exactly what you told it to do: be silent in the 
 first voice for five measures.

that is true, only that I thought to have asked lilypond to hide/remove the 
lines (including the first lines) of voices, that are silent.

My aim is now, to keep everything like in my not-so-tiny example but have the 
empty first staff of the silent voice not printed. Am I missing something 
simple? Is there a way?

Thanks to much.

Kai


 On Thu, Oct 2, 2014 at 11:50 AM, Kai Lautenschläger 
 kai.lautenschlae...@me.com wrote:
 Dear list,
 
 a few weeks ago I asked about removing the first empty staff in choir music 
 and inserting the ambitus in the n-th system for selected voices. From the 
 answers you gave, I could built the following example, which solved a whole 
 set of problems.
 
 Now, can anyone come up with an idea how to remove the upper staff in the 
 first system? I’m grateful for any hints. Thanks
 
 best regards, Kai
 
  \version 2.19.15
 
 musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
 musicII = \relative { \repeat unfold 5 { c''4^second voice b' c, g' } }
 ambitus = \with { \consists Ambitus_engraver }
 noAmbitusAtEnd = {
   \override Voice.AmbitusNoteHead.break-visibility = ##(#f #f #t)
   \override Voice.AmbitusLine.break-visibility = ##(#f #f #t)
 }
 
 \score {
   
 \new Staff = StaffI
 \new Voice = VoiceI { s1*5 \break \new Voice \ambitus \musicI }
 \new Staff = StaffII
 \new Voice = VoiceII \ambitus { \musicII }
   
   \layout {
 \context {
   \Staff
   \RemoveEmptyStaves
   \override Staff.VerticalAxisGroup.remove-first = ##t
   \noAmbitusAtEnd
 
 }
   }
 }
 
 
 ---
 kai.lautenschlae...@me.com
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user
 

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


Re: remove first empty staff and ambitus

2014-10-04 Thread Son_V
Hi, I removed the first empty staff from a chorus score, but I don't know
what an ambitus is, nor I found it in behind bars (and I'm just a
beginner). So I don't expect this could be useful, but at least ...

In my scores, that I write whit Musescore and then I export to an xml file
that I import in Frescobaldi, I have a 
  \layout {
\context {
  \Score
  
.. at the beginning of the file. I succeeded in removing empty staves,
the first also, putting in a \layout that I already found in the file
produced via MuseScore, the following lines, in this exact order:

 \layout {

\context {
  
\Staff \RemoveEmptyStaves
\override VerticalAxisGroup #'remove-first = ##t
  }

HTH
  }



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/remove-first-empty-staff-and-ambitus-tp167066p167138.html
Sent from the User mailing list archive at Nabble.com.

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


Re: remove first empty staff and ambitus

2014-10-04 Thread Son_V
putting in a \layout that I already found in the file produced via
MuseScore

I forgot to say, at the end of the file.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/remove-first-empty-staff-and-ambitus-tp167066p167139.html
Sent from the User mailing list archive at Nabble.com.

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


Re: remove first empty staff and ambitus

2014-10-03 Thread Knute Snortum
I'm not sure what you're trying to do.  For example, why not one Staff and
Voice?  Right now LilyPond is doing exactly what you told it to do: be
silent in the first voice for five measures.


Knute Snortum
(via Gmail)

On Thu, Oct 2, 2014 at 11:50 AM, Kai Lautenschläger 
kai.lautenschlae...@me.com wrote:

 Dear list,

 a few weeks ago I asked about removing the first empty staff in choir
 music and inserting the ambitus in the n-th system for selected voices.
 From the answers you gave, I could built the following example, which
 solved a whole set of problems.

 Now, can anyone come up with an idea how to remove the upper staff in the
 first system? I’m grateful for any hints. Thanks

 best regards, Kai

  \version 2.19.15

 musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
 musicII = \relative { \repeat unfold 5 { c''4^second voice b' c, g' } }
 ambitus = \with { \consists Ambitus_engraver }
 noAmbitusAtEnd = {
   \override Voice.AmbitusNoteHead.break-visibility = ##(#f #f #t)
   \override Voice.AmbitusLine.break-visibility = ##(#f #f #t)
 }

 \score {
   
 \new Staff = StaffI
 \new Voice = VoiceI { s1*5 \break \new Voice \ambitus \musicI }
 \new Staff = StaffII
 \new Voice = VoiceII \ambitus { \musicII }
   
   \layout {
 \context {
   \Staff
   \RemoveEmptyStaves
   \override Staff.VerticalAxisGroup.remove-first = ##t
   \noAmbitusAtEnd

 }
   }
 }


 ---
 kai.lautenschlae...@me.com


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

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


remove first empty staff and ambitus

2014-10-02 Thread Kai Lautenschläger
Dear list,

a few weeks ago I asked about removing the first empty staff in choir music and 
inserting the ambitus in the n-th system for selected voices. From the answers 
you gave, I could built the following example, which solved a whole set of 
problems.

Now, can anyone come up with an idea how to remove the upper staff in the first 
system? I’m grateful for any hints. Thanks

best regards, Kai

 \version 2.19.15

musicI = \relative { \repeat unfold 5 { c'4^first voice b' c, g' } }
musicII = \relative { \repeat unfold 5 { c''4^second voice b' c, g' } }
ambitus = \with { \consists Ambitus_engraver }
noAmbitusAtEnd = {
  \override Voice.AmbitusNoteHead.break-visibility = ##(#f #f #t)
  \override Voice.AmbitusLine.break-visibility = ##(#f #f #t)
}

\score {
  
\new Staff = StaffI
\new Voice = VoiceI { s1*5 \break \new Voice \ambitus \musicI }
\new Staff = StaffII
\new Voice = VoiceII \ambitus { \musicII }
  
  \layout {
\context {
  \Staff
  \RemoveEmptyStaves
  \override Staff.VerticalAxisGroup.remove-first = ##t
  \noAmbitusAtEnd

}
  }
}


---
kai.lautenschlae...@me.com


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