Re: Changing staff-staff-spacing from page to page

2023-12-14 Thread Kieren MacMillan
Hi Knute,

> Le mardi 10 octobre 2023 à 09:41 -0700, Knute Snortum a écrit :
>> Is there a way to change staff-staff-spacing in different pages in the same 
>> piece? 
> Unfortunately not. You have to chose settings that work well for the whole 
> score (or, if you must, resort to hidden markups taking space).

This is something I inject using the edition-engraver — makes it so simple, and 
keeps presentation code separate from content code.

Cheers,
Kieren.
__

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.




Re: change staff-staff-spacing in a single score?

2023-11-07 Thread Jean Abou Samra
Le mardi 07 novembre 2023 à 16:48 -0500, David Zelinsky a écrit :
> Though I am curious whether this was just an accident of implementation
> and would be easy to change, or if there is a more structural reason.


It is purely a bug. I've just
found https://gitlab.com/lilypond/lilypond/-/issues/1885 . I'm quite sure there
were more recent discussions, but maybe not on the bug tracker.




signature.asc
Description: This is a digitally signed message part


Re: change staff-staff-spacing in a single score?

2023-11-07 Thread David Zelinsky
Jean Abou Samra  writes:

> Le mardi 07 novembre 2023 à 00:55 -0500, David Zelinsky a écrit :
>> Is there a way to change the spacing between staves (single-staff
>> systems) in one score, in a document with multiple scores, without
>> introducing a page break?
>
> Unfortunately, the answer is currently no.

Thanks, Jean.  Good to at least have confirmation.

Though I am curious whether this was just an accident of implementation
and would be easy to change, or if there is a more structural reason.


Paul Hodges  writes:

> Assuming your sections are all (or nearly all) less than half a page,
> you could halve the paper requirement by typesetting onto landscape A5
> (or whatever is half the size of your output paper) and print from
> Acrobat (or whatever) two-up on each page.
>

Thanks, Paul.  That's a good idea.

-David



Re: change staff-staff-spacing in a single score?

2023-11-07 Thread Paul Hodges
Assuming your sections are all (or nearly all) less than half a page, you could 
halve the paper requirement by typesetting onto landscape A5 (or whatever is 
half the size of your output paper) and print from Acrobat (or whatever) two-up 
on each page.

Paul


 From:   David Zelinsky  
 To:
 Sent:   07/11/2023 5:55 
 Subject:   change staff-staff-spacing in a single score? 

Is there a way to change the spacing between staves (single-staff 
systems) in one score, in a document with multiple scores, without 
introducing a page break?  The only way I've found in the manual to 
change the spacing of systems (as opposed to staves within a system) is 
in a \paper block, and the lowest level that can occur is in a 
\bookpart, which introduces a page break which I don't want.  I could 
use NonMusicalPaperColumn.line-break-system-details, but that seems to 
only apply to one line, so I would need to set it separately for each 
line in the score, which is a nuisance. 
 
To explain better what I need, I am re-engraving some short sections 
from an orchestra part, to faithfully match the lines in the original 
but with some particular rhythmic changes that the conductor wants.  I 
will print these out and cut and paste them over the original (using 
removable/restickable adhesive), so I want everything to match the 
original as closely as possible.  The sections range from 1 to 5 lines 
each. 
 
Currently I am using a separate \score for each short section, which 
seems to make it easier to maintain control over the line breaks.  But 
I'm trying to fit as many on of these short scores on page as I 
reasonably can, to save trees.  I've set the staff size and 
staff-staff-spacing globally to match the average in the original pretty 
well, but of course the spacing varies some from page to page, so some 
of the sections need adjustment.  I could introduce a new \bookpart and 
\paper block for those sections, but I'd rather not have those extra 
page breaks. 
 
Is there a better way to do this? 
 
-David 
 


Re: change staff-staff-spacing in a single score?

2023-11-07 Thread Jean Abou Samra
Le mardi 07 novembre 2023 à 00:55 -0500, David Zelinsky a écrit :
> Is there a way to change the spacing between staves (single-staff
> systems) in one score, in a document with multiple scores, without
> introducing a page break?

Unfortunately, the answer is currently no.

Best,
Jean



signature.asc
Description: This is a digitally signed message part


change staff-staff-spacing in a single score?

2023-11-06 Thread David Zelinsky
Is there a way to change the spacing between staves (single-staff
systems) in one score, in a document with multiple scores, without
introducing a page break?  The only way I've found in the manual to
change the spacing of systems (as opposed to staves within a system) is
in a \paper block, and the lowest level that can occur is in a
\bookpart, which introduces a page break which I don't want.  I could
use NonMusicalPaperColumn.line-break-system-details, but that seems to
only apply to one line, so I would need to set it separately for each
line in the score, which is a nuisance.

To explain better what I need, I am re-engraving some short sections
from an orchestra part, to faithfully match the lines in the original
but with some particular rhythmic changes that the conductor wants.  I
will print these out and cut and paste them over the original (using
removable/restickable adhesive), so I want everything to match the
original as closely as possible.  The sections range from 1 to 5 lines
each.

Currently I am using a separate \score for each short section, which
seems to make it easier to maintain control over the line breaks.  But
I'm trying to fit as many on of these short scores on page as I
reasonably can, to save trees.  I've set the staff size and
staff-staff-spacing globally to match the average in the original pretty
well, but of course the spacing varies some from page to page, so some
of the sections need adjustment.  I could introduce a new \bookpart and
\paper block for those sections, but I'd rather not have those extra
page breaks.

Is there a better way to do this?

-David



Re: Changing staff-staff-spacing from page to page

2023-10-10 Thread Jean Abou Samra
Le mardi 10 octobre 2023 à 09:41 -0700, Knute Snortum a écrit :
> Is there a way to change staff-staff-spacing in different pages in the same
> piece? 


Unfortunately not. You have to chose settings that work well for the whole score
(or, if you must, resort to hidden markups taking space).


>     % The following seems to be ignored
>     \override Score.StaffGrouper.staff-staff-spacing.padding = 3


Yes, because there is only one StaffGrouper for the whole score.


signature.asc
Description: This is a digitally signed message part


Changing staff-staff-spacing from page to page

2023-10-10 Thread Knute Snortum
Is there a way to change staff-staff-spacing in different pages in the same
piece?  For instance, here is a MWE that shows how I thought it might be
done, but it doesn't work:

\version "2.24.2"

\new PianoStaff <<
  \new Staff \relative {
\override Score.StaffGrouper.staff-staff-spacing.padding = 10
s1 \pageBreak
% The following seems to be ignored
\override Score.StaffGrouper.staff-staff-spacing.padding = 3
s1
  }
  \new Staff \relative { \clef bass s1 \break s1 }
>>

--
Knute Snortum


Re: Increasing default piano staff spacing

2023-08-12 Thread Jin Choi
Thank you. I read that page multiple times and couldn’t figure out the proper 
context to put it in. That works great.

> On Aug 11, 2023, at 4:24 PM, Xavier Scheuer  wrote:
> 
> On Fri, 11 Aug 2023 at 20:18, Jin Choi  > wrote:
> >
> > I have a passage of piano music with a lot of kneed beams between the 
> > staves, and there’s too few objects above the bass staff to force enough 
> > space. How can I increase the default spacing between the treble and bass 
> > parts of the piano staff?
> 
> Hello,
> 
> Add
> 
> \layout {
>   \context {
> \PianoStaff
> \override StaffGrouper.staff-staff-spacing.basic-distance = #12
>   }
> }
> 
> See explanations in NR 4.4.1 Flexible vertical spacing within systems > 
> Spacing of grouped staves
> https://lilypond.org/doc/v2.25/Documentation/notation/spacing-of-grouped-staves
> 
> Cheers,
> Xavier
> 
> -- 
> Xavier Scheuer mailto:x.sche...@gmail.com>>
> 



Re: Increasing default piano staff spacing

2023-08-11 Thread Xavier Scheuer
On Fri, 11 Aug 2023 at 20:18, Jin Choi  wrote:
>
> I have a passage of piano music with a lot of kneed beams between the
staves, and there’s too few objects above the bass staff to force enough
space. How can I increase the default spacing between the treble and bass
parts of the piano staff?

Hello,

Add

\layout {
  \context {
\PianoStaff
\override StaffGrouper.staff-staff-spacing.basic-distance = #12
  }
}

See explanations in NR 4.4.1 Flexible vertical spacing within systems
> Spacing of grouped staves
https://lilypond.org/doc/v2.25/Documentation/notation/spacing-of-grouped-staves

Cheers,
Xavier

-- 
Xavier Scheuer 


Increasing default piano staff spacing

2023-08-11 Thread Jin Choi
I have a passage of piano music with a lot of kneed beams between the staves, 
and there’s too few objects above the bass staff to force enough space. How can 
I increase the default spacing between the treble and bass parts of the piano 
staff?

Here’s an example. The “dim.” clashes with the beam on beat 1, and beat 4 in 
the bass is just a mess.

\version "2.24.1"

top = { \change Staff = "upper" \voiceTwo }
bottom = { \change Staff = "lower" \voiceOne }

upper = \relative c'' {
  \key g \minor
  \new Voice {
\voiceOne
g8\(\dim gis\! a4\)~ a8\(^\markup {\italic "poco rit."} bes \tuplet 3/2 { c 
d ees\) } |  
  }
}

lower = \relative {
  \clef bass
  \key g \minor
  \new Voice {
  \voiceOne
  bes16 b \top d f
  \bottom b, c \top ees f 
  \bottom g, c \top  ees f
  \bottom a, g' \top ees \bottom f |  
  }
}


\score {
  \new PianoStaff {
<<
\new Staff = "upper" \upper
\new Staff = "lower" \lower
>>
  }
}





Re: Vertical staff spacing between song parts

2021-02-09 Thread brucep16...@outlook.com

Hi Kieren,

Thanks for your prompt response.  That worked very nicely.

BruceP

On 2/8/2021 9:20 PM, Kieren MacMillan wrote:

Hi Bruce,


I'm engraving an instrumental that has three parts; each part is two lines 
long.  How can I arrange them on the page so that there is vertical space 
between the parts.

I would separate the parts into individual scores, and then use 
score-system-spacing to control the inter-part spacing:

  SNIPPET BEGINS  
\version "2.18.2"
\language "english"

\paper {
   score-system-spacing.padding = #16
}

\score {
  \new Staff
  {
a1^"part 1"  a a a \break
a1 a a a
  }
}

\score {
  \new Staff
  {
a1^"part 2"  a a a \break
a1 a a a \break
  }
}

\score {
  \new Staff
  {
a1^"part 3"  a a a
a1 a a a \break
  }
}
  SNIPPET ENDS  

