Re: Hide time signature in final partial measure

2019-04-15 Thread Thomas Liggett
On Sat, 13 Apr 2019 at 18:40, Michael Gerdau  wrote:
>
> Hi Thomas,
>
> just realized, I did not answer your original question.
>
> If you want the TimeSignature change and just not show it, you need to \omit 
> it in the Voice instead of the NullVoice.
>
> Kind regards,
> Michael
> --
> Michael Gerdau email: m...@qata.de
> GPG-keys available on request or at public keyserver

Hi Michael,

Thanks for your help – it pointed me in the direction of the manual in
which I discovered that NullVoice isn’t intended to be used for a
global-type voice (with time signatures, baronies etc.) but rather
just for aligning lyrics. So, as you say, replacing NullVoice with
Voice produces the expected behaviour.

Kind regards,
Thomas

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


Hide time signature in final partial measure

2019-04-12 Thread Thomas Liggett
Hi all,

In this score with a final partial measure (to balance the initial partial 
measure), what is the best way to hide the time signature in the final measure? 
The \omit Staff.TimeSignature has no apparent effect.

Thanks,
Thomas

%%%

\version "2.19.82"

global = { \time 4/4 
   \partial 4 s4
   \repeat volta 2 { s1 }
   \alternative { 
 { s1 } 
 { \omit Staff.TimeSignature \time 3/4 s2. } }
   \bar "|."
}

myNotes = \relative c' { e4 f2 g a b c d4 }

\score {
  \new Staff 
  << \new NullVoice { \global }
 \new Voice { \myNotes } >>
}

%%%



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


Re: Control of spacing between left edge and first note

2017-03-31 Thread Thomas Liggett
Hello all,

Bumping this in the hope that someone might be able to help me continue my 
gradual ascent of the LIlyPond learning curve!

Thanks,
Thomas

