Re: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
Mark, I know that.
But the snippet I just wrote has to be completed/enriched before proposing
it for the repository.

2018-03-25 19:41 GMT+02:00 Mark Stephen Mrotek :

> Paolo,
>
>
>
> The Lilypond Snipped Repository is at
>
> http://lsr.di.unimi.it/LSR/
>
>
>
> Mark
>
>
>
> *From:* lilypond-user [mailto:lilypond-user-bounces+carsonmark=
> ca.rr@gnu.org] *On Behalf Of *Paolo Prete
> *Sent:* Sunday, March 25, 2018 10:40 AM
> *To:* Thomas Morley 
> *Cc:* Lilypond-User Mailing List 
> *Subject:* Re: Extra space at the beginning of the bar
>
>
>
> Hello Thomas,
>
>
>
> thanks for the tweak, which is massive.
>
> I think it would be useful to group in one snippet all these howtos and
> work-arounds for solving horizontal spacing issues.
>
> Then I created this snippet, which has to be completed and can be enriched.
>
>
>
> http://lilybin.com/p2whaw/4
>
>
>
> Any contribution is welcome...! I know that you seem to discourage manual
> placement of grobs, but it would be useful at least to group these tips in
> one
>
> coherent document.
>
> Please give me a feedback
>
>
>
>
>
>
>
> 2018-03-25 18:22 GMT+02:00 Thomas Morley :
>
>
>
> As long as you have a SkipEvent without any post-events the
> SpacingSpanner-override will affect and move the _following_
> NoteColumn.
> That looks fine, imho
>
> As soon as something is attached to a SkipEvent a related PaperColumn
> is created and can be tweaked like:
>
> {
>   \overrideProperty Score.PaperColumn.X-extent #'(-20 . 10)
>   s4\f
>   c''2.
> }
>
> Cheers,
>   Harm
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Extra space at the beginning of the bar

2018-03-25 Thread Mark Stephen Mrotek
Paolo,

 

The Lilypond Snipped Repository is at

http://lsr.di.unimi.it/LSR/

 

Mark

 

From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] 
On Behalf Of Paolo Prete
Sent: Sunday, March 25, 2018 10:40 AM
To: Thomas Morley 
Cc: Lilypond-User Mailing List 
Subject: Re: Extra space at the beginning of the bar

 

Hello Thomas,

 

thanks for the tweak, which is massive.

I think it would be useful to group in one snippet all these howtos and 
work-arounds for solving horizontal spacing issues.

Then I created this snippet, which has to be completed and can be enriched.

 

http://lilybin.com/p2whaw/4

 

Any contribution is welcome...! I know that you seem to discourage manual 
placement of grobs, but it would be useful at least to group these tips in one

coherent document.

Please give me a feedback

 

 

 

2018-03-25 18:22 GMT+02:00 Thomas Morley mailto:thomasmorle...@gmail.com> >:

 

As long as you have a SkipEvent without any post-events the
SpacingSpanner-override will affect and move the _following_
NoteColumn.
That looks fine, imho

As soon as something is attached to a SkipEvent a related PaperColumn
is created and can be tweaked like:

{
  \overrideProperty Score.PaperColumn.X-extent #'(-20 . 10)
  s4\f
  c''2.
}

Cheers,
  Harm

 

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


Re: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
Hello Thomas,

thanks for the tweak, which is massive.
I think it would be useful to group in one snippet all these howtos and
work-arounds for solving horizontal spacing issues.
Then I created this snippet, which has to be completed and can be enriched.

http://lilybin.com/p2whaw/4

Any contribution is welcome...! I know that you seem to discourage manual
placement of grobs, but it would be useful at least to group these tips in
one
coherent document.
Please give me a feedback



2018-03-25 18:22 GMT+02:00 Thomas Morley :

>
> As long as you have a SkipEvent without any post-events the
> SpacingSpanner-override will affect and move the _following_
> NoteColumn.
> That looks fine, imho
>
> As soon as something is attached to a SkipEvent a related PaperColumn
> is created and can be tweaked like:
>
> {
>   \overrideProperty Score.PaperColumn.X-extent #'(-20 . 10)
>   s4\f
>   c''2.
> }
>
> Cheers,
>   Harm
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra space at the beginning of the bar