I’d also likely use something other than markup for the "titles" (e.g., "part 
3"), but that’s a different topic…

Hope that helps!
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info





Re: Vertical staff spacing between song parts

2021-02-08 Thread Kieren MacMillan
Hi Bruce,

> I'm engraving an instrumental that has three parts; each part is two lines 
> long.  How can I arrange them on the page so that there is vertical space 
> between the parts.

I would separate the parts into individual scores, and then use 
score-system-spacing to control the inter-part spacing:

  SNIPPET BEGINS  
\version "2.18.2"
\language "english"

\paper {
  score-system-spacing.padding = #16
}

\score {
 \new Staff  
 { 
   a1^"part 1"  a a a \break 
   a1 a a a
 }
}

\score {
 \new Staff  
 { 
   a1^"part 2"  a a a \break 
   a1 a a a \break
 }
}

\score {
 \new Staff  
 { 
   a1^"part 3"  a a a 
   a1 a a a \break
 }
}
  SNIPPET ENDS  

I’d also likely use something other than markup for the "titles" (e.g., "part 
3"), but that’s a different topic…

Hope that helps!
Kieren.


Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: kie...@kierenmacmillan.info




Vertical staff spacing between song parts

2021-02-08 Thread brucep16...@outlook.com

Greetings,

I'm engraving an instrumental that has three parts; each part is two 
lines long.  How can I arrange them on the page so that there is 
vertical space between the parts.


Here is a tiny example:

   \version "2.18.2" \language "english"

   \score {
 \new Staff
 {
   a1^"part 1"  a a a \break
   a1 a a a \break
   a1^"part 2"  a a a \break
   a1 a a a \break
   a1^"part 3"  a a a
   a1 a a a \break
 }
   }

Is there a way to create vertical space between the parts?

Thanks in advance for your assistance.

BruceP




Re: An alternative outside-staff spacing method (new version)

2020-02-11 Thread Paolo Prete
I just fixed the typo highlighted by Aaron. It was responsible of the
hairpin problem.
I also added these two lines, which strengthen the snippet in case of slurs
and hairpins

\override Staff.TextScript.avoid-slur = #'ignore
\override Staff.DynamicLineSpanner.outside-staff-padding = 0

Now all seems to work. Attached to this post there's the updated version.

HTH
P
%
%% SCHEME CODE %%
%

\version "2.19.83"

#(define PADDER_RECT_DEF_W (cons -3 3))
#(define OSPadderColor grey)
#(define OSPadderThickness 0.1)
#(define posIdxUp 0)
#(define posListUp '())
#(define posIdxDown 0)
#(define posListDown '())
#(define OSBox #{ \markup " " #})

#(define (box-stencil stencil thickness padding color expand?)
   "Add a box around @var{stencil}, producing a new stencil."
   (define (css-style-padding padding)
 ;; padding => (top right bottom left)
 (cond
   ((or (null? padding) (eqv? #f padding)) '(0 0 0 0))
   ((number? padding) (make-list 4 padding))
   ((number-pair? padding)
 (list (car padding) (cdr padding)
   (car padding) (cdr padding)))
   ((and (number-list? padding) (<= (length padding) 4))
 (case (length padding)
   ((1) (make-list 4 (first padding)))
   ((2) (list (first padding) (second padding)
  (first padding) (second padding)))
   ((3) (list (first padding) (second padding)
  (third padding) (second padding)))
   (else padding)))
   (else
 (begin (ly:warning "Ignoring invalid padding: ~a" padding)
'(0 0 0 0)
  (let* ((padding (css-style-padding padding))
 (padding-top (first padding))
 (padding-right (second padding))
 (padding-bottom (third padding))
 (padding-left (fourth padding))

  (x-ext-orig (ly:stencil-extent stencil X))
  (y-ext-orig (ly:stencil-extent stencil Y))
  (x-ext-inner
(cons (- (interval-start x-ext-orig) padding-left)
  (+ (interval-end x-ext-orig) padding-right)))
  (y-ext-inner
(cons (- (interval-start y-ext-orig) padding-bottom)
  (+ (interval-end y-ext-orig) padding-top)))
  (x-ext-outer (interval-widen x-ext-inner thickness))
  (y-ext-outer (interval-widen y-ext-inner thickness))
  (x-ext-new (if expand? x-ext-outer x-ext-orig))
  (y-ext-new (if expand? y-ext-outer y-ext-orig))

  (x-rule (make-filled-box-stencil (cons 0 thickness) y-ext-inner))
  (y-rule (make-filled-box-stencil x-ext-outer (cons 0 thickness)))
  (box (stencil-with-color
(ly:stencil-add
  (ly:stencil-translate-axis y-rule (interval-end y-ext-inner) Y)
  (ly:stencil-translate-axis x-rule (interval-end x-ext-inner) X)
  (ly:stencil-translate-axis y-rule (interval-start y-ext-outer) Y)
  (ly:stencil-translate-axis x-rule (interval-start x-ext-outer) X))
color)))
 (ly:make-stencil
   (ly:stencil-expr (ly:stencil-add stencil box))
   x-ext-new y-ext-new)))

#(define* (make-stencil-boxer thickness padding
#:optional (callback #f) (color OSPadderColor) (expand? #t))
   "Return function that adds a box around the grob passed as argument."
   (if (procedure? callback)
 (lambda (grob)
   (box-stencil (callback grob) thickness padding color expand?))
 (grob-transformer 'stencil (lambda (grob orig)
   (box-stencil orig thickness padding color expand?)

#(define (next-not-in-list n list) 
  (let ((s (+ 1 n))) 
(if (memv s list) 
  (next-not-in-list s list) s)))

resetOSPositions  =  #(define-scheme-function () () 
  (set! posIdxUp 0)
  (set! posListUp '())
  (set! posIdxDown 0)
  (set! posListDown '()))

#(define (symbol-list-or-music? x) (or (symbol-list? x) (ly:music? x)))

OSOObj = #(define-music-function (arg) (ly:music?)
  (let ((posIdx 0)
(name (ly:music-property arg 'name)))
  (if (eq? (ly:music-property arg 'direction) UP)
(begin
  (set! posIdxUp (next-not-in-list posIdxUp posListUp))
  (set! posListUp (cons posIdxUp posListUp))
  (set! posListUp (sort! posListUp <))
  (set! posIdx posIdxUp))
(begin
  (set! posIdxDown (next-not-in-list posIdxDown posListDown))
  (set! posListDown (cons posIdxDown posListDown))
  (set! posListDown (sort! posListDown <))
  (set! posIdx posIdxDown)))
(cond
  ((eq? name 'AbsoluteDynamicEvent)
#{ -\tweak DynamicLineSpanner.outside-staff-priority #(* 100 posIdx) #arg #}) 
  ((eq? name 'SustainEvent)
#{ -\tweak SustainPedalLineSpanner.outside-staff-priority #(* 100 posIdx) #arg #})
  ((eq? name 'SostenutoEvent)
#{ -\tweak SostenutoPedalLineSpanner.outside-staff-priority #(* 100 posIdx) #arg #})
  ((eq? name 'UnaCordaEvent)
   

Re: An alternative outside-staff spacing method (new version)

2020-02-11 Thread Paolo Prete
On Tue, Feb 11, 2020 at 9:15 PM Aaron Hill  wrote:

> On 2020-02-11 8:05 am, Paolo Prete wrote:
> > thanks to the _great_ support of Aaron and Harm, I implemented this new
> > version of the outside-staff spacing method I proposed some days ago.
>
> I am getting quite a few errors and warnings compiling the code pasted
> in the email.  I wonder if the email process has mangled something.  It
> might be worth attaching the original source, so that formatting can be
> preserved.
>
>
Here's an attachment of a new version, with your last suggestions.
I left unchanged the sorting method (I have to investigate better what you
said), but I wonder, meanwhile, if
is it possible to add a hairpin to the dynamic below the staff ( mf <  ff )
with all the positions preserved.

Thanks!
P
%% SCHEME CODE %%

\version "2.19.83"
#(define PADDER_RECT_DEF_W (cons -3 3))
#(define OSPadderColor grey)
#(define OSPadderThickness 0.1)
#(define posIdxUp 0)
#(define posListUp '())
#(define posIdxDown 0)
#(define posListDown '())
#(define OSBox #{ \markup " " #})

#(define (box-stencil stencil thickness padding color expand?)
   "Add a box around @var{stencil}, producing a new stencil."
   (define (css-style-padding padding)
 ;; padding => (top right bottom left)
 (cond
   ((or (null? padding) (eqv? #f padding)) '(0 0 0 0))
   ((number? padding) (make-list 4 padding))
   ((number-pair? padding)
 (list (car padding) (cdr padding)
   (car padding) (cdr padding)))
   ((and (number-list? padding) (<= (length padding) 4))
 (case (length padding)
   ((1) (make-list 4 (first padding)))
   ((2) (list (first padding) (second padding)
  (first padding) (second padding)))
   ((3) (list (first padding) (second padding)
  (third padding) (second padding)))
   (else padding)))
   (else
 (begin (ly:warning "Ignoring invalid padding: ~a" padding)
'(0 0 0 0)
  (let* ((padding (css-style-padding padding))
 (padding-top (first padding))
 (padding-right (second padding))
 (padding-bottom (third padding))
 (padding-left (fourth padding))

  (x-ext-orig (ly:stencil-extent stencil X))
  (y-ext-orig (ly:stencil-extent stencil Y))
  (x-ext-inner
(cons (- (interval-start x-ext-orig) padding-left)
  (+ (interval-end x-ext-orig) padding-right)))
  (y-ext-inner
(cons (- (interval-start y-ext-orig) padding-bottom)
  (+ (interval-end y-ext-orig) padding-top)))
  (x-ext-outer (interval-widen x-ext-inner thickness))
  (y-ext-outer (interval-widen y-ext-inner thickness))
  (x-ext-new (if expand? x-ext-outer x-ext-orig))
  (y-ext-new (if expand? y-ext-outer y-ext-orig))

  (x-rule (make-filled-box-stencil (cons 0 thickness) y-ext-inner))
  (y-rule (make-filled-box-stencil x-ext-outer (cons 0 thickness)))
  (box (stencil-with-color
(ly:stencil-add
  (ly:stencil-translate-axis y-rule (interval-end y-ext-inner) Y)
  (ly:stencil-translate-axis x-rule (interval-end x-ext-inner) X)
  (ly:stencil-translate-axis y-rule (interval-start y-ext-outer) Y)
  (ly:stencil-translate-axis x-rule (interval-start x-ext-outer) X))
color)))
 (ly:make-stencil
   (ly:stencil-expr (ly:stencil-add stencil box))
   x-ext-new y-ext-new)))

#(define* (make-stencil-boxer thickness padding
#:optional (callback #f) (color OSPadderColor) (expand? #t))
   "Return function that adds a box around the grob passed as argument."
   (if (procedure? callback)
 (lambda (grob)
   (box-stencil (callback grob) thickness padding color expand?))
 (grob-transformer 'stencil (lambda (grob orig)
   (box-stencil orig thickness padding color expand?)

#(define (next-not-in-list n list) 
  (let ((s (+ 1 n))) 
(if (memv s list) 
  (next-not-in-list s list) s)))

resetOSPositions  =  #(define-scheme-function () () 
  (set! posIdxUp 0)
  (set! posListUp '())
  (set! posIdxDown 0)
  (set! posListDown '()))

#(define (symbol-list-or-music? x) (or (symbol-list? x) (ly:music? x)))

OSOObj = #(define-music-function (arg) (ly:music?)
  (let ((posIdx 0)
(name (ly:music-property arg 'name)))
  (if (eq? (ly:music-property arg 'direction) UP)
(begin
  (set! posIdxUp (next-not-in-list posIdxUp posListUp))
  (set! posListUp (cons posIdxUp posListUp))
  (set! posListUp (sort! posListUp <))
  (set! posIdx posIdxUp))
(begin
  (set! posIdxDown (next-not-in-list posIdxDown posListDown))
  (set! posListDown (cons posIdxDown posListDown))
  (set! posListDown (sort! posListUp <))

Re: An alternative outside-staff spacing method (new version)

2020-02-11 Thread Aaron Hill

On 2020-02-11 8:05 am, Paolo Prete wrote:

thanks to the _great_ support of Aaron and Harm, I implemented this new
version of the outside-staff spacing method I proposed some days ago.


I am getting quite a few errors and warnings compiling the code pasted 
in the email.  I wonder if the email process has mangled something.  It 
might be worth attaching the original source, so that formatting can be 
preserved.





1) I could not find a way to add a box around piano pedals (and ask to
the gurus which  ly:xxx::print interface should I use). Obviously, you 
can
easily compensate this by adding two padding boxes above and below 
pedals,

as the following snippet shows.


The Internals Reference lists ly:piano-pedal-bracket::print for the 
PianoPedalBracket, ly:sustain-pedal::print for the SustainPedal and 
ly:text-interface::print for both SostenutoPedal and UnaCordaPedal.


But before going down that path, are you committed to supporting only 
2.19 and newer?  grob-transformer can make it easier to override the 
stencil for a grob without needing to know what the original procedure 
is:



#(define* (make-stencil-boxer thickness padding
   #:optional (callback #f) (color red) (expand? #t))
  "Return function that adds a box around the grob passed as argument."
  (if (procedure? callback)
(lambda (grob)
  (box-stencil (callback grob) thickness padding color expand?))
(grob-transformer 'stencil (lambda (grob orig)
  (box-stencil orig thickness padding color expand?)


The above should be a drop-in replacement for the existing definition.  
It makes callback optional, defaulting to using grob-transformer.  But 
if one does need to specify a procedure, they can get the original 
behavior.


Then you should only need to use...


  -\tweak stencil #(make-stencil-boxer thickness padding #f color)


...for anything.  That might clean up a little bit of logic.



3) Note too that the Scheme code is somewhat redundant. Any suggestion 
from

the Scheme gurus, for cleaning it, will be obviously greatly accepted.


member? should not be needed.  Scheme already provides memq, memv, and 
member where the difference is which form of equality is used--eq?, eqv? 
and equal?, respectively.


There appears to be a typo where your logic is sorting the "up" list 
where it should be sorting the "down" list.  This exists in both OSOObj 
and OSOPadder.  Even with the correction, the duplication of logic and 
the number of globals to maintain these lists suggests it would be 
better to encapsulate this logic.


Assuming I understood your intention, here is one way to do it:


\version "2.19.83"

#(define (make-indexer)
  (define ((less y) x) (< x y))
  (let ((indices '()) (prev 0))
(lambda* (#:optional (index (1+ prev)) (keep-prev? #f) )
  (let loop ((lst (drop-while (less index) indices)) (idx index))
(if (or (null? lst) (< idx (car lst)))
  (call-with-values
(lambda () (span (less idx) indices))
(lambda (before after)
  (set! indices (append before (list idx) after))
  (or keep-prev? (set! prev idx)) idx))
  (loop (cdr lst) (1+ idx)))

#(define foo (make-indexer))
#(define baz (make-indexer))

#(format #t "\n (foo)  : expecting 1, got ~a" (foo))
#(format #t "\n (foo 3): expecting 3, got ~a" (foo 3))
#(format #t "\n (foo 1): expecting 2, got ~a" (foo 1))
#(format #t "\n (foo)  : expecting 4, got ~a" (foo))

#(format #t "\n (baz 2): expecting 2, got ~a" (baz 2))
#(format #t "\n (baz 5 #t) : expecting 5, got ~a" (baz 5 #t))
#(format #t "\n (baz)  : expecting 3, got ~a" (baz))


Invoking make-indexer will return a procedure for generating unique 
indices on demand.  Each instance tracks its own returned indices to 
avoid duplicates.  The generator function follows your original logic to 
return the numerically next unused index based on the most recently 
returned value.  The first optional argument is a number requesting a 
specific index; though, if already used, the next available index is 
returned.  The second optional argument is a boolean indicating the 
generator should preserve the prior recently returned value.



-- Aaron Hill



An alternative outside-staff spacing method (new version)

2020-02-11 Thread Paolo Prete
Hello all,

thanks to the _great_ support of Aaron and Harm, I implemented this new
version of the outside-staff spacing method I proposed some days ago.
Please note that in this way you can order and pad outside staff objects in
*any* combination you want, in a very easy way. And you can obtain complex
layouts of objects.
You can easily switch the positions, you can add padding empty boxes and
you can pad boxes around grobs in any direction (so to bypass the
limitation of the outside-staff-padding property that bottom and top
padding must be the same)

TODO:

1) I could not find a way to add a box around piano pedals (and ask to
the gurus which  ly:xxx::print interface should I use). Obviously, you can
easily compensate this by adding two padding boxes above and below pedals,
as the following snippet shows.

2) Note too that you don't have to specify any position for the "inline"
grobs (-\tweak method). But I had to specify this position for
TupletBracket as well as for Staff.OttavaBracket. I ask the Scheme gurus if
is there a way to put them inline as well.

3) Note too that the Scheme code is somewhat redundant. Any suggestion from
the Scheme gurus, for cleaning it, will be obviously greatly accepted.

HTH!
P

%% SCHEME CODE %%

\version "2.19.83"
#(define PADDER_RECT_DEF_W (cons -3 3))
#(define OSPadderColor grey)
#(define OSPadderThickness 0.1)
#(define posIdxUp 0)
#(define posListUp '())
#(define posIdxDown 0)
#(define posListDown '())
#(define OSBox #{ \markup " " #})

#(define (box-stencil stencil thickness padding color expand?)
   "Add a box around @var{stencil}, producing a new stencil."
   (define (css-style-padding padding)
 ;; padding => (top right bottom left)
 (cond
   ((or (null? padding) (eqv? #f padding)) '(0 0 0 0))
   ((number? padding) (make-list 4 padding))
   ((number-pair? padding)
 (list (car padding) (cdr padding)
   (car padding) (cdr padding)))
   ((and (number-list? padding) (<= (length padding) 4))
 (case (length padding)
   ((1) (make-list 4 (first padding)))
   ((2) (list (first padding) (second padding)
  (first padding) (second padding)))
   ((3) (list (first padding) (second padding)
  (third padding) (second padding)))
   (else padding)))
   (else
 (begin (ly:warning "Ignoring invalid padding: ~a" padding)
'(0 0 0 0)
  (let* ((padding (css-style-padding padding))
 (padding-top (first padding))
 (padding-right (second padding))
 (padding-bottom (third padding))
 (padding-left (fourth padding))

  (x-ext-orig (ly:stencil-extent stencil X))
  (y-ext-orig (ly:stencil-extent stencil Y))
  (x-ext-inner
(cons (- (interval-start x-ext-orig) padding-left)
  (+ (interval-end x-ext-orig) padding-right)))
  (y-ext-inner
(cons (- (interval-start y-ext-orig) padding-bottom)
  (+ (interval-end y-ext-orig) padding-top)))
  (x-ext-outer (interval-widen x-ext-inner thickness))
  (y-ext-outer (interval-widen y-ext-inner thickness))
  (x-ext-new (if expand? x-ext-outer x-ext-orig))
  (y-ext-new (if expand? y-ext-outer y-ext-orig))

  (x-rule (make-filled-box-stencil (cons 0 thickness) y-ext-inner))
  (y-rule (make-filled-box-stencil x-ext-outer (cons 0 thickness)))
  (box (stencil-with-color
(ly:stencil-add
  (ly:stencil-translate-axis y-rule (interval-end y-ext-inner)
Y)
  (ly:stencil-translate-axis x-rule (interval-end x-ext-inner)
X)
  (ly:stencil-translate-axis y-rule (interval-start
y-ext-outer) Y)
  (ly:stencil-translate-axis x-rule (interval-start
x-ext-outer) X))
color)))
 (ly:make-stencil
   (ly:stencil-expr (ly:stencil-add stencil box))
   x-ext-new y-ext-new)))

#(define* (make-stencil-boxer thickness padding callback
#:optional (color OSPadderColor) (expand? #t))
   "Return function that adds a box around the grob passed as argument."
   (lambda (grob)
 (box-stencil (callback grob) thickness padding color expand?)))

#(define (member? x list)
  (cond
((null? list) #f)
  ((eqv? x (car list)))
(else (member? x (cdr list)

#(define (next-not-in-list n list)
  (let ((s (+ 1 n)))
(if (member? s list)
  (next-not-in-list s list) s)))

resetOSPositions  =  #(define-scheme-function () ()
  (set! posIdxUp 0)
  (set! posListUp '())
  (set! posIdxDown 0)
  (set! posListDown '()))

#(define (symbol-list-or-music? x) (or (symbol-list? x) (ly:music? x)))

OSOObj = #(define-music-function (arg) (ly:music?)
  (let ((posIdx 0)
(name (ly:music-property arg 'name)))
  (if (eq? (ly:music-property arg 'direction) UP)
  

Re: different staff-staff spacing throughout piece

2019-09-20 Thread Andrew Bernard
HI Rachel,

Read NR 4.4.2 Explicit staff and system positioning. I use this technique a
good deal. Wouldn't this do the job? [I am referring to 2.19.83 NR.]


Andrew



On Fri, 20 Sep 2019 at 07:03, Rachel Knight via lilypond-user <
lilypond-user@gnu.org> wrote:

> Is it possible to have different staff-staff spacing throughout a score?
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


different staff-staff spacing throughout piece

2019-09-19 Thread Rachel Knight via lilypond-user
Hi,

Is it possible to have different staff-staff spacing throughout a score? I 
found the command (listed below) and the documentation said to put it in a 
\with section or in the \layout block for global settings. My piece opens with 
a cadenza and I want the staffs to be further apart for easier reading as there 
are a lot of knee-beams, but for the rest of the piece, I want the default 
staff-staff spacing. Is this possible?

\override VerticalAxisGroup.staff-staff-spacing.basic-distance = #10

Best,
Rachel







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


Re: Cross-staff tie interferes with staff spacing

2017-04-09 Thread DJF
On Apr 9, 2017, at 2:36 AM, Engraver  wrote:
> 
> I think the problem is the cross-staff tie itself. Without the \shape line it 
> is drawn above the right-hand staff, but the inner workings of lilypond 
> somehow 'remember'  the original starting point, i.e. above the left hand 
> staff. If you use the \shape line to visually lower the starting point of the 
> tie, you lower the original starting point of the tie as well, hence pushing 
> the pedal staff down.
> 
> Perhaps it's better to mimic the cross-staff tie with a cross-staff slur.
> 
> Regards,
> Auke
> 

Using a slur is a good work-around; I can live with that. Thank you!

--
Dan


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


Re: Cross-staff tie interferes with staff spacing

2017-04-09 Thread Engraver


I think the problem is the cross-staff tie itself. Without the \shape line 
it is drawn above the right-hand staff, but the inner workings of lilypond 
somehow 'remember'  the original starting point, i.e. above the left hand 
staff. If you use the \shape line to visually lower the starting point of 
the tie, you lower the original starting point of the tie as well, hence 
pushing the pedal staff down.


Perhaps it's better to mimic the cross-staff tie with a cross-staff slur.

Regards,
Auke




Op 7 april 2017 19:01:13 schreef DJF <delf...@me.com>:

I’ve got a cross-staff tie in an organ piece which appears to be 
responsible for adding unwanted space between the L.H. staff and the Pedal 
staff. If I comment out the \shape line, the spacing then conforms as 
expected, using the values in the second VerticalAxisGroup block, but then 
the tie goes way up above the R.H. staff.


There are a few programming errors in the log: “My pure_y_common is a 
VerticalAlignment, which might contain several staves” and “Some of my 
vertical-skyline-elements are outside my VerticalAxisGroup”.


I have a suspicion that I may be going about this (staff spacing) in a way 
which is not ideal, but it’s what I’ve been using and it largely works. 
I’ll happily take any comments on that, but my primary concern at present 
is getting the tie in the right place, and, at the same time, having the 
proper spacing to the Pedal staff. I’d be grateful for any advice.


-- Dan



\version "2.19.58"

rightOne = \relative c' {
   4 g' fis
}

leftOne = \relative c {
  \shape #'((-0.8 . -12.0) (-0.8 . -11.0) (-1.9 . -10.0) (-0.7 . -7.0)) Tie
   \change Staff = "right" \stemDown a2
}

pedal = \relative c {
  a4 b2
}

\score {
  <<
\new PianoStaff \with { \remove "Vertical_align_engraver" } % removes extra 
space before pedal staff

<<
  \new Staff = "right" \with  {
    \override VerticalAxisGroup.default-staff-staff-spacing =
#'((basic-distance . 12.3)
   (minimum-distance . 9)
   (padding . 1)
   (stretchability . 15)) } % section above controls spacing between hands
  { \rightOne }

\new Staff = "left" \with  {
\override VerticalAxisGroup.default-staff-staff-spacing =
#'((basic-distance . 9.5)
   (minimum-distance . 7.0)
   (padding . 0)
   (stretchability . 0)) } % section above controls spacing between LH and 
pedal
{ \clef bass \leftOne }
>>
  \new Staff = "pedal" { \clef bass \pedal }
  >>
}
___
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


Cross-staff tie interferes with staff spacing

2017-04-07 Thread DJF
I’ve got a cross-staff tie in an organ piece which appears to be responsible 
for adding unwanted space between the L.H. staff and the Pedal staff. If I 
comment out the \shape line, the spacing then conforms as expected, using the 
values in the second VerticalAxisGroup block, but then the tie goes way up 
above the R.H. staff. 

There are a few programming errors in the log: “My pure_y_common is a 
VerticalAlignment, which might contain several staves” and “Some of my 
vertical-skyline-elements are outside my VerticalAxisGroup”.

I have a suspicion that I may be going about this (staff spacing) in a way 
which is not ideal, but it’s what I’ve been using and it largely works. I’ll 
happily take any comments on that, but my primary concern at present is getting 
the tie in the right place, and, at the same time, having the proper spacing to 
the Pedal staff. I’d be grateful for any advice.

-- Dan



\version "2.19.58"

rightOne = \relative c' {
   4 g' fis 
}

leftOne = \relative c {
  \shape #'((-0.8 . -12.0) (-0.8 . -11.0) (-1.9 . -10.0) (-0.7 . -7.0)) Tie
   \change Staff = "right" \stemDown a2 
}

pedal = \relative c {
  a4 b2 
}

\score {
  <<
\new PianoStaff \with { \remove "Vertical_align_engraver" } % removes extra 
space before pedal staff
<<
  \new Staff = "right" \with  { 
    \override VerticalAxisGroup.default-staff-staff-spacing =
#'((basic-distance . 12.3)
   (minimum-distance . 9)
   (padding . 1)
   (stretchability . 15)) } % section above controls spacing between hands
  { \rightOne }
 
\new Staff = "left" \with  {  
    \override VerticalAxisGroup.default-staff-staff-spacing =
#'((basic-distance . 9.5)
   (minimum-distance . 7.0)
   (padding . 0)
   (stretchability . 0)) } % section above controls spacing between LH and 
pedal
{ \clef bass \leftOne }
>>
  \new Staff = "pedal" { \clef bass \pedal }
  >>
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Markup and staff spacing

2016-12-17 Thread Gilberto Agostinho
Hi Simon,


Simon Albrecht-2 wrote
> try wrapping the markup in
> \markup {
>\with-dimensions-from \null {
>% insert your markup here
> }

Thanks for your reply, that's exactly what I was looking for! I really
appreciate your help.

Cheers,
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Markup-and-staff-spacing-tp198127p198129.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: Markup and staff spacing

2016-12-17 Thread Simon Albrecht

On 17.12.2016 19:17, Gilberto Agostinho wrote:

Is there a way to make LilyPond ignore collisions or spacing issues between
a markup text and other staves or grobs?


Hi Gilberto,

try wrapping the markup in
\markup {
  \with-dimensions-from \null {
  % insert your markup here
}

HTH, Simon

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


Markup and staff spacing

2016-12-17 Thread Gilberto Agostinho
Hello all,

Is there a way to make LilyPond ignore collisions or spacing issues between
a markup text and other staves or grobs? For instance, consider this example
below:

\version "2.19.37"

\new PianoStaff <<
  \new Staff {
des''4 
f'' 
e'_\markup{
  \hspace #-1.5
  \center-column {
\combine
\arrow-head #Y #UP ##t
\draw-line #'(0 . -10)
\circle "103"
  }
}
aes'
  }
  \new Staff {
\clef bass
c1
  }  
>>

Producing: 
<http://lilypond.1069038.n5.nabble.com/file/n198127/1.png> 

As you see, LilyPond stretches the staves quite a lot in order avoid a
collision between the bottom staff and the text (marked in red). So if I
want that arrow to actually cross over the bottom staff, the only way I
managed so far is using this approach:

\version "2.19.37"

\new PianoStaff <<
  \new Staff {
des''4 
f'' 
e'
aes'
  }
  \new Staff {
\clef bass
c1*1/2
\once \override TextScript.extra-offset = #'(0 . 8)
s2_\markup{
  \hspace #-1.5
  \center-column {
\combine
\arrow-head #Y #UP ##t
\draw-line #'(0 . -10)
\circle "103"
  }
}
  }  
>>

Producing:
<http://lilypond.1069038.n5.nabble.com/file/n198127/2.png> 

The problem with this approach is two-fold: first, it's a bit ugly as it
involves multiplying the durations and using invisible rests to get the
markup in the right position. And secondly: this may very well affect the
distance between systems or between the last system and the margin, in the
case of a bottom system.

So is there a way better way of solving this?

Cheers!
Gilberto



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Markup-and-staff-spacing-tp198127.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: Staff-staff spacing temporary changes

2016-02-23 Thread Noeck
Hi Andrew,

Am 23.02.2016 um 08:26 schrieb Andrew Bernard:
> Hi Joram,
> 
> Right indeed. But if I adjust stretchability, it affects the rest of my
> score adversely, and I cannot find a good compromise that leaves the
> main score relatively wide spaced with respect to staff-staff spacing,
> and then a particular page with fewer systems closely spaced. 

I really thought this suggestion to be promising and I meant my
questions as real questions and I am interested in your answer about
where you want to put that space!

Here is a small example which comes close to what I think you are
talking about, but I am not sure:

\version "2.19.36"

\paper {
  system-count = 8
  top-system-spacing.basic-distance = 20
  last-bottom-spacing.stretchability = 100
}

\new PianoStaff <<
  \new Staff {
\repeat unfold 6 s1 \pageBreak
\repeat unfold 4 s1 \pageBreak
\repeat unfold 6 s1
  }
  \new Staff {
\clef bass
\repeat unfold 16 s1
  }
>>

This has 3 pages, with 3,2,3 staves each. The 2 staves are not much more
separated as the 3 staves per page, because I increased the
stretchability of the last-bottom-spacing so much. That would be
something I would prefer in case of such an empty page. But I don't know
your taste, that's why I would be really interested in your answer to my
question above. As Carl writes:

> Prepare a small example that shows the problem and give the list a chance
> to solve it.

Cheers,
Joram

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


Re: Staff-staff spacing temporary changes

2016-02-23 Thread Carl Sorensen
On 2/23/16 12:26 AM, "Andrew Bernard" <andrew.bern...@gmail.com> wrote:

>Hi Joram,
>
>Right indeed. But if I adjust stretchability, it affects the rest of my
>score adversely, and I cannot find a good compromise that leaves the main
>score relatively wide spaced with respect to staff-staff spacing, and
>then a particular page with fewer systems closely spaced. I suppose I am
>wishing that you can set the property basic-distance temporarily for a
>couple of pages and then revert. Would it be fair to say this is not
>possible?


Yes, it is fair to say this is not possible, as the spacing applies to the
staff/system, which is a single layout object.

Prepare a small example that shows the problem and give the list a chance
to solve it.  I'm almost certain there are enough spacing parameters to
get spacing that you want.  It's just that it can be tough to understand
the interactions between the various spacing parameters.

Thanks,

Carl


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


Re: Staff-staff spacing temporary changes

2016-02-23 Thread Kieren MacMillan
Hi all,

There’s always the option of explicitly staff positioning:


I use this from time to time, as a last resort.

> somewhat contrary to the idea of separating content and presentation

Use the edition-engraver, and you maintain perfect separation.

Hope this helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Staff-staff spacing temporary changes

2016-02-22 Thread N. Andrew Walsh
I have a very similar problem (my use case is wanting to space staves more
or less distant from each other on a per-system basis), and the solution I
got at the time was something like "insert invisible boxes or \hideNotes
expressions into a simultaneous voice to force specific spacing." That
seems to me like an ugly hack, somewhat contrary to the idea of separating
content and presentation, but I don't think the engraver itself has options
to set spacing on such a fine-tuned basis.

It's unfortunate, because I'd really like to be able to do this myself, and
it seems like something that could be implemented with some sort of
\override.

Cheers,

A

On Tue, Feb 23, 2016 at 8:26 AM, Andrew Bernard <andrew.bern...@gmail.com>
wrote:

> Hi Joram,
>
> Right indeed. But if I adjust stretchability, it affects the rest of my
> score adversely, and I cannot find a good compromise that leaves the main
> score relatively wide spaced with respect to staff-staff spacing, and then
> a particular page with fewer systems closely spaced. I suppose I am wishing
> that you can set the property basic-distance temporarily for a couple of
> pages and then revert. Would it be fair to say this is not possible?
>
> Andrew
>
>
>
> ___
> 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: Staff-staff spacing temporary changes

2016-02-22 Thread Andrew Bernard
Hi Joram,

Right indeed. But if I adjust stretchability, it affects the rest of my score 
adversely, and I cannot find a good compromise that leaves the main score 
relatively wide spaced with respect to staff-staff spacing, and then a 
particular page with fewer systems closely spaced. I suppose I am wishing that 
you can set the property basic-distance temporarily for a couple of pages and 
then revert. Would it be fair to say this is not possible?

Andrew



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


Re: Staff-staff spacing temporary changes

2016-02-22 Thread Noeck
Hi Andrew,

> Is there a way to reduce this staff-staff spacing temporarily, for just
> a couple of pages? Do I need to post an example?

I don't know, but you can find settings which work for both 2 and 3
staff pages. Just ask yourself where you want the space to go. As 2
staves need less space than 3 you will have some extra space either
above, below or between the systems or between the staves of a piano
staff. You can choose where the space should go by setting the
stretchability of these spacings.

http://www.lilypond.org/doc/v2.19/Documentation/notation/flexible-vertical-spacing-paper-variables

Cheers,
Joram

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


Staff-staff spacing temporary changes

2016-02-22 Thread Andrew Bernard
I have a piano score in which there are three systems per A4 landscape page, 
and then it shifts to 2 systems, and the back to three. [There are musical 
reasons for this which need not detain us.] The pages with two systems page 
show very wide stave to stave spacing, compared to the rest of the score.

Is there a way to reduce this staff-staff spacing temporarily, for just a 
couple of pages? Do I need to post an example?

Andrew



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


RE: staff-staff-spacing doesn't work

2016-02-19 Thread Luca Danieli
Ok, it seems that before I was doing something wrong the whole time, as I spent 
30 minutes trying different combinations. But actually it works without 
problems.Sorry to everybody and thanks for replying.
Cheers,Luca
From: x.sche...@gmail.com
Date: Fri, 19 Feb 2016 16:44:45 +0100
Subject: Re: staff-staff-spacing doesn't work
To: mr.luce...@hotmail.it
CC: lilypond-user@gnu.org

On 19 February 2016 at 15:41, Luca Danieli <mr.luce...@hotmail.it> wrote:>> Hi 
list,>> I have tried all the following codes in my script, but none of them> 
has worked. So I guess there are some problems inside my score.>> 
http://www.lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems>>
 Can someone give me some example or ideas of "what could break the> command 
staff-staff-spacing" so to have a starting point from which> beginning 
analyzing my score?
Hi,
If you only have one staff in your system then modifysystem-system-spacing 
instead.
Apparently this is a common "misconception" on the French users mailinglist. 
Maybe this is here too. But this is just a guess, since you donot provide code 
showing your problem.
Cheers,Xavier
-- Xavier Scheuer <x.sche...@gmail.com>
  ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: staff-staff-spacing doesn't work

2016-02-19 Thread Xavier Scheuer
On 19 February 2016 at 15:41, Luca Danieli <mr.luce...@hotmail.it> wrote:
>
> Hi list,
>
> I have tried all the following codes in my script, but none of them
> has worked. So I guess there are some problems inside my score.
>
>
http://www.lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems
>
> Can someone give me some example or ideas of "what could break the
> command staff-staff-spacing" so to have a starting point from which
> beginning analyzing my score?

Hi,

If you only have one staff in your system then modify
system-system-spacing instead.

Apparently this is a common "misconception" on the French users mailing
list. Maybe this is here too. But this is just a guess, since you do
not provide code showing your problem.

Cheers,
Xavier

-- 
Xavier Scheuer <x.sche...@gmail.com>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: staff-staff-spacing doesn't work

2016-02-19 Thread David Nalesnik
Hi Luca,

On Fri, Feb 19, 2016 at 8:41 AM, Luca Danieli <mr.luce...@hotmail.it> wrote:

> Hi list,
>
> I have tried all the following codes in my script, but none of them has
> worked. So I guess there are some problems inside my score.
>
>
> http://www.lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems
>
> Can someone give me some example or ideas of "what could break the command
> staff-staff-spacing" so to have a starting point from which beginning
> analyzing my score?
>
>
Perhaps you are using values which are too small to override the default
vertical spacing.  Try using really large numbers as an experiment.   Or,
it could be something as simple as misspelling.

It would be easy for the list to diagnose the problem if you would provide
a code example illustrating your difficulty.  There's a good chance that
when cutting it down to be concise you will find the solution yourself!

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


staff-staff-spacing doesn't work

2016-02-19 Thread Luca Danieli
Hi list,
I have tried all the following codes in my script, but none of them has worked. 
So I guess there are some problems inside my score.
http://www.lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems
Can someone give me some example or ideas of "what could break the command 
staff-staff-spacing" so to have a starting point from which beginning analyzing 
my score?
Luca  ___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: explicit (temporary) staff-spacing overrides

2016-02-18 Thread Kieren MacMillan
Hi,

> What I would like is to be able to set, explicitly for the section between 
> \hideNotes and \unHideNotes, for the stave to have much more vertical padding 
> around it. Is there a way to set that manually without doing it at the Staff 
> level?

What about just putting an transparent box and use \with-dimensions (or 
possibly Y-extent) such that it gives you the forced spacing you want?

Hope this helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


explicit (temporary) staff-spacing overrides

2016-02-17 Thread N. Andrew Walsh
Hi List,

I have a piece in which a stretch of measures has no notes or barlines, but
requires a lot of vertical space (that is, sets aside space into which
graphics may be placed from external sources). So I have the following:

\version "2.19.36"

celloMusic = \relative c {
\key c \major
\clef bass
\time 4/8
es16 g es g es4 | \hideNotes es2 | \omit Staff.BarLine  \repeat unfold 9 {
es2 } | \unHideNotes s8 s s g\(^\markup \right-align \italic { (solo) }
\undo \omit Staff.BarLine |
}

\score {
\celloMusic
}
--
NB: this is one voice in an ensemble. There are other variables set for the
others that I have omitted here.

What I would like is to be able to set, explicitly for the section between
\hideNotes and \unHideNotes, for the stave to have much more vertical
padding around it. Is there a way to set that manually without doing it at
the Staff level?

Cheers,

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


Fw: Solution for: new Staff staff-staff-spacing (down AND up) regarding only one single system

2016-01-17 Thread musicus



-- Weitergeleitete Nachricht --
Von: "musicus" <tomtom-ilm...@web.de>
An: kieren_macmil...@sympatico.ca
Gesendet: 16.01.2016 21:43:55
Betreff: Solution for: new Staff staff-staff-spacing (down AND up) 
regarding only one single system


Hi all,

After i tried Kieren's suggestion (absolute system positioning) and 
didn't get reliable results (if page layout changes, you have to adjust 
the settings) i got lucky and found an IMO reasonable way to achieve my 
wanted "reduced spacing regarding inserted staff".


See attached.

Basically you replace the upper Staff with a new one for one line and 
assign a custom spacing number to it.
The only limitation is, that you have to set manual line breaks for the 
specific system.


Hope this will help others.

Best Regards,
musicus\version "2.19.34"

\paper {
  system-system-spacing.padding = 8
  paper-width = 10\cm
}

\layout {
  \context {
\Staff \RemoveEmptyStaves
  }
  \context {
\GrandStaff
\override VerticalAxisGroup.staff-staff-spacing.padding = 5
  }
}

\score {
  \new GrandStaff
  <<
\new Staff = "one" \relative c'' {
  a a a a
  \break
  \new Staff = "workaround" \with {
alignAboveContext = "two"
\override VerticalAxisGroup.staff-staff-spacing.padding = 1
  }{
a a
<<
  { a a }
  \new Staff = "middle" \with {
\override VerticalAxisGroup.staff-staff-spacing.padding = 1
alignAboveContext = "two"
alignBelowContext = "workaround"
  }{
a a
  }
>>
  }
  \break
  a a a a
}
\new Staff = "two" {
  a a a a
  a a a a
  a a a a
}
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: new Staff staff-staff-spacing (down AND up) regarding only one single system

2016-01-16 Thread Kieren MacMillan
Hi,

> But I don't find a solution for adjusting the distance to the upper one.

Indeed, I don’t know of one. And I’ve often lamented this missing feature.

> Any suggestions or workarounds?

When I need to force a staff-above away, I sometimes increase the padding of 
some grob (e.g., markup) and then extra-offset it back down.

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: new Staff staff-staff-spacing (down AND up) regarding only onesingle system

2016-01-16 Thread Kieren MacMillan
Hi,

> that's a good idea, unfortunately i'd like to reduce the vertical distance... 
> sorry for my unclear message.

Ah… well, you can always use explicit staff positioning:


That’s always my last resort.

Hope this helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


new Staff staff-staff-spacing (down AND up) regarding only one single system

2016-01-16 Thread musicus

Dear Lilyponders,

I have a problem with a certain, probably rare use case of an 
temporarily inserted Staff between two main staves (piano music)


[...]\new Staff \with { \override 
VerticalAxisGroup.staff-staff-spacing.padding } [...]


works well for adjusting the distance to the lower staff.

But I don't find a solution for adjusting the distance to the upper one.
Of course, I don't want to change the standard vertical spacing, when 
only the two main staves are used.


Any suggestions or workarounds?

Thank you for your help,

musicus\version "2.19.34"

\paper {
  paper-width = 10\cm
  system-system-spacing.padding = 10
}

\score {
  \new PianoStaff
  <<
\new Staff = "one" \relative c'' {
  a a a a
  \break
  a a
  <<
{ a a }
\new Staff \with {
  alignAboveContext = "two"
  \override VerticalAxisGroup.staff-staff-spacing.padding = 1
}\relative c'' {
  g g
}
  >>  
  \break
  a a a a
}
\new Staff = "two" { 
  a a a a
  a a a a
  a a a a
}
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Fretboard and Staff Spacing

2015-11-15 Thread Tom Swan
Hi Lily Friends! I would like to increase the space between the fretboard
diagram, used here to show a scale fingering, and the top of the staff. I have
tried \paper settings and various overrides with no results. Suggestions please?
Thank you! -- Tom

\version "2.18.2"
<<
  \new Staff {
\new Voice = "scale" \relative c {
  4^\markup {
   \override #'(size . 4.0) {
  \override #'(fret-diagram-details . (
   (orientation . #'landscape )
   (finger-code . #'in-dot )
   (dot-color . #'black)
   (dot-radius . 0.35)
   (dot-position . 0.5)
   (top-fret-thickness . 7)
   (fret-count . 7)) )
\fret-diagram-verbose #'(
  (place-fret 6 1 1 inverted)
  (place-fret 6 3 2)
  (place-fret 6 5 4)
) 
}
  }   
 | 
}
  }
>>

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


Re: Staff Spacing

2015-04-16 Thread Chris Trahan
Hi Kieren,

Thanks. That got rid of the programming errors, however it's still not
working properly. See attached screen shot. I'm now on 2.19.18.

Chris

Lilypond-Break-Problem-2.jpg
http://lilypond.1069038.n5.nabble.com/file/n174610/Lilypond-Break-Problem-2.jpg
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174610.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: Staff Spacing

2015-04-16 Thread Kieren MacMillan
Hi Chris,

 Thanks. That got rid of the programming errors, however it's still not
 working properly. See attached screen shot.

As I said, I didn’t completely code the snippet to match your original: you 
need to complete the code, according to the example.

Best,
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-15 Thread Chris Trahan
I've finally been able to cull down the code where I can provide a tiny
example and still get it to fail.

I don't get any errors when I comment out the   

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

in the \layout block.

When I uncomment them, I get 

programming error: could not find this grob's vertical axis group in the
vertical alignment
continuing, cross fingers

Anyone have any idea what's happening?

Thanks,
Chris

Mon_Pere-tiny-example.ly
http://lilypond.1069038.n5.nabble.com/file/n174548/Mon_Pere-tiny-example.ly  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174548.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: Staff Spacing

2015-04-15 Thread Trevor Daniels

Chris Trahan wrote Wednesday, April 15, 2015 6:17 PM
Subject: Re: Staff Spacing


 I've finally been able to cull down the code where I can provide a tiny
 example and still get it to fail.
...
 When I uncomment them, I get 
 
 programming error: could not find this grob's vertical axis group in the
 vertical alignment
 continuing, cross fingers

Well, I don't have the edition engraver to hand, so I removed the references to 
it.  I then see the failure in 2.18.0, but not in recent development releases, 
viz 2.19.15 and 2.19.18.  I can't see a recently fixed issue that corresponds 
to this, but it looks like this has already been fixed.

Good time to upgrade?  The 2.19 series are pretty sound.

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


Re: Staff Spacing

2015-04-15 Thread Chris Trahan
On Wed, Apr 15, 2015 at 3:12 PM, Trevor Daniels t.dani...@treda.co.uk
wrote:


 Chris Trahan wrote Wednesday, April 15, 2015 6:17 PM
 Subject: Re: Staff Spacing


  I've finally been able to cull down the code where I can provide a tiny
  example and still get it to fail.
 ...
  When I uncomment them, I get
 
  programming error: could not find this grob's vertical axis group in the
  vertical alignment
  continuing, cross fingers

 Well, I don't have the edition engraver to hand, so I removed the
 references to it.  I then see the failure in 2.18.0, but not in recent
 development releases, viz 2.19.15 and 2.19.18.  I can't see a recently
 fixed issue that corresponds to this, but it looks like this has already
 been fixed.

 Good time to upgrade?  The 2.19 series are pretty sound.

 Trevor


Thanks Trevor.  I'm seeing the failure without the line breaks too.

I was wondering how stable 2.19 is. I'll try it.

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


Re: Staff Spacing

2015-04-15 Thread Chris Trahan
I still have the problem in version 2.19.18.  I'm attaching another version
of the example using line breaks instead of the edition-engraver commands.

Mon_Pere-tiny-example-2.ly
http://lilypond.1069038.n5.nabble.com/file/n174574/Mon_Pere-tiny-example-2.ly 
 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174574.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: Staff Spacing

2015-04-15 Thread Kieren MacMillan
Hi Chris,

 I still have the problem in version 2.19.18.  I'm attaching another version
 of the example using line breaks instead of the edition-engraver commands.

You shouldn’t mix voltas into every variable like that.
I can only imagine that you’ve misplaced a beat somewhere, and Lily’s going 
crazy trying to cope.

Put all of your shared items into a single variable, and only make them 
simultaneous in the final score.
I’ve included, below, a start in that direction for you — it compiles without 
error (and I’m sure if you complete it according to the example, it will 
compile without error).

Hope this helps!
Kieren.
__

\version 2.19.18
\language english

#(set-default-paper-size letter)

Global = {
\time 2/4
\tempo 4 = 120
\key g \major
  %%  sop
\repeat volta 2 { s2*3 }
\alternative { { s2 } { s2*2 } }
s2*9
\bar .|:-||
\break
}

VerseOneUnison = {
  %%  volta
g4 d8 g |
b g a fs |
a4 fs8 a |
  %%  alt. 1
c8 b g4 |
  %%  alt. 2
c8 b g4 ~ |
g r8 b8 |
}

VerseSpacer = {
  %%  volta
\repeat unfold 6 { r2 }
  %%  alt. 1
r2 |
  %%  alt. 2
r2 |
r2 |
  %%  after
\repeat unfold 9 { r2 | }
}

SopranoMusic = \relative c'' {
\set Staff.vocalName = Soprano
\set Staff.shortVocalName = S
\clef treble
  %% Verse 1 - 3
\VerseOneUnison
b8. a16 b8 c | d8. d16 b8 g | d'8. d16 b8 g |
a8. r16 d,4^ | g8 a g fs | e r a4^ |
fs8 a c b | g4. r8 | r2 |
  %% Interlude
\VerseSpacer
  %% Verse 4

  {
\voiceOne
cs4 cs8 cs | cs cs d d | d4 d8 d |
  { fs8 e cs4 | }
  { fs8 e cs4~ | cs r8 cs8 | }
  e8. e16 e8 e | \repeat unfold 2 { cs8. cs16 cs8 cs | }
  d8. r16 d4^ | cs8 cs cs cs | d8. r16 d4^ |
  b8 b b b | cs8. r16 r4 | r2
}
\new Voice {
  \voiceTwo
  a4 e8 a | cs a b gs | b4 gs8 b |
  { d8 cs a4 | }
  { e'8 cs a4~ | a4 r8 cs8 | }
  cs8. b16 cs8 d | e8. e16 cs8 a | e'8. e16 cs8 a |
  b8. r16 e,4 | a8 b a gs | fs8. r16 b4 | gs8 b d cs | a8. r16 r4 | r2 |
}
  
  \oneVoice
   }

\score {
  \new ChoirStaff 
  \new Staff \new Voice  \Global \SopranoMusic 

  \layout {
\context {
  \Score
  \override BarNumber.stencil = #(make-stencil-circler 0.1 0.25 
ly:text-interface::print)
}
\context {
  \ChoirStaff
  \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 6) 
(minimum-distance . 2) (padding . 1))
}
\context {
  \Staff
  autoBeaming = ##f
  \RemoveEmptyStaves
  \override VerticalAxisGroup.remove-first = ##t
}
  }
}

___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-14 Thread Chris Trahan
Hi Kieren,

I use bar checks so I'm sure that I don't have anything bleeding outside of
a measure.

The strange thing is the breaks are in the proper places when I comment out
the \removeemptystaves statement but are not applied in places when I
enable that statement.

Do you know how to get in touch with Jan-Peter Voigt?  I'm new to GitHub.
I've been trying to find an email address or a way to send a message but no
luck so far.

Thanks,
Chris

On Mon, Apr 13, 2015 at 10:09 AM, Kieren MacMillan 
kieren_macmil...@sympatico.ca wrote:

 Hi Chris,

  I did get the edition-engraver to work but it seems to have a problem
 with \removeemptystaves. It's not putting the breaks where I've specified.
  Have you experienced this?

 No: unless instructed otherwise, Lily might put in *additional* breaks
 (i.e., where you *haven’t* specified any); but I’ve never had her *not* put
 breaks where I *have* specified them (assuming your note code is correct,
 and doesn’t bleed outside of measures, etc.).

 Cheers,
 Kieren.
 ___

 Kieren MacMillan, composer
 www:  http://www.kierenmacmillan.info
 email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-13 Thread Chris Trahan
Hi Kieren,

I did get the edition-engraver to work but it seems to have a problem with
\removeemptystaves. It's not putting the breaks where I've specified.

Have you experienced this?

Thanks,
Chris


On Thu, Apr 9, 2015 at 9:54 AM, Kieren MacMillan 
kieren_macmil...@sympatico.ca wrote:

 Hi Chris,

  Can you give me an example of how to use the \editionEngraver or show me
 where it is in the documentation?


 https://github.com/openlilylib/openlilylib/tree/master/editorial-tools/edition-engraver

 Hope this helps!
 Kieren.
 ___

 Kieren MacMillan, composer
 www:  http://www.kierenmacmillan.info
 email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-13 Thread Kieren MacMillan
Hi Chris,

 I did get the edition-engraver to work but it seems to have a problem with 
 \removeemptystaves. It's not putting the breaks where I've specified.
 Have you experienced this?

No: unless instructed otherwise, Lily might put in *additional* breaks (i.e., 
where you *haven’t* specified any); but I’ve never had her *not* put breaks 
where I *have* specified them (assuming your note code is correct, and doesn’t 
bleed outside of measures, etc.).

Cheers,
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-09 Thread Kieren MacMillan
Hi Chris,

 Can you give me an example of how to use the \editionEngraver or show me 
 where it is in the documentation?

https://github.com/openlilylib/openlilylib/tree/master/editorial-tools/edition-engraver

Hope this helps!
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-09 Thread Chris Trahan
Kieren,

Thanks. I've never used GitHub. I created an account but don't see how to
download the files. When I right-click and save as, I get the html code.

Chris

On Thu, Apr 9, 2015 at 9:54 AM, Kieren MacMillan 
kieren_macmil...@sympatico.ca wrote:

 Hi Chris,

  Can you give me an example of how to use the \editionEngraver or show me
 where it is in the documentation?


 https://github.com/openlilylib/openlilylib/tree/master/editorial-tools/edition-engraver

 Hope this helps!
 Kieren.
 ___

 Kieren MacMillan, composer
 www:  http://www.kierenmacmillan.info
 email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-08 Thread tisimst
Chris,

Can you post your code or attach a file so we can see what you've tried?
You can be explicit about the vertical location of the staves, but I
imagine that's not what you want to do.

- Abraham

On Tue, Apr 7, 2015 at 12:33 PM, Chris Trahan [via Lilypond] 
ml-node+s1069038n174177...@n5.nabble.com wrote:

 I have an SATB score with interludes between verses. I've built the score
 in a choir staff group with 4 staves for each vocal range and a 5th staff
 for the interlude.  I'm hiding empty staves for the parts that are not
 singing. For example, one part is sopranos and altos so the tenor and bass
 parts are hidden during that verse.

  The musical interlude staff is built with rests in all verses so only the
 music that is played during the interlude shows.

 I'm trying to reduce the spacing between the staves in the interlude
 sections but nothing seems to be working. See the attached screenshot.

 The interlude staff is the last staff in the system. I'm using
 staff-staff-spacing to reduce the spacing of the SATB parts.  I've tried
 the system-system-spacing in the \paper block setting the basic-distance to
 8.

 Any suggestions?

 Thanks,
 Chris

 ___
 lilypond-user mailing list
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=174177i=0
 https://lists.gnu.org/mailman/listinfo/lilypond-user

 *Lilypond-Staff-Spacing.jpg* (110K) Download Attachment
 http://lilypond.1069038.n5.nabble.com/attachment/174177/0/Lilypond-Staff-Spacing.jpg


 --
  If you reply to this email, your message will be added to the discussion
 below:
 http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177.html
  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
 To unsubscribe from Lilypond, click here
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=2code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=
 .
 NAML
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174222.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: Staff Spacing

2015-04-08 Thread tisimst
Chris,

How about this? Is this more the spacing you were looking for?

[image: Inline image 1]

I did it by explicitly setting the location of the first and last system of
the interlude measures. I'm not sure if you CAN do it any other way at the
moment.

Here's the code I used (in the InterludeMusic variable) which you should be
able to apply (by trial-and-error, unfortunately) to the other instance on
page 4:

%-- SNIP ---

...
% Interlude
\mark \markup { \hspace #25 Musical Interlude }
\overrideProperty Score.NonMusicalPaperColumn.line-break-system-details
#'((Y-offset . 65))
\VerseOneUnison
b8. a16 b8 c | d8. d16 b8 g | d'8. d16 b8 g | a8. r16 d,4^ | \break
\overrideProperty Score.NonMusicalPaperColumn.line-break-system-details
#'((Y-offset . 96))
g8 a g fs | e r a4^ | fs8 a c b | g4. r8 | R2 | \bar .|:-||
% Verse 4
...

%-- SNIP ---

Oh, and I moved the first measure from the interlude's bottom system to the
end of the second one (which you can change back, of course :-) I just
thought it looked less crowded). Also, I've learned that putting in manual
\breaks can make a big difference to how Lily uses the \overridePropertys.

Regards,
Abraham

On Wed, Apr 8, 2015 at 9:42 AM, Chris Trahan [via Lilypond] 
ml-node+s1069038n174224...@n5.nabble.com wrote:

 Abraham,

 Here's the file. It's not a tiny example, I'm afraid.

 Chris


 From: tisimst [hidden email]
 http:///user/SendEmail.jtp?type=nodenode=174224i=0
 To: [hidden email] http:///user/SendEmail.jtp?type=nodenode=174224i=1
 Cc:
 Date: Wed, 8 Apr 2015 07:42:36 -0700 (MST)
 Subject: Re: Staff Spacing
 Chris,

 Can you post your code or attach a file so we can see what you've tried?
 You can be explicit about the vertical location of the staves, but I
 imagine that's not what you want to do.

 - Abraham

 On Tue, Apr 7, 2015 at 12:33 PM, Chris Trahan [via Lilypond] [hidden
 email] http:///user/SendEmail.jtp?type=nodenode=174222i=0 wrote:
 I have an SATB score with interludes between verses. I've built the score
 in a choir staff group with 4 staves for each vocal range and a 5th staff
 for the interlude.  I'm hiding empty staves for the parts that are not
 singing. For example, one part is sopranos and altos so the tenor and bass
 parts are hidden during that verse.

  The musical interlude staff is built with rests in all verses so only the
 music that is played during the interlude shows.

 I'm trying to reduce the spacing between the staves in the interlude
 sections but nothing seems to be working. See the attached screenshot.

 The interlude staff is the last staff in the system. I'm using
 staff-staff-spacing to reduce the spacing of the SATB parts.  I've tried
 the system-system-spacing in the \paper block setting the basic-distance to
 8.

 Any suggestions?

 Thanks,
 Chris

 ___
 lilypond-user mailing list
 [hidden email] http:///user/SendEmail.jtp?type=nodenode=174224i=2
 https://lists.gnu.org/mailman/listinfo/lilypond-user

 *Mon Pere.ly* (19K) Download Attachment
 http://lilypond.1069038.n5.nabble.com/attachment/174224/0/Mon%20Pere.ly


 --
  If you reply to this email, your message will be added to the discussion
 below:
 http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174224.html
  To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
 To unsubscribe from Lilypond, click here
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=2code=dGlzaW1zdC5saWx5cG9uZEBnbWFpbC5jb218Mnw4MzU3Njg3MDU=
 .
 NAML
 http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml



image.png (148K) 
http://lilypond.1069038.n5.nabble.com/attachment/174238/0/image.png




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174238.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: Staff Spacing

2015-04-08 Thread Chris Trahan
Thanks Abraham.

Chris



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174239.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: Staff Spacing

2015-04-08 Thread Chris Trahan
Abraham,

While waiting on your reply, I experimented with the system-system-spacing
settings. I got it to work. I had originally tried that setting but must not
have been doing it right.  This also moved all the systems on each page
closer together, reducing the number of pages, which is what I was trying to
do anyway.

\paper {
  system-system-spacing =
  #'((basic-distance . 8)
 (minimum-distance . 6)
  (padding . 2)
  (stretchability . 8))
}

http://lilypond.1069038.n5.nabble.com/file/n174241/Lilypond-Staff-Spacing.jpg 

Thanks,
Chris



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174241.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: Staff Spacing

2015-04-08 Thread Chris Trahan
Abraham,

I'm beginning to agree with you concerning \break.  I'm finding that manual
line breaks need to be in one staff and one staff only in a system. It seems
to behave better when the line breaks are in the top staff of a system.
Lilypond has done some strange things when I put breaks in other staves,
even if they are at the same point as the break in the top staff. 

I appreciate your help. I'm still in the Lilypond learning curve.

Chris



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Staff-Spacing-tp174177p174243.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: Staff Spacing

2015-04-08 Thread Chris Trahan
Abraham,

Here's the file. It's not a tiny example, I'm afraid.

Chris


From: tisimst tisimst.lilyp...@gmail.com
To: lilypond-user@gnu.org
Cc:
Date: Wed, 8 Apr 2015 07:42:36 -0700 (MST)
Subject: Re: Staff Spacing
Chris,

Can you post your code or attach a file so we can see what you've tried?
You can be explicit about the vertical location of the staves, but I
imagine that's not what you want to do.

- Abraham

On Tue, Apr 7, 2015 at 12:33 PM, Chris Trahan [via Lilypond] [hidden email]
http:///user/SendEmail.jtp?type=nodenode=174222i=0 wrote:
I have an SATB score with interludes between verses. I've built the score
in a choir staff group with 4 staves for each vocal range and a 5th staff
for the interlude.  I'm hiding empty staves for the parts that are not
singing. For example, one part is sopranos and altos so the tenor and bass
parts are hidden during that verse.

 The musical interlude staff is built with rests in all verses so only the
music that is played during the interlude shows.

I'm trying to reduce the spacing between the staves in the interlude
sections but nothing seems to be working. See the attached screenshot.

The interlude staff is the last staff in the system. I'm using
staff-staff-spacing to reduce the spacing of the SATB parts.  I've tried
the system-system-spacing in the \paper block setting the basic-distance to
8.

Any suggestions?

Thanks,
Chris
\version 2.18.2
\language english
#(set-default-paper-size letter)

\paper {
  top-margin = 0.75\in
  bottom-margin = 0.75\in
  left-margin = 0.5\in
  right-margin = 0.5\in
  ragged-last-bottom = ##t
}
\header {
  title = Mon Père aussi ma Mère
  poet = Acadienne/Louisianaise
  composer = Chanson traditionelle
  arranger = Arrangement par May Waggoner
  copyright = © 1999 May Waggoner
  revisiondate = 6 Jan 2000
  tagline = \markup {
Engraved at
\simple #(strftime %Y-%m-%d (localtime (current-time)))
with \with-url #http://lilypond.org/;
\line { LilyPond \simple #(lilypond-version) (http://lilypond.org/) }
  }
}

timeSignature = {
  \time 2/4
}

KeyGChords = \chords {
  \repeat volta 2 {
g2 g4 d4 d2
  }
  \alternative {
{ d4:7 g4 }
{ d4:7 g4 g2 }
  }
  \repeat unfold 3 { g2 }
  d4 d4:7 g2 c2 d2:7 g2 g2
}
KeyAChords = \chords {
  \repeat volta 2 {
a2 a4 e4 e2
  }
  \alternative {
{ e4:7 a4 }
{ e4:7 a4 a2 }
  }
  \repeat unfold 3 { a2 }
  e4 e4:7 a2 d2 e2:7 a2 a2
}

ChordSymmbols = {
  \chords {
\set chordChanges = ##t
% Verses 1 - 3, first interlude, Verse 4
\repeat unfold 2 {
  \repeat volta 3 {
\repeat volta 2 {
  g2 g4 d4 d2
}
\alternative {
  { d4:7 g4 }
  { d4:7 g4 g2 }
}
\repeat unfold 3 { g2 }
d4 d4:7 g2 c2 d2:7 g2 g2
  }
}
% Verse 4 - 5, second interlude
\repeat unfold 3 {
  \repeat volta 2 {
a2 a4 e4 e2
  }
  \alternative {
{ e4:7 a4 }
{ e4:7 a4 a2 }
  }
  \repeat unfold 3 { a2 }
  e4 e4:7 a2 d2 e2:7 a2 a2
}
% Verse 6 - 7
\repeat unfold 2 {
  \repeat volta 2 {
g2 g4 d4 d2
  }
  \alternative {
{ d4:7 g4 }
{ d4:7 g4 g2 }
  }
  \repeat unfold 3 { g2 }
  d4 d4:7 g2 c2 d2:7 g2 g2
}
  }
}

VerseOneUnison = {
  \repeat volta 2 {
g4 d8 g | b g a fs | a4 fs8 a |
  }
  \alternative {
{ c8 b g4 |  }
{ c8 b g4~ | g r8 b8 | }
  }
}

% All rests for the length of a verse for spacing.
VerseSpacer = {
  \repeat volta 2 {
\repeat unfold 3 { r2 }
  }
  \alternative {
{ r2 }
{ r2 r2 }
  } \break
  \repeat unfold 9 { r2 }
}

SopranoMusic = {
  \new Staff \relative c'' {
\set Staff.vocalName = Soprano
\set Staff.shortVocalName = S
\new Voice = Soprano {
  \timeSignature
  \clef treble
  \tempo 4 = 120
  \key g \major
  % Verse 1 - 3
  \repeat volta 3 {
\mark \markup { \small { \hspace #40 Male solo first time, tutti on repeat } }
\VerseOneUnison
b8. a16 b8 c | d8. d16 b8 g | d'8. d16 b8 g |
a8. r16 d,4^ | g8 a g fs | e r a4^ | fs8 a c b | g4. r8 | r2 | \break
  }
  % Interlude
  \VerseSpacer \break
  % Verse 4
  \key a \major
  
{
  \voiceOne
  \repeat volta 2 {
cs4 cs8 cs | cs cs d d | d4 d8 d |
  }
  \alternative {
{ fs8 e cs4 | }
{ fs8 e cs4~ | cs r8 cs8 | }
  }
  e8. e16 e8 e | \repeat unfold 2 { cs8. cs16 cs8 cs | }
  d8. r16 d4^ | cs8 cs cs cs | d8. r16 d4^ | b8 b b b | cs8. r16 r4 | R2 \bar .|:-|| \break
}
\new Voice {
  \voiceTwo
  \repeat volta 2{
a4 e8 a | cs a b gs | b4 gs8 b |
  }
  \alternative {
{ d8 cs a4 | }
{ e'8 cs a4~ | a4 r8 cs8 | }
  }
  cs8. b16 cs8 d | e8. e16 cs8 a | e'8. e16 cs8 a |
  b8. r16 e,4 | a8 b a gs | fs8. r16 b4 | gs8 b d cs | a8. r16 r4 | R2

Re: Staff Spacing

2015-04-08 Thread Kieren MacMillan
Hi Chris (et al.),

 I'm beginning to agree with you concerning \break.  I'm finding that manual
 line breaks need to be in one staff and one staff only in a system.

The \editionEngraver allows breaks to be set “outside” of any particular staff.
This is the only way I do it now, and I’ll never go back.  =)

Cheers,
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


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


Re: Staff Spacing

2015-04-08 Thread Chris Trahan
Kieren,

Can you give me an example of how to use the \editionEngraver or show me
where it is in the documentation? I searched Learning, Notation, Snippets,
and Internal but I couldn't find it. Is it in version 2.18.2?

Thanks,
Chris

On Wed, Apr 8, 2015 at 2:50 PM, Kieren MacMillan 
kieren_macmil...@sympatico.ca wrote:

 Hi Chris (et al.),

  I'm beginning to agree with you concerning \break.  I'm finding that
 manual
  line breaks need to be in one staff and one staff only in a system.

 The \editionEngraver allows breaks to be set “outside” of any particular
 staff.
 This is the only way I do it now, and I’ll never go back.  =)

 Cheers,
 Kieren.
 ___

 Kieren MacMillan, composer
 www:  http://www.kierenmacmillan.info
 email:  i...@kierenmacmillan.info


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


Staff Spacing

2015-04-07 Thread Chris Trahan
I have an SATB score with interludes between verses. I've built the score
in a choir staff group with 4 staves for each vocal range and a 5th staff
for the interlude.  I'm hiding empty staves for the parts that are not
singing. For example, one part is sopranos and altos so the tenor and bass
parts are hidden during that verse.

 The musical interlude staff is built with rests in all verses so only the
music that is played during the interlude shows.

I'm trying to reduce the spacing between the staves in the interlude
sections but nothing seems to be working. See the attached screenshot.

The interlude staff is the last staff in the system. I'm using
staff-staff-spacing to reduce the spacing of the SATB parts.  I've tried
the system-system-spacing in the \paper block setting the basic-distance to
8.

Any suggestions?

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


Re: Naming of staff-staff-spacing

2015-03-11 Thread Trevor Daniels

Noeck wrote Thursday, February 19, 2015 9:24 PM

 the conversation in the thread »How to increase the distance between systems?
 (new try)« has drawn my attention to vertical spacing settings and I have one
 question concerning:
 http://www.lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems#spacing-of-ungrouped-staves
 
 Why is »staff-staff-spacing« a function in contrast to all other A-B-spacings
 which are alists? I mean, I understand the extra layer because of grouped and
 ungrouped staves. But from a user’s perspective this is confusing. Wouldn’t it
 be more straight-forward to have identical objects (alists) behind these
 consistently named properties? I.e. a different name for this function and
 reserve the consistent name for what is currently the 
 default-staff-staff-spacing?
 
 This was not such an issue in older versions because only experts knew how to
 change components of this alist using #' etc. And if the function is replaced 
 by
 a complete alist this is also no problem. But in recent versions one can do:
 \override VerticalAxisGroup.staff-staff-spacing.basic-distance = #15
 and for all other spacings except staff-staff this works.
 
 I mean, I know why the design is like this, but wouln’t a different naming 
 help
 to make it understandable for users?

A change to the name was first suggested in 2013, see 
https://code.google.com/p/lilypond/issues/detail?id=3482
so I suggest you add your support to that issue.

On balance I agree a change of name would be an improvement.

Trevor


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


Re: Naming of staff-staff-spacing

2015-03-11 Thread Noeck

 A change to the name was first suggested in 2013, see 
 https://code.google.com/p/lilypond/issues/detail?id=3482
 so I suggest you add your support to that issue.

I have no google account. And it seems to me that it is required for
writing to the issues.

I can only repeat that I think it's a good idea to change the naming and
that I like the suggestions in the issue.

Cheers,
Joram

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


Naming of staff-staff-spacing

2015-02-19 Thread Noeck
Hi LilyPond developers,

the conversation in the thread »How to increase the distance between systems?
(new try)« has drawn my attention to vertical spacing settings and I have one
question concerning:
http://www.lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-within-systems#spacing-of-ungrouped-staves

Why is »staff-staff-spacing« a function in contrast to all other A-B-spacings
which are alists? I mean, I understand the extra layer because of grouped and
ungrouped staves. But from a user’s perspective this is confusing. Wouldn’t it
be more straight-forward to have identical objects (alists) behind these
consistently named properties? I.e. a different name for this function and
reserve the consistent name for what is currently the 
default-staff-staff-spacing?

This was not such an issue in older versions because only experts knew how to
change components of this alist using #' etc. And if the function is replaced by
a complete alist this is also no problem. But in recent versions one can do:
\override VerticalAxisGroup.staff-staff-spacing.basic-distance = #15
and for all other spacings except staff-staff this works.

I mean, I know why the design is like this, but wouln’t a different naming help
to make it understandable for users?

Cheers,
Joram


PS: In case you ask for suggestions: Experts on this will find better names, but
how about:
staff-staff-spacing - general-staff-staff-spacing
default-staff-staff-spacing - staff-staff-spacing

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


Re: Naming of staff-staff-spacing

2015-02-19 Thread Keith OHara
Noeck noeck.marburg at gmx.de writes:

 Wouldn’t it
 be more straight-forward to have identical objects (alists) behind these
 consistently named properties? I.e. a different name for this function and
 reserve the consistent name for what is currently the default-staff-staff-
 spacing?
 

Yes. There is a request along these lines at
 https://code.google.com/p/lilypond/issues/detail?id=3482

It takes (understandably, I think) a lot of encouragement and/or
volunteering to change the names, change the documentation, and make
a conversion rule so old scores are updated properly.  I have wanted
to be the volunteer in this case, but haven't had the time.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Single Staff Spacing

2014-11-07 Thread Martin Tarenskeen



On Fri, 7 Nov 2014, Pierre Perol-Schneider wrote:


  system-system-spacing #'padding = #20


You all know today it's allowed to use something like:

system-system-spacing.padding = #20

It's in the docs, but doesn't seem to be common practice yet?

--

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


Re: Single Staff Spacing

2014-11-07 Thread David Nalesnik
Martin,

On Fri, Nov 7, 2014 at 1:52 AM, Martin Tarenskeen m.tarensk...@gmail.com
wrote:



 On Fri, 7 Nov 2014, Pierre Perol-Schneider wrote:

system-system-spacing #'padding = #20


 You all know today it's allowed to use something like:

 system-system-spacing.padding = #20

 It's in the docs, but doesn't seem to be common practice yet?


True.  You can also omit the # before the number.

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


Re: Single Staff Spacing

2014-11-07 Thread Pierre Perol-Schneider
Hi All,

2014-11-07 8:52 GMT+01:00 Martin Tarenskeen m.tarensk...@gmail.com:


 You all know today it's allowed to use something like:

 system-system-spacing.padding = #20

 It's in the docs, but doesn't seem to be common practice yet?


Right ; in my mind this syntax started with 2.19. Don't know why...
Anyway I just wanted to add that I'd rather use:

system-system-spacing.basic-distance = #20


'cause I found this more flexible.

Cheers,

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


Re: Single Staff Spacing

2014-11-07 Thread Paul Morris
Chris Trahan wrote
 I figured that the spacing had to go in the \paper section but I couldn't
 figure out what parameters to adjust.

The options for vertical spacing in LilyPond can be pretty overwhelming.  

Here's an invaluable visual guide that Abraham put together:
http://lilypond.1069038.n5.nabble.com/attachment/164161/0/vertical-spacing-paper-variables.pdf

And here's a snippet I wrote that simplifies the process by letting you
scale the default vertical spacing settings:
https://github.com/openlilylib/openlilylib/tree/master/notation-snippets/scale-vertical-spacing

Cheers,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Single-Staff-Spacing-tp168478p168517.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


Single Staff Spacing

2014-11-06 Thread Chris Trahan
I'm new to Lilypond. I have a simple score that is short. It's a single
staff score. I'm trying to increase the spacing between staves but nothing
I try is working.  How do I increase the space between the staves?

A short example is:

\version 2.18.2

\new Staff {

 \relative c'' {

  \key g \major

   \time 3/4

   \autoBeamOff

   \partial 4

   c8 d | e2.~ | e2 g,8 b | d4 d b | a8( g)~ g2~ | \break

   g4 e'8 e4 e8 | d2.~| d8 d, a'4 a | g2.~ | g8 c c4 d | e2.~ |

 }

}


Thank,

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


Re: Single Staff Spacing

2014-11-06 Thread David Nalesnik
Hi Chris,

On Thu, Nov 6, 2014 at 8:43 PM, Chris Trahan trahan.ch...@gmail.com wrote:

 I'm new to Lilypond.


Welcome to the community!


 I have a simple score that is short. It's a single staff score. I'm trying
 to increase the spacing between staves but nothing I try is working.  How
 do I increase the space between the staves?

 A short example is:

 \version 2.18.2

 \new Staff {

  \relative c'' {

   \key g \major

\time 3/4

\autoBeamOff

\partial 4

c8 d | e2.~ | e2 g,8 b | d4 d b | a8( g)~ g2~ | \break

g4 e'8 e4 e8 | d2.~| d8 d, a'4 a | g2.~ | g8 c c4 d | e2.~
 |

  }

 }


 Thank,

 Chris Trahan


There are various settings you can add to a \paper block to control the
vertical spacing. Try adding this to your file:

\paper {
  system-system-spacing #'basic-distance = 20
}

For more details, see the documentation at
http://lilypond.org/doc/v2.18/Documentation/notation/flexible-vertical-spacing-paper-variables

Hope this helps,
David
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Single Staff Spacing

2014-11-06 Thread Jim Long
There are probably several ways, but the way I do it is:

Near the top, after your version statement, add a \paper block:

\version 2.18.2

\paper {
  system-system-spacing #'padding = #2
}

\new Staff


Adjust the value 2 to a value of your liking.

Another option is to let Lilypond auto-space the systems on the
page to fill the page.  To do this, use this paper block instead
of the one above:

\paper {
  ragged-last-bottom = ##f
}


HTH,

Jim



On Thu, Nov 06, 2014 at 08:43:29PM -0600, Chris Trahan wrote:
 I'm new to Lilypond. I have a simple score that is short. It's a single
 staff score. I'm trying to increase the spacing between staves but nothing
 I try is working.  How do I increase the space between the staves?
 
 A short example is:
 
 \version 2.18.2
 
 \new Staff {
 
  \relative c'' {
 
   \key g \major
 
\time 3/4
 
\autoBeamOff
 
\partial 4
 
c8 d | e2.~ | e2 g,8 b | d4 d b | a8( g)~ g2~ | \break
 
g4 e'8 e4 e8 | d2.~| d8 d, a'4 a | g2.~ | g8 c c4 d | e2.~ |
 
  }
 
 }
 
 
 Thank,
 
 Chris Trahan

 ___
 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


Single Staff Spacing

2014-11-06 Thread Chris Trahan
Thanks to  David Nalesnik and Jim Long for helping.

I figured that the spacing had to go in the \paper section but I couldn't
figure out what parameters to adjust.

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


Re: Single Staff Spacing

2014-11-06 Thread Pierre Perol-Schneider
Hi Chris,

2014-11-07 4:03 GMT+01:00 Chris Trahan trahan.ch...@gmail.com:

 Thanks to  David Nalesnik and Jim Long for helping.

 I figured that the spacing had to go in the \paper section but I couldn't
 figure out what parameters to adjust.



Actually David and Jim did give you the answer.
Tu sum up:

\version 2.18.2

\paper {
  system-system-spacing #'padding = #20
  %% you can also try:
  % ragged-last-bottom = ##f
  %% and/or (for a multi pages score):
  % ragged-bottom = ##f
}

\new Staff {
  \relative c'' {
\key g \major
\time 3/4
\autoBeamOff
\partial 4
c8 d | e2.~ | e2 g,8 b | d4 d b | a8( g)~ g2~ | \break
g4 e'8 e4 e8 | d2.~| d8 d, a'4 a | g2.~ | g8 c c4 d | e2.~ |
  }
}

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


Re: How to make staff spacing with lyrics fixed

2014-10-03 Thread Knute Snortum
Do you have a small input file that illustrated the problem?


Knute Snortum
(via Gmail)

On Thu, Oct 2, 2014 at 8:37 PM, Carl Peterson carlopeter...@gmail.com
wrote:

 Hey all,

 How do I get the spacing between lyrics and the surrounding staves to be
 equal and fixed, regardless of whether noteheads/stems collide with the
 lyrics? I've tried a number of different combinations of settings and can't
 get the stems ignored.

 Also, I noticed that the spacing depends on whether the lyric letters have
 any descenders. Any way to make it based on the baseline?

 Thanks,

 Carl P.

 ___
 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


How to make staff spacing with lyrics fixed

2014-10-02 Thread Carl Peterson
Hey all,

How do I get the spacing between lyrics and the surrounding staves to be
equal and fixed, regardless of whether noteheads/stems collide with the
lyrics? I've tried a number of different combinations of settings and can't
get the stems ignored.

Also, I noticed that the spacing depends on whether the lyric letters have
any descenders. Any way to make it based on the baseline?

Thanks,

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


Automatic fit-to page staff spacing help

2014-09-19 Thread Scott Miller
I currently use something like this to help space out staves evenly on a
page:

\paper {
 system-system-spacing = #'((basic-distance . 1.0) (padding . 8))
}

Example without: http://lilybin.com/n8jjn6/1

And with system-system-spacing stuff (how I want it to appear):

http://lilybin.com/n8jjn6/2

Is there a better or automatic way to just have LilyPond automatically use
all available space on a page and space staves evenly instead of having to
specify the system-system-spacing?
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic fit-to page staff spacing help

2014-09-19 Thread Kieren MacMillan
Hi Scott,

 Is there a better or automatic way to just have LilyPond automatically use 
 all available space on a page and space staves evenly instead of having to 
 specify the system-system-spacing?

\paper { ragged-bottom = ##f }

Hope this helps!
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


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


Re: Automatic fit-to page staff spacing help

2014-09-19 Thread Scott Miller
On Fri, Sep 19, 2014 at 5:37 PM, Kieren MacMillan
wrote


 \paper { ragged-bottom = ##f }


Thanks! Yeah I have tried various ragged-xxx options, but it doesn't seem
to space evenly over the whole page.

Ex: http://lilybin.com/n8jjn6/3

What am I doing wrong? :/
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic fit-to page staff spacing help

2014-09-19 Thread Abraham Lee
On Fri, Sep 19, 2014 at 3:44 PM, Scott Miller scottli...@gmail.com 
wrote:

On Fri, Sep 19, 2014 at 5:37 PM, Kieren MacMillan
wrote


\paper { ragged-bottom = ##f }


Thanks! Yeah I have tried various ragged-xxx options, but it doesn't 
seem to space evenly over the whole page.


Ex: http://lilybin.com/n8jjn6/3

What am I doing wrong? :/


Scott,

The option you want is actually ragged-last-bottom. The ragged-bottom 
option applies to pages prior to the last one. Since the score is only 
a single page, it IS the last one :)


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


Re: Automatic fit-to page staff spacing help

2014-09-19 Thread Scott Miller
On Fri, Sep 19, 2014 at 5:55 PM, Abraham Lee wrote:


 Scott,

 The option you want is actually ragged-last-bottom. The ragged-bottom
 option applies to pages prior to the last one. Since the score is only a
 single page, it IS the last one :)


Yeah! Ah that's it! Thanks,
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: What's the best way to fix these beams and staff spacing?

2013-11-10 Thread Michael Rivers
Adding the additional space via markup worked. Is this an issue I should
create a bug tracker for?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/What-s-the-best-way-to-fix-these-beams-and-staff-spacing-tp153566p153678.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: What's the best way to fix these beams and staff spacing?

2013-11-10 Thread Keith OHara
Michael Rivers michaeljrivers at gmail.com writes:

 Adding the additional space via markup worked. Is this an issue I should
 create a bug tracker for?

There is a close one
 http://code.google.com/p/lilypond/issues/detail?id=1702

LilyPond's strategy, spacing the staves and then deciding how to set the
beams, does a good job on the examples there if you remove the forced
stem directions.  The strategy does not work so well when the beam is
forced between staves.



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


What's the best way to fix these beams and staff spacing?

2013-11-09 Thread Michael Rivers
Here is the 28th bar of an etude by Rachmaninoff:

\version 2.16.2

global = {
  \key g \minor
  \time 4/4
}

goUp = { \change Staff = right \stemDown }
goDown = { \change Staff = left \stemUp }

right = \relative c'' {
  \global
  r32 as,( c fis c'8) \goDown d,,32( es fis \goUp g c es g, es) \goDown bes(
es b' \goUp g c g' es g,)
\goDown as,( c fis \goUp \clef bass es g c es, c) |
}

left = \relative c {
  \global
  \voiceTwo
  es8_( fis32 g b c) d,8_ c- bes4_ as8_ g_ | 
}

\score {
  \new PianoStaff 
\new Staff = right \right
\new Staff = left { \clef bass \left }
  
}


What would be the best way of fixing this output? The space between the
staves is fine for all but this system and one other with the same problem.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/What-s-the-best-way-to-fix-these-beams-and-staff-spacing-tp153566.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: What's the best way to fix these beams and staff spacing?

2013-11-09 Thread Peter Bjuhr


On 11/09/2013 09:24 AM, Michael Rivers wrote:

Here is the 28th bar of an etude by Rachmaninoff:


What would be the best way of fixing this output? The space between the
staves is fine for all but this system and one other with the same problem.




Could you post the same bar from an edition of the score?

Best
Peter


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


Re: What's the best way to fix these beams and staff spacing?

2013-11-09 Thread Michael Rivers
Thanks for the reply. My scanner's broken, but there are two scans of the
Rachmaninoff prelude at IMSLP:
http://imslp.org/wiki/Etudes-tableaux,_Op.33_%28Rachmaninoff,_Sergei%29

The first edition at IMSLP lists the G minor prelude as the 8th prelude; the
second one lists it as the 7th prelude.

In the second edition (which is a little better), it's the 7th etude, 3rd
page, 3rd system. It's pretty clear what's wrong with the Lilypond output:
the beams cross right over the note heads. 

http://lilypond.1069038.n5.nabble.com/file/n153592/Rachmaninoff_Prelude_Op._33_No._7_clip.png
 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/What-s-the-best-way-to-fix-these-beams-and-staff-spacing-tp153566p153592.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: What's the best way to fix these beams and staff spacing?

2013-11-09 Thread Mark Stephen Mrotek
Mr. Rivers,

 

Attached is my solution. Might not be the best, yet may give some ideas.

 

Mark

\version 2.16.2

global = {
  \key bes \major
  \time 4/4
}

right = \relative c'' {
  \global
  
  r32 aes, c fis c'8
  \change Staff = left
  \stemUp
  d,,32 [ ees f g ]
  \change Staff = right
  \stemNeutral
  c ees g, ees 
  \change Staff = left
  \stemUp
  bes [ ees bes' g ] 
  \change Staff = right 
  c g' ees g, 
  \change Staff = left
  aes, [ c f ees ]
  g c ees, c |
  
}

left = \relative c' {
  \global
  
  ees,8 fis32 g b c
  \stemDown
  d,8 c bes4 aes8 g |
  
}

\score {
  \new PianoStaff 
\new Staff = right \right
\new Staff = left { \clef bass \left }
  
  \layout { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: What's the best way to fix these beams and staff spacing?

2013-11-09 Thread Michael Rivers
Thanks for the solutions. Mark -- that's the kind of solution I used the last
time this came up in a score, but this time I'd like to show which hand
Rachmaninoff wants the notes played with. Keith -- I do have a dynamic
context, so I'll try putting in some blank space that way.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/What-s-the-best-way-to-fix-these-beams-and-staff-spacing-tp153566p153609.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: Lyric-Staff-spacing fails with smaller lyrics

2013-10-14 Thread Eluze
Paul Morris wrote
 
 Eluze wrote
 I don't think LP fails, it's just that the vertical spacing isn't
 corrected with the \staffSize macro (which btw can be simplified to
 
 staffSize = #(define-music-function (parser location new-size) (number?)
   #{
 \set fontSize = #new-size
 \override StaffSymbol #'staff-space = #(magstep new-size)
 \override StaffSymbol #'thickness = #(magstep new-size)
   #})
 
 and then it can be used in any context owning a font size engraver)
 Nice simplification and generalization!  I've updated the following
 staffSize snippet with this revised version of the code.  (Let me know
 if this is not a good idea for some reason.)
 http://lsr.dsi.unimi.it/LSR/Item?u=1id=862

thanks, Paul for publishing it in the LSR.

the fly in the ointment is that in the LSR you can search for the word
staffsize but no results are found.
and if you find it yourself (with the number or by scrolling) there is no
picture in it.

suggestion: 

can dak's solution for contexts which have no font-size-engraver (see
http://lilypond.1069038.n5.nabble.com/font-size-for-instrument-names-in-a-PianoStaff-td151335.html#a151336)

\consists Font_size_engraver
and
\override InstrumentName.font-size = #-5

be added!?

thanks,
Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyric-Staff-spacing-fails-with-smaller-lyrics-tp152155p152286.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: Lyric-Staff-spacing fails with smaller lyrics

2013-10-13 Thread Paul Morris
Eluze wrote
 I don't think LP fails, it's just that the vertical spacing isn't
 corrected with the \staffSize macro (which btw can be simplified to
 
 staffSize = #(define-music-function (parser location new-size) (number?)
   #{
 \set fontSize = #new-size
 \override StaffSymbol #'staff-space = #(magstep new-size)
 \override StaffSymbol #'thickness = #(magstep new-size)
   #})
 
 and then it can be used in any context owning a font size engraver)

Nice simplification and generalization!  I've updated the following
staffSize snippet with this revised version of the code.  (Let me know if
this is not a good idea for some reason.)
http://lsr.dsi.unimi.it/LSR/Item?u=1id=862

Thanks,
-Paul



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyric-Staff-spacing-fails-with-smaller-lyrics-tp152155p152256.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


Lyric-Staff-spacing fails with smaller lyrics

2013-10-12 Thread Marc Hohl

Hello list,

I want to place lyrics above and below a certain staff which works
perfectly as long as I do not change the size of staff and lyrics,
see the attached file and its resulting pdf.

Interestingly, it seems that tin example 2, the upper lyrics are
farther away in the first line, whereas the lower lyrics are farther
away in the second line.

How can I achieve the narrower lyrics from example 1 with the smaller
lyrics and staves of example 2?

TIA,

Marc
\version 2.17.29
\pointAndClickOff

staffSize = #(define-music-function (parser location new-size) (number?)
#{
  \set Staff.fontSize = #new-size
  \override Staff.StaffSymbol #'staff-space = #(magstep new-size)
  \override Staff.StaffSymbol #'thickness = #(magstep new-size)
#})

lyricSize = #(define-music-function (parser location new-size) (number?)
#{
  \override Score.LyricText.font-size = #new-size
#})

LyrUp = \lyricmode {
  \repeat unfold 8 { lyr -- ics on top }
}

LyrDown = \lyricmode {
  \repeat unfold 8 { bot -- tom lyr -- ics }
}

MelUp = {
  \repeat unfold 8 { d''8 b' b' b' r2 }
}

MelDown = {
  \repeat unfold 8 { r2 g'8 b' b' b' }
}

\score {
  \new Staff = test
 \with { instrumentName = TestStaff }
  
 \new Voice = up { \voiceOne \MelUp }
 \new Voice = down { \voiceTwo \MelDown }
 \new Lyrics
\with { alignAboveContext = #test }
\lyricsto up \LyrUp
\new Lyrics \lyricsto down \LyrDown
  
}

\score {
  \new Staff = test
 \with { \staffSize #-4 instrumentName = TestStaff }
  
 \new Voice = up { \voiceOne \MelUp }
 \new Voice = down { \voiceTwo \MelDown }
 \new Lyrics
\with { \lyricSize #-4 alignAboveContext = #test }
\lyricsto up \LyrUp
 \new Lyrics
\with { \lyricSize #-4 }
\lyricsto down \LyrDown
  
}

lyric-problem.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lyric-Staff-spacing fails with smaller lyrics

2013-10-12 Thread Eluze
Marc Hohl wrote
 Hello list,
 
 I want to place lyrics above and below a certain staff which works
 perfectly as long as I do not change the size of staff and lyrics,
 see the attached file and its resulting pdf.
 
 Interestingly, it seems that tin example 2, the upper lyrics are
 farther away in the first line, whereas the lower lyrics are farther
 away in the second line.
 
 How can I achieve the narrower lyrics from example 1 with the smaller
 lyrics and staves of example 2?

I don't think LP fails, it's just that the vertical spacing isn't corrected
with the \staffSize macro (which btw can be simplified to

staffSize = #(define-music-function (parser location new-size) (number?)
  #{
\set fontSize = #new-size
\override StaffSymbol #'staff-space = #(magstep new-size)
\override StaffSymbol #'thickness = #(magstep new-size)
  #})

and then it can be used in any context owning a font size engraver)

to control the vertical spacing just specify

\new Lyrics \with {
  \staffSize #-4 alignAboveContext = #test
  \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'(
(basic-distance . 2)
(padding . 1)
  )
}

or similar

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyric-Staff-spacing-fails-with-smaller-lyrics-tp152155p152157.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: Lyric-Staff-spacing fails with smaller lyrics

2013-10-12 Thread Marc Hohl

Am 12.10.2013 13:42, schrieb Eluze:

Marc Hohl wrote

Hello list,

I want to place lyrics above and below a certain staff which works
perfectly as long as I do not change the size of staff and lyrics,
see the attached file and its resulting pdf.

Interestingly, it seems that tin example 2, the upper lyrics are
farther away in the first line, whereas the lower lyrics are farther
away in the second line.

How can I achieve the narrower lyrics from example 1 with the smaller
lyrics and staves of example 2?


I don't think LP fails, it's just that the vertical spacing isn't corrected
with the \staffSize macro (which btw can be simplified to

staffSize = #(define-music-function (parser location new-size) (number?)
   #{
 \set fontSize = #new-size
 \override StaffSymbol #'staff-space = #(magstep new-size)
 \override StaffSymbol #'thickness = #(magstep new-size)
   #})

and then it can be used in any context owning a font size engraver)

to control the vertical spacing just specify

\new Lyrics \with {
   \staffSize #-4 alignAboveContext = #test
   \override VerticalAxisGroup.nonstaff-relatedstaff-spacing = #'(
 (basic-distance . 2)
 (padding . 1)
   )
 }

or similar


Thanks! I'll give it a try as soon as possible.
The idea with fontSize looks neat, thank you for
pointing this out!

Still I don't quite understand why the distances seem to change
between the first and the second line of the second example.

Marc


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


Re: Lyric-Staff-spacing fails with smaller lyrics

2013-10-12 Thread Eluze
Marc Hohl wrote
 
 Still I don't quite understand why the distances seem to change
 between the first and the second line of the second example.

could this be determined by one of the …-…-spacing's!? - Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Lyric-Staff-spacing-fails-with-smaller-lyrics-tp152155p152171.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: system and staff spacing

2013-09-01 Thread Janek Warchoł
2013/8/30 Gilberto Agostinho gilbertohasn...@googlemail.com:
 Hello all,

 I have been trying to modify the distance between systems and staves, but I
 found it somehow difficult to understand. I am using the following code (on
 which I added the a \paper snippet):

 \version 2.17.24

 \paper {
   system-system-spacing #'basic-distance = #8
   score-system-spacing =
 #'((basic-distance . 12)
 (minimum-distance . 6)
 (padding . 1)
 (stretchability . 12))
 }
 \new Staff {
   \repeat unfold 200 { a4 b c' d' }
 }

 I was playing with the values of the snippet above, and the only line that
 affects something is the system-system-spacing. All parameters of
 score-system-spacing seem to do nothing here, even though it is defined in
 the reference as the distance between the last system of a score and the
 first system of the score that follows it, when no (title or top-level)
 markup exists between them.

Huh?  You have just _one_ score here, containing 200 measures of { a4
b c' d' }, so small wonder that score-system-spacing doesn't do
anything.  To change the spacing between lines (systems), you use
system-system-spacing, exactly as you said.

Is this clearer now?
Janek

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


Re: system and staff spacing

2013-09-01 Thread Gilberto Agostinho
Yes it is Janek, and I got it working well with the correct
system-system-spacing code (it seems I used some old code for it). And I do
understand why the score-system-spacing wasn't making any difference at all
:)

Thanks a lot for all the help!
Gilberto
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


  1   2   >