Re: Tweak Down causes extra space

2015-03-13 Thread Kieren MacMillan
Hi Harm,

> I did some more investigation and filed a bug-report. It's not the
> Dynamic/RehearsalMark conflict, but \markLengthOn itself.
> 
> http://lilypond.1069038.n5.nabble.com/markLengthOn-fails-if-MetronomeMark-RehearsalMark-direction-is-DOWN-td173039.html

I’ve recently found some other issues with \markLengthOn and its relatives — 
they may be related.
I will try to narrow it down to a minimal example.

Cheers,
Kieren.
___

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


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


Re: Tweak Down causes extra space

2015-03-12 Thread Thomas Morley
2015-03-12 22:08 GMT+01:00 Thomas Morley :
>
>
> 2015-03-12 20:35 GMT+01:00 Craig Dabelstein :
>>
>>
>> Hi Lilyponders,
>>
>> Has anyone run into this before.
>>
>> When including a "Da Capo" markup at the end of a file, if it sits above
>> the staff it is fine, but when I uncomment the "\tweak direction #DOWN"
>> command it moves the marking below the staff but adds a heap of  extra
>> space. Please see the attached file.
>>
>> This has been driving me crazy. I'm sure there is a simple fix that I've
>> overlooked.
>>
>> Craig
>
>
> It's caused by \markLengthOn in your global-variable: The spacing-wish of
> RehearsalMark and Dynamic conflict.


I did some more investigation and filed a bug-report. It's not the
Dynamic/RehearsalMark conflict, but \markLengthOn itself.

http://lilypond.1069038.n5.nabble.com/markLengthOn-fails-if-MetronomeMark-RehearsalMark-direction-is-DOWN-td173039.html


Cheers,
  Harm

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


Re: Tweak Down causes extra space

2015-03-12 Thread Craig Dabelstein
Thanks Stephen.

I'll try it out and compare.

Craig

On Fri, 13 Mar 2015 at 09:06 Stephen MacNeil 
wrote:

> How is this
>
>
> \version "2.18.2"
>
> \language "english"
>
>
> daCapo = {
>
> %\once
>
> %\override Score.RehearsalMark #'self-alignment-X = #RIGHT
>
> \once
>
> \override Score.RehearsalMark #'self-alignment-X = #0
>
> \once
>
> \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible
>
> \tweak direction #DOWN
>
> \mark
>
> \markup {
>
> \hspace #-11
>
> \italic "Da Capo"
>
> }
>
> }
>
>
> global = {
>
> \markLengthOn
>
> \time 2/4
>
> \key d \major
>
>
>  \repeat volta 2 {
>
> s2*8
>
> }
>
> \mark \default
>
> \repeat volta 2 {
>
> s2*8
>
> }
>
> \once \override Score.RehearsalMark #'self-alignment-X = #LEFT
>
> \mark "TRIO (ad lib.)"
>
> \key g \major
>
> \repeat volta 2 {
>
> s2*8
>
> }
>
> }
>
>
> piccoloNotes = \transpose c c'' {
>
> \relative c' {
>
> \transposition c''
>
> \clef "treble"
>
>
>  a8(\f fs) a( fs) |
>
> d'8(\sf a) a4 |
>
> d8( cs) b-. a-. |
>
> g8 fs e4 |
>
> a8( fs) a( fs) |
>
> d'8(\sf a) a4 |
>
> d8( cs) b-. a-. |
>
> gs8 b a4 |
>
>
>  e8( a) a4\sf |
>
> fs8( a) a4\sf |
>
> g8-. a-. b-. cs-. |
>
> d8( a) fs4 |
>
> e8( a) a4\sf |
>
> fs8( a) a4\sf |
>
> \grace { a16 } g8-. fs-. g-. e-. |
>
> d8-. d'-. d-. r |
>
>
>  r4 r8 b\p |
>
> c8 c d4 |
>
> b8 b d4 |
>
> a8\ff a16 b a8 d, |
>
> r4 r8 b'\p |
>
> c8 c d4 |
>
> b8 c a d |
>
> g,8\ff b16 a g8 r |
>
> \daCapo
>
> }
>
> }
>
>
> \score {
>
> \new Staff = "Piccolo"
>
> <<
>
> \global
>
> \piccoloNotes
>
> >>
>
> }
>
>
> ___
> 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: Tweak Down causes extra space

2015-03-12 Thread Craig Dabelstein
Thanks to you both. I have it sorted now.

Craig


On Fri, 13 Mar 2015 at 07:39 Jim Long  wrote:

> We may be at cross purposes if you're creating score-oriented
> music.  I generally create lead sheets.  But no matter.
>
> I can understand your question, but will you eventually be
> generating single parts from your score?  Would you not then
> WANT to have the D.C. included in every part?  \global helps
> you there, compared to having to manually insert the D.C.
> markup into each instrument part when you go to produce
> individual parts.
>
> If Harm's solution works for you, that's what I would use.
> However, I would still recommend putting all rehearsal marks
> (including the D.C.) into the global music variable, so that both
> your full score and your individual parts will have identical
> rehearsal marks.
>
> Jim
>
>
> On Thu, Mar 12, 2015 at 08:37:13PM +, Craig Dabelstein wrote:
> > Hi Jim,
> >
> > When I put in the "Da Capo" as a text markup in the global section, it
> ends
> > up appearing on every staff, rather than just the bottom one, whereas
> when
> > it is in as a rehearsal mark it only appears once like it should.
> >
> > How do you overcome this? See attached file.
> >
> > Craig
> >
> >
> > On Fri, 13 Mar 2015 at 06:25 Craig Dabelstein <
> craig.dabelst...@gmail.com>
> > wrote:
> >
> > > Hi Jim,
> > >
> > > Thanks for your quick response. I'll look into your solution now.
> > >
> > > Craig
> > >
> > >
> > >
> > >
> > > On Fri, 13 Mar 2015 at 06:23 Jim Long  wrote:
> > >
> > >> Hi, Craig.
> > >>
> > >> Just for a different perspective, I always put form-related marks
> > >> like D.C., D.S., Segnos, Codas, Fines, etc. in the global section.
> > >> Since they (almost always) need to be in the same location for all
> > >> parts, it makes the most sense to me to put them there once, and
> > >> then use the \global variable in each part to make sure that all
> > >> parts are consistent.
> > >>
> > >> That said, I'm attaching a diff to your original file that shows
> > >> how I would do what you're trying to accomplish.  I, too, have
> > >> seen that \marks will sometimes distort the musical spacing, but
> > >> except for lots of fiddling with X-extents and offsets, I don't
> > >> know how to do anything about it.
> > >>
> > >> My approach uses TextScript markup objects instead of RehearsalMark
> > >> objects.  I hope it will give you some ideas about alternative
> > >> solutions to your problem.
> > >>
> > >> Jim
> > >>
> > >>
> > >>
> > >> On Thu, Mar 12, 2015 at 07:35:44PM +, Craig Dabelstein wrote:
> > >> > Hi Lilyponders,
> > >> >
> > >> > Has anyone run into this before.
> > >> >
> > >> > When including a "Da Capo" markup at the end of a file, if it sits
> above
> > >> > the staff it is fine, but when I uncomment the "\tweak direction
> #DOWN"
> > >> > command it moves the marking below the staff but adds a heap of
> extra
> > >> > space. Please see the attached file.
> > >> >
> > >> > This has been driving me crazy. I'm sure there is a simple fix that
> I've
> > >> > overlooked.
> > >> >
> > >> > Craig
> > >> >
> > >> >
> > >> >
> > >> >*Craig Dabelstein*
> > >> >  e:craig.dabelst...@gmail.com
> > >> >  
> > >> > 
> > >>
> > >>
> > >> > ___
> > >> > lilypond-user mailing list
> > >> > lilypond-user@gnu.org
> > >> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> > >>
> > >>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tweak Down causes extra space

2015-03-12 Thread Jim Long
We may be at cross purposes if you're creating score-oriented
music.  I generally create lead sheets.  But no matter.

I can understand your question, but will you eventually be
generating single parts from your score?  Would you not then
WANT to have the D.C. included in every part?  \global helps
you there, compared to having to manually insert the D.C.
markup into each instrument part when you go to produce
individual parts.

If Harm's solution works for you, that's what I would use.
However, I would still recommend putting all rehearsal marks
(including the D.C.) into the global music variable, so that both
your full score and your individual parts will have identical
rehearsal marks.

Jim