> Begin forwarded message:
> 
> From: Thomas Liggett <thomas.ligg...@gmail.com>
> Subject: Re: Control of spacing between left edge and first note
> Date: 27 March 2017 at 1:56:04 PM NZDT
> To: Andrew Bernard <andrew.bern...@gmail.com>
> Cc: "lilypond-user@gnu.org" <lilypond-user@gnu.org>
> 
> Hi Andrew,
> 
> With your help I've got the desired result – many thanks! (BTW I was
> able to set the "key-signature extra-space" without including that
> whole alist.) But I'd like to better understand the logic behind
> what's happening in my code below.
> 
> To produce a staff with no clef, key signature, time signature, or
> barlines, and to be able to specify the spacing between the left edge
> of the staff and the first note (i.e. to be able to produce diagrams
> comprising only staves with note-groups as in the example below):
> 
> * just making the clef a point-stencil, omitting the bar-engraver, and
> using \override LeftEdge.space-alist.clef = #'(extra-space . xxx)
> achieves this for the first system, but NOT for any subsequent systems
> (hence my original query)
> 
> To control the first system AND subsequent systems:
> 
> * a (semantically irrelevant) key signature is required (set to a
> point-stencil, otherwise extra space is introduced) – C major will
> suffice. Why? (What's the difference to Lilypond between "no key
> signature" and "a specified key signature of no sharps or flats"?!?)
> 
> * barlines, made transparent, are required to "reference off" as you
> say. (Transparent barlines, naturally, include space either side, so
> in order to have an arbitrary number of notes spaced evenly across a
> system – i.e. in this example, to avoid an extra space between the two
> groups of 8 notes – a time signature equal to the length of the system
> must be specified. But the nice thing about omitting the bar engraver
> in my original was that it avoided the need to specify a semantically
> irrelevant time signature.) But how are barlines even involved in
> controlling the space between the left edge of the staff and the first
> note?
> 
> Is it related to the issue Urs is dealing with in this thread?
> http://lists.gnu.org/archive/html/lilypond-user/2017-03/msg00627.html
> 
> Thanks again,
> Thomas
> 
> %
> 
> \version "2.19.41"
> 
> \paper { indent = 0 }
> 
> \layout {
>  \context {
>\Score
>\override LeftEdge.space-alist.clef = #'(extra-space . 2) % space
> between left edge and invisible clef
>\remove Bar_number_engraver
>  }
>  \context {
>\Staff
>\remove Time_signature_engraver
> %\remove Bar_engraver
>\override Clef.stencil = #point-stencil % make clef effectively invisible
>\override Clef.space-alist.key-signature = #'(extra-space . 0) %
> space between invisible clef and invisible key sig
>\override KeySignature.stencil = #point-stencil
>\override BarLine.transparent = ##t
>  }
> }
> \score {
>  \relative c'' {
>\clef "treble"
>\key c \major % comment out this line and see what happens!
>\time 4/2 % comment out this line and there's extra space added
> where default (4/4) barlines would be
>\stemUp
>b8 b c c d d e e f f g g a a b b \break
>b,, b c c d d e e f f g g a a b b
>  }
> }
> 
> %
> 
> 
> On Sat, Mar 11, 2017 at 6:01 PM Andrew Bernard <andrew.bern...@gmail.com> 
> wrote:
>> 
>> Hi Thomas,
>> 
>> Try this perhaps.
>> 
>> [You have to retain clefs and barlines and render them transparent, so that 
>> they exist to reference off. One ought to be able to just set the value 
>> (key-signature extra-space . 8) say, but I am not sure why we need the whole 
>> shebang alist.]
>> 
>> 
>> Andrew
>> 
>> == snip
>> 
>> \version "2.19.56"
>> 
>> \paper { indent = 0 }
>> 
>> \score {
>>  \relative c'' {
>> 
>>\override Staff.KeySignature.stencil = #point-stencil
>>\override Staff.Clef.stencil = #point-stencil
>>\override Staff.BarLine.transparent = ##t
>> 
>>\key a \major
>>\stemUp
>>%
>> 
>>b8 b c c d d e e f f g g a a b b
>>\break
>>b,, b c c d d e e f f g g a a b b
>>  }
>> 
>>  \layout {
>>\context {
>>  \Score
>>  \remove Bar_number_engraver
>>}
>>\context {
>>  \Staff

Re: Control of spacing between left edge and first note

2017-03-26 Thread Thomas Liggett
Hi Andrew,

With your help I've got the desired result – many thanks! (BTW I was
able to set the "key-signature extra-space" without including that
whole alist.) But I'd like to better understand the logic behind
what's happening in my code below.

To produce a staff with no clef, key signature, time signature, or
barlines, and to be able to specify the spacing between the left edge
of the staff and the first note (i.e. to be able to produce diagrams
comprising only staves with note-groups as in the example below):

* just making the clef a point-stencil, omitting the bar-engraver, and
using \override LeftEdge.space-alist.clef = #'(extra-space . xxx)
achieves this for the first system, but NOT for any subsequent systems
(hence my original query)

To control the first system AND subsequent systems:

* a (semantically irrelevant) key signature is required (set to a
point-stencil, otherwise extra space is introduced) – C major will
suffice. Why? (What's the difference to Lilypond between "no key
signature" and "a specified key signature of no sharps or flats"?!?)

* barlines, made transparent, are required to "reference off" as you
say. (Transparent barlines, naturally, include space either side, so
in order to have an arbitrary number of notes spaced evenly across a
system – i.e. in this example, to avoid an extra space between the two
groups of 8 notes – a time signature equal to the length of the system
must be specified. But the nice thing about omitting the bar engraver
in my original was that it avoided the need to specify a semantically
irrelevant time signature.) But how are barlines even involved in
controlling the space between the left edge of the staff and the first
note?

Is it related to the issue Urs is dealing with in this thread?
http://lists.gnu.org/archive/html/lilypond-user/2017-03/msg00627.html

Thanks again,
Thomas

%

\version "2.19.41"

\paper { indent = 0 }

\layout {
  \context {
\Score
\override LeftEdge.space-alist.clef = #'(extra-space . 2) % space
between left edge and invisible clef
\remove Bar_number_engraver
  }
  \context {
\Staff
\remove Time_signature_engraver
%\remove Bar_engraver
\override Clef.stencil = #point-stencil % make clef effectively invisible
\override Clef.space-alist.key-signature = #'(extra-space . 0) %
space between invisible clef and invisible key sig
\override KeySignature.stencil = #point-stencil
\override BarLine.transparent = ##t
  }
}
\score {
  \relative c'' {
\clef "treble"
\key c \major % comment out this line and see what happens!
\time 4/2 % comment out this line and there's extra space added
where default (4/4) barlines would be
\stemUp
b8 b c c d d e e f f g g a a b b \break
b,, b c c d d e e f f g g a a b b
  }
}

%


On Sat, Mar 11, 2017 at 6:01 PM Andrew Bernard  wrote:
>
> Hi Thomas,
>
> Try this perhaps.
>
> [You have to retain clefs and barlines and render them transparent, so that 
> they exist to reference off. One ought to be able to just set the value 
> (key-signature extra-space . 8) say, but I am not sure why we need the whole 
> shebang alist.]
>
>
> Andrew
>
> == snip
>
> \version "2.19.56"
>
> \paper { indent = 0 }
>
> \score {
>   \relative c'' {
>
> \override Staff.KeySignature.stencil = #point-stencil
> \override Staff.Clef.stencil = #point-stencil
> \override Staff.BarLine.transparent = ##t
>
> \key a \major
> \stemUp
> %
>
> b8 b c c d d e e f f g g a a b b
> \break
> b,, b c c d d e e f f g g a a b b
>   }
>
>   \layout {
> \context {
>   \Score
>   \remove Bar_number_engraver
> }
> \context {
>   \Staff
>   \remove Time_signature_engraver
>
>   \override Clef.space-alist =
>   #'((ambitus extra-space . 2.0)
>  (breathing-sign minimum-space . 0.0)
>  (cue-end-clef extra-space . 0.8)
>  (clef extra-space . 0.8)
>  (cue-clef extra-space . 0.8)
>  (staff-bar extra-space . 0.0)
>  (key-cancellation extra-space . 0.0)
>  (key-signature extra-space . 8)
>  (time-signature extra-space . 1.0)
>  (custos extra-space . 0.0)
>  (first-note fixed-space . 0.0)
>  (right-edge extra-space . 0.0))
>
> }
>   }
> }
>
> == snip
>

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


Control of spacing between left edge and first note

2017-03-10 Thread Thomas Liggett
Hi all,

I have a staff without any initial clef, time signature or key signature, and 
want to increase the space between the left edge of the stave and the first 
note. The method below works for the first system, but then reverts to the 
default (closer) spacing for the second system.

I’ve referred to the manuals and this snippet: 
http://lsr.di.unimi.it/LSR/Item?id=648

(I could only seem to control the spacing by retaining the clef (although made 
invisible as a point-stencil) between the left edge and the first note, 
although it would seem preferable to omit it if possible.)

Thanks,
Thomas


\version "2.19.41"

\paper { indent = 0 }

\layout {
  \context {
\Score
\override LeftEdge.space-alist.clef = #'(extra-space . 1) % space between 
left edge and clef
\remove Bar_number_engraver
  }
  \context {
\Staff
\override Clef.stencil = #point-stencil % make clef effectively invisible
\override Clef.space-alist.first-note = #'(extra-space . 1) % space between 
clef and first note
\remove Time_signature_engraver
\remove Bar_engraver
  }
}
\score { 
  \relative c'' { 
\stemUp
b8 b c c d d e e f f g g a a b b \break
b,, b c c d d e e f f g g a a b b
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Scheme book (p)review

2016-05-03 Thread Thomas Liggett
Urs Liska  openlilylib.org> writes:

> 
> Hi all,
> 
> preparing a course I'm going to give in June and July turned into a
> substantial task: I'm ending up writing the book that *I* would have
> needed some years ago. Basically what I'm trying to do is give readers a
> chance to properly understand how Scheme can basically be used in
> LilyPond. It's the same objective as the Scheme tutorials started a
> while ago on Scores of Beauty, but heading for some kind of
> comprehensiveness.
> 
> The book is far from complete and from a state where I'd publicly share
> the link but if anyone is interested in (p)reviewing i I'll do so
> privately. Basically I'm interested in three kinds of critical looks
> from different kinds of readers:
> 
> - pointing to issues that are not explained clearly or thoroughly enough
>   (i.e for example where I'm still relying on knowledge the reader
> doesn't have yet)
> - comments on missing topics
> - spotting factual errors
> 
> Best
> Urs
> 

Hi Urs,

I’d be interested in proofreading as well, from the point of view of a
beginning user to whom, frustratingly, Scheme is a closed book.

For what it’s worth, I’m an editor/proofreader in my day job.

Kind regards,
Thomas



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