2018-03-25 Thread Thomas Morley
2018-03-25 17:17 GMT+02:00 Paolo Prete :
> Hello Thomas,
>
> Given that the post events attached to a SkipEvent get parents like
> PaperColumn and VerticalAxisGroup, I expect that overriding some of these
> parents' properties shifts the dynamic placed on a skip  event,
> consequently. But this doesn't happen.
> Better said: I don't know which parent could I choose to override in order
> to shift its children's position properties.
>
> {
>
>  \override VerticalAxisGroup.X-extent = #'(22 . 0)
>  \override PaperColumn.X-extent = #'(22 . 0)
>  \override VerticalAxisGroup.X-offset = #'(22 . 0)
>  \override PaperColumn.X-offset = #'(22 . 0)
>   s\mf c' c' c'
>
> }
>
> More generally: is there a way to shift a vertical axis/column, so that
> associated notes/rests/dynamics/skip-events shift too?
> This would be great...
>
>
>>
>>
>> For spacing wishes for single SkipEvents you may use the SpacingSpanner:
>>
>> {
>>   \override Score.SpacingSpanner.spacing-increment = 10
>>   s4
>>   \revert Score.SpacingSpanner.spacing-increment
>>   \newSpacingSection
>>   c''2.
>> }
>>
>
> Doesn't work if the skip event has a dynamics, or a markup etc. ...
>
>
>>
>>
>> Cheers,
>>   Harm
>
>

As long as you have a SkipEvent without any post-events the
SpacingSpanner-override will affect and move the _following_
NoteColumn.
That looks fine, imho

As soon as something is attached to a SkipEvent a related PaperColumn
is created and can be tweaked like:

{
  \overrideProperty Score.PaperColumn.X-extent #'(-20 . 10)
  s4\f
  c''2.
}

Cheers,
  Harm

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


Re: Extra space at the beginning of the bar

2018-03-25 Thread Patrick Karl