On Thu, Mar 12, 2015 at 08:37:13PM +, Craig Dabelstein wrote:
> Hi Jim,
> 
> When I put in the "Da Capo" as a text markup in the global section, it ends
> up appearing on every staff, rather than just the bottom one, whereas when
> it is in as a rehearsal mark it only appears once like it should.
> 
> How do you overcome this? See attached file.
> 
> Craig
> 
> 
> On Fri, 13 Mar 2015 at 06:25 Craig Dabelstein 
> wrote:
> 
> > Hi Jim,
> >
> > Thanks for your quick response. I'll look into your solution now.
> >
> > Craig
> >
> >
> >
> >
> > On Fri, 13 Mar 2015 at 06:23 Jim Long  wrote:
> >
> >> Hi, Craig.
> >>
> >> Just for a different perspective, I always put form-related marks
> >> like D.C., D.S., Segnos, Codas, Fines, etc. in the global section.
> >> Since they (almost always) need to be in the same location for all
> >> parts, it makes the most sense to me to put them there once, and
> >> then use the \global variable in each part to make sure that all
> >> parts are consistent.
> >>
> >> That said, I'm attaching a diff to your original file that shows
> >> how I would do what you're trying to accomplish.  I, too, have
> >> seen that \marks will sometimes distort the musical spacing, but
> >> except for lots of fiddling with X-extents and offsets, I don't
> >> know how to do anything about it.
> >>
> >> My approach uses TextScript markup objects instead of RehearsalMark
> >> objects.  I hope it will give you some ideas about alternative
> >> solutions to your problem.
> >>
> >> Jim
> >>
> >>
> >>
> >> On Thu, Mar 12, 2015 at 07:35:44PM +, Craig Dabelstein wrote:
> >> > Hi Lilyponders,
> >> >
> >> > Has anyone run into this before.
> >> >
> >> > When including a "Da Capo" markup at the end of a file, if it sits above
> >> > the staff it is fine, but when I uncomment the "\tweak direction #DOWN"
> >> > command it moves the marking below the staff but adds a heap of  extra
> >> > space. Please see the attached file.
> >> >
> >> > This has been driving me crazy. I'm sure there is a simple fix that I've
> >> > overlooked.
> >> >
> >> > Craig
> >> >
> >> >
> >> >
> >> >*Craig Dabelstein*
> >> >  e:craig.dabelst...@gmail.com
> >> >  
> >> > 
> >>
> >>
> >> > ___
> >> > lilypond-user mailing list
> >> > lilypond-user@gnu.org
> >> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> >>
> >>



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


Re: Tweak Down causes extra space

2015-03-12 Thread Thomas Morley
2015-03-12 20:35 GMT+01:00 Craig Dabelstein :

>
> Hi Lilyponders,
>
> Has anyone run into this before.
>
> When including a "Da Capo" markup at the end of a file, if it sits above
> the staff it is fine, but when I uncomment the "\tweak direction #DOWN"
> command it moves the marking below the staff but adds a heap of  extra
> space. Please see the attached file.
>
> This has been driving me crazy. I'm sure there is a simple fix that I've
> overlooked.
>
> Craig
>

It's caused by \markLengthOn in your global-variable: The spacing-wish of
RehearsalMark and Dynamic conflict.

How about:

daCapo = {
  \once
  \override Score.RehearsalMark #'self-alignment-X = #RIGHT
  \once
  \override Score.RehearsalMark #'break-visibility =
#begin-of-line-invisible
  \markLengthOff
  \tweak direction #DOWN
  \mark
  \markup {
%% maybe add:
\fontsize #-2
\italic "Da Capo"
  }
  \markLengthOn
}


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


Re: Tweak Down causes extra space

2015-03-12 Thread Craig Dabelstein
Hi Jim,

When I put in the "Da Capo" as a text markup in the global section, it ends
up appearing on every staff, rather than just the bottom one, whereas when
it is in as a rehearsal mark it only appears once like it should.

How do you overcome this? See attached file.

Craig


On Fri, 13 Mar 2015 at 06:25 Craig Dabelstein 
wrote:

> Hi Jim,
>
> Thanks for your quick response. I'll look into your solution now.
>
> Craig
>
>
>
>
> On Fri, 13 Mar 2015 at 06:23 Jim Long  wrote:
>
>> Hi, Craig.
>>
>> Just for a different perspective, I always put form-related marks
>> like D.C., D.S., Segnos, Codas, Fines, etc. in the global section.
>> Since they (almost always) need to be in the same location for all
>> parts, it makes the most sense to me to put them there once, and
>> then use the \global variable in each part to make sure that all
>> parts are consistent.
>>
>> That said, I'm attaching a diff to your original file that shows
>> how I would do what you're trying to accomplish.  I, too, have
>> seen that \marks will sometimes distort the musical spacing, but
>> except for lots of fiddling with X-extents and offsets, I don't
>> know how to do anything about it.
>>
>> My approach uses TextScript markup objects instead of RehearsalMark
>> objects.  I hope it will give you some ideas about alternative
>> solutions to your problem.
>>
>> Jim
>>
>>
>>
>> On Thu, Mar 12, 2015 at 07:35:44PM +, Craig Dabelstein wrote:
>> > Hi Lilyponders,
>> >
>> > Has anyone run into this before.
>> >
>> > When including a "Da Capo" markup at the end of a file, if it sits above
>> > the staff it is fine, but when I uncomment the "\tweak direction #DOWN"
>> > command it moves the marking below the staff but adds a heap of  extra
>> > space. Please see the attached file.
>> >
>> > This has been driving me crazy. I'm sure there is a simple fix that I've
>> > overlooked.
>> >
>> > Craig
>> >
>> >
>> >
>> >*Craig Dabelstein*
>> >  e:craig.dabelst...@gmail.com
>> >  
>> > 
>>
>>
>> > ___
>> > lilypond-user mailing list
>> > lilypond-user@gnu.org
>> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>


Da Capo test file.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tweak Down causes extra space

2015-03-12 Thread Craig Dabelstein
Hi Jim,

Thanks for your quick response. I'll look into your solution now.

Craig




On Fri, 13 Mar 2015 at 06:23 Jim Long  wrote:

> Hi, Craig.
>
> Just for a different perspective, I always put form-related marks
> like D.C., D.S., Segnos, Codas, Fines, etc. in the global section.
> Since they (almost always) need to be in the same location for all
> parts, it makes the most sense to me to put them there once, and
> then use the \global variable in each part to make sure that all
> parts are consistent.
>
> That said, I'm attaching a diff to your original file that shows
> how I would do what you're trying to accomplish.  I, too, have
> seen that \marks will sometimes distort the musical spacing, but
> except for lots of fiddling with X-extents and offsets, I don't
> know how to do anything about it.
>
> My approach uses TextScript markup objects instead of RehearsalMark
> objects.  I hope it will give you some ideas about alternative
> solutions to your problem.
>
> Jim
>
>
>
> On Thu, Mar 12, 2015 at 07:35:44PM +, Craig Dabelstein wrote:
> > Hi Lilyponders,
> >
> > Has anyone run into this before.
> >
> > When including a "Da Capo" markup at the end of a file, if it sits above
> > the staff it is fine, but when I uncomment the "\tweak direction #DOWN"
> > command it moves the marking below the staff but adds a heap of  extra
> > space. Please see the attached file.
> >
> > This has been driving me crazy. I'm sure there is a simple fix that I've
> > overlooked.
> >
> > Craig
> >
> >
> >
> >*Craig Dabelstein*
> >  e:craig.dabelst...@gmail.com
> >  
> > 
>
>
> > ___
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tweak Down causes extra space

2015-03-12 Thread Jim Long
Hi, Craig.

Just for a different perspective, I always put form-related marks
like D.C., D.S., Segnos, Codas, Fines, etc. in the global section.
Since they (almost always) need to be in the same location for all
parts, it makes the most sense to me to put them there once, and
then use the \global variable in each part to make sure that all
parts are consistent.

That said, I'm attaching a diff to your original file that shows
how I would do what you're trying to accomplish.  I, too, have
seen that \marks will sometimes distort the musical spacing, but 
except for lots of fiddling with X-extents and offsets, I don't
know how to do anything about it.

My approach uses TextScript markup objects instead of RehearsalMark
objects.  I hope it will give you some ideas about alternative
solutions to your problem.

Jim



On Thu, Mar 12, 2015 at 07:35:44PM +, Craig Dabelstein wrote:
> Hi Lilyponders,
> 
> Has anyone run into this before.
> 
> When including a "Da Capo" markup at the end of a file, if it sits above
> the staff it is fine, but when I uncomment the "\tweak direction #DOWN"
> command it moves the marking below the staff but adds a heap of  extra
> space. Please see the attached file.
> 
> This has been driving me crazy. I'm sure there is a simple fix that I've
> overlooked.
> 
> Craig
> 
> 
> 
>*Craig Dabelstein*
>  e:craig.dabelst...@gmail.com
>  
> 


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

--- testfile.ly.orig2015-03-12 13:06:16.0 -0700
+++ testfile.ly 2015-03-12 13:17:01.0 -0700
@@ -1,17 +1,7 @@
 \version "2.18.2"
 \language "english"
 
-daCapo = {
-  \once
-  \override Score.RehearsalMark #'self-alignment-X = #RIGHT
-  \once
-  \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible
-  %\tweak direction #DOWN
-  \mark
-  \markup {
-\italic "Da Capo"
-  }
-}
+daCapo = \markup { \italic "Da Capo" }
 
 global = {
   \markLengthOn
@@ -29,7 +19,8 @@
   \mark "TRIO (ad lib.)"
   \key g \major
   \repeat volta 2 {
-s2*8 
+s2*7 
+s4 s4_\daCapo
   }
 }
 
@@ -64,7 +55,6 @@
 c8 c d4 |
 b8 c a d |
 g,8\ff b16 a g8 r |
-\daCapo
   }
 }
 
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user