> On Mar 25, 2018, at 2:56 AM, lilypond-user-requ...@gnu.org wrote:
> 
> Message: 2
> Date: Sat, 24 Mar 2018 22:57:18 -0400
> From: Kieren MacMillan 
> To: paolo prete 
> Cc: Lilypond-User Mailing List 
> Subject: Re: Extra space at the beginning of the bar
> Message-ID: 
> Content-Type: text/plain; charset=utf-8
> 
> Hi Paolo,
> 
>> Is there a way to add extra space at the beginning of a bar without 
>> overriding the X-offset of the starting notes/rests/chords?
>> {  how to add space here? . c' c' c' c' }
> 
> Here are two options that avoid X-offset:
> 
> \version "2.19.80"
> \language "english"
> 
> \score {
>  \repeat unfold 12 { c'4 }
>  \layout {
>\context {
>  \Score
>  \override BarLine.space-alist.first-note = #'(fixed-space . 12)
>  \override BarLine.space-alist.next-note = #'(semi-fixed-space . 12.5)
>}
>  }
> }

I don’t understand your first method.  Why doesn’t the first measure have any 
extra space?  To me, the score looks identical whether I include your first 
override or not; it doesn’t seem to do anything.  It must be because there’s 
not a bar line before the first measure.  I tried changing the “music” to:  { 
\bar “” \repeat unfold 12 { c’4 } }, but that didn’t change anything.

Just curious what’s going on here.
> 
> { \tweak NoteHead.extra-spacing-width #'(-12 . 0) c'4 4 4 4 }
> 


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


Re: Extra space at the beginning of the bar

2018-03-25 Thread Kieren MacMillan
Hi Patrick,

>> \score {
>> \repeat unfold 12 { c'4 }
>> \layout {
>>   \context {
>> \Score
>> \override BarLine.space-alist.first-note = #'(fixed-space . 12)
>> \override BarLine.space-alist.next-note = #'(semi-fixed-space . 12.5)
>>   }
>> }
>> }
> 
> I don’t understand your first method.  Why doesn’t the first measure have any 
> extra space?  To me, the score looks identical whether I include your first 
> override or not; it doesn’t seem to do anything.  It must be because there’s 
> not a bar line before the first measure.

Correct! The tweak adjusted a BarLine property, and thus doesn’t affect the 
first measure.

Best,
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: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
Hello Thomas,

Given that the post events attached to a SkipEvent get parents like
PaperColumn and VerticalAxisGroup, I expect that overriding some of these
parents' properties shifts the dynamic placed on a skip  event,
consequently. But this doesn't happen.
Better said: I don't know which parent could I choose to override in order
to shift its children's position properties.

{

 \override VerticalAxisGroup.X-extent = #'(22 . 0)
 \override PaperColumn.X-extent = #'(22 . 0)
 \override VerticalAxisGroup.X-offset = #'(22 . 0)
 \override PaperColumn.X-offset = #'(22 . 0)
  s\mf c' c' c'

}

More generally: is there a way to shift a vertical axis/column, so that
associated notes/rests/dynamics/skip-events shift too?
This would be great...



>
> For spacing wishes for single SkipEvents you may use the SpacingSpanner:
>
> {
>   \override Score.SpacingSpanner.spacing-increment = 10
>   s4
>   \revert Score.SpacingSpanner.spacing-increment
>   \newSpacingSection
>   c''2.
> }
>
>
Doesn't work if the skip event has a dynamics, or a markup etc. ...



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


Re: Extra space at the beginning of the bar

2018-03-25 Thread Thomas Morley
2018-03-25 15:01 GMT+02:00 Paolo Prete :

> Again: I think that these events [SkipEvents] must be managed as graphic 
> objects, with
> the extra-spacing-width and X-offset properties. I don't understand why they
> don't implement these interfaces and I wonder if is there a way to override
> this behaviour (with some _global_ scheme code)

SkipEvents don't cause any grob itself.
This is a feature!

As soon as other (post-)events are attached to a SkipEvent they get
parents like PaperColum and VerticalAxisGroup.
Ofcourse those attached events may cause grobs, which are taken into
account by the spacing-engine.


For spacing wishes for single SkipEvents you may use the SpacingSpanner:

{
  \override Score.SpacingSpanner.spacing-increment = 10
  s4
  \revert Score.SpacingSpanner.spacing-increment
  \newSpacingSection
  c''2.
}


Cheers,
  Harm

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


Re: Extra space at the beginning of the bar

2018-03-25 Thread Paolo Prete
Hi Kieren


2018-03-25 13:41 GMT+02:00 Kieren MacMillan :

> Hi Paolo,
>
>
> You’d have to add an equivalent tweak for any prefatory material (Clef,
> KeySignature, etc.).
>
>
Doesn't work for skip events too...



> > and the second option doesn't add space if the measure starts with a
> rest or skip event.
> > I could use   "\tweak Rest.extra-spacing-width ... " for the rest but I
> don't know what to apply to a skip event...
> > How can I fix that?
>
> 1. What music do you have that doesn’t include a grob of any sort in the
> first moment of the measure?
>
>

Have a look at this snippet (  http://lilybin.com/p2whaw/1  ) :


%%

upper = {
   c'8 c' \change Staff = "down" g \change Staff = "up" c'
   \change Staff = "down" \stemUp g g \change Staff = "up" c' \change Staff
= "down" c'
}

lower = {
   s8\f s s\mf s s\mp s s\p s
}

\score {
  \new PianoStaff
  <<
\new Staff = "up"   << \upper >>
\new Staff = "down" << \clef bass \lower >>
  >>
}

%%

... as you can see, there's no way to add extra-space at the beginning of
the measure, without work-arounds (like the one you just proposed).


2. How about
>
> { \once \hide Rest \tweak Rest.extra-spacing-width #'(-10 . 0) r4 c'4
> 4 4 }
>


It does the job but I don't think it's a good solution. I wonder if is
there a more general solution, given that in cross-staff music, it
frequently happens that I have to place dynamics like the snippet above,
and skip-events cause issues for the alignment of the attached items.
Again: I think that these events must be managed as graphic objects, with
the extra-spacing-width and X-offset properties. I don't understand why
they don't implement these interfaces and I wonder if is there a way to
override this behaviour (with some _global_ scheme code)
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra space at the beginning of the bar

2018-03-25 Thread Kieren MacMillan
Hi Paolo,

> Unfortunately yhe first option adds space only after a barline, and not at 
> the measure on the left of the staff

\score {
  \repeat unfold 12 { c'4 }
  \layout {
\context {
  \Score
  \override TimeSignature.extra-spacing-width = #'(0 . 10)
  \override BarLine.space-alist.first-note = #'(fixed-space . 12)
  \override BarLine.space-alist.next-note = #'(semi-fixed-space . 12.5)
}
  }
}

You’d have to add an equivalent tweak for any prefatory material (Clef, 
KeySignature, etc.).

> and the second option doesn't add space if the measure starts with a rest or 
> skip event.
> I could use   "\tweak Rest.extra-spacing-width ... " for the rest but I don't 
> know what to apply to a skip event...
> How can I fix that?

1. What music do you have that doesn’t include a grob of any sort in the first 
moment of the measure?

2. How about

{ \once \hide Rest \tweak Rest.extra-spacing-width #'(-10 . 0) r4 c'4 4 4 }

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: Extra space at the beginning of the bar

2018-03-25 Thread paolo prete
I think that the biggest problem is that a skip event doesn't implement the
Graphical Objects Interfaces' properties AFAIK (I just searched trhough the
API)
Then, no X-offset or extra-spacing-width ... etc. are avaible for it
IMHO, it should be considered as a Graphical Object, because it is placed
in a precise position in the staff and dynamics, markup etc. can be added
to it.

Any feedback about that?


2018-03-25 12:18 GMT+02:00 paolo prete :

> Hello Kieren,
>
> thanks for your help.
> Unfortunately yhe first option adds space only after a barline, and not at
> the measure on the left of the staff,  and the second option doesn't add
> space if the measure starts with a rest or skip event.
>
> I could use   "\tweak Rest.extra-spacing-width ... " for the rest but I
> don't know what to apply to a skip event...
>
> How can I fix that?
>
>>
>>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extra space at the beginning of the bar

2018-03-25 Thread paolo prete
Hello Kieren,

thanks for your help.
Unfortunately yhe first option adds space only after a barline, and not at
the measure on the left of the staff,  and the second option doesn't add
space if the measure starts with a rest or skip event.

I could use   "\tweak Rest.extra-spacing-width ... " for the rest but I
don't know what to apply to a skip event...

How can I fix that?




2018-03-25 4:57 GMT+02:00 Kieren MacMillan :

> Hi Paolo,
>
> > Is there a way to add extra space at the beginning of a bar without
> overriding the X-offset of the starting notes/rests/chords?
> > {  how to add space here? . c' c' c' c' }
>
> Here are two options that avoid X-offset:
>
> \version "2.19.80"
> \language "english"
>
> \score {
>   \repeat unfold 12 { c'4 }
>   \layout {
> \context {
>   \Score
>   \override BarLine.space-alist.first-note = #'(fixed-space . 12)
>   \override BarLine.space-alist.next-note = #'(semi-fixed-space . 12.5)
> }
>   }
> }
>
> { \tweak NoteHead.extra-spacing-width #'(-12 . 0) c'4 4 4 4 }
>
> 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: Extra space at the beginning of the bar

2018-03-24 Thread Kieren MacMillan
Hi Paolo,

> Is there a way to add extra space at the beginning of a bar without 
> overriding the X-offset of the starting notes/rests/chords?
> {  how to add space here? . c' c' c' c' }

Here are two options that avoid X-offset:

\version "2.19.80"
\language "english"

\score {
  \repeat unfold 12 { c'4 }
  \layout {
\context {
  \Score
  \override BarLine.space-alist.first-note = #'(fixed-space . 12)
  \override BarLine.space-alist.next-note = #'(semi-fixed-space . 12.5)
}
  }
}

{ \tweak NoteHead.extra-spacing-width #'(-12 . 0) c'4 4 4 4 }

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


Extra space at the beginning of the bar

2018-03-24 Thread paolo prete
Hello,

Is there a way to add extra space at the beginning of a bar without
overriding the X-offset of the starting notes/rests/chords?

{  how to add space here? . c' c' c' c' }

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