Re: \textLengthOn relative to bar lines instead of following note

2018-04-27 Thread Thomas Morley
2018-04-27 17:39 GMT+02:00 Robert Hickman :
>>
>> Another hack:
>>
>> \version "2.18.2"
>>
>> pushRight =
>> #(define-event-function (parser location amount)(number?)
>> #{
>>   \tweak text \markup \with-dimensions #(cons 0 amount) #'(0 . 0) ""
>>   -\rightHandFinger #5
>> #})
>>
>> {
>>   \partial 2
>>   a'4^"Unprefixed" a'\pushRight 7
>>   |
>>   a' a'^"Prefixed" a' a'
>> }
>>
>> Cheers,
>>   Harm
>>
>
> This produces the desired result, thanks.

Hi Robert,

glad it works for you.

Please always reply to all, even in case just conforming a suggestion works.
So that others know the problem is solved.

Thus, cc-ing the list again.

Cheers,
  Harm

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


Re: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Kieren MacMillan
Hi Harm,

> I read
> https://lists.gnu.org/archive/html/lilypond-user/2018-04/msg00741.html
> different, i.e. the OP wants the needed space inserted at the end of the bar.

Hmmm… Looking back, I see that the OP wrote:

> I want the space that is inserted to be at the end of the bar
> so the notes are otherwise spaced normally.

I was incorrectly remembering "so the notes are spaced normally" (i.e., without 
the "otherwise").
I stand (type?) corrected!

Thanks,
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: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Thomas Morley
2018-04-25 0:10 GMT+02:00 Kieren MacMillan :

> That version, while good to know about, doesn’t allow the notes to space 
> themselves normally:
>
> I believe the OP wanted (and I definitely want) the notes in that measure to 
> be spaced normally.


Hi Kieren,

I read
https://lists.gnu.org/archive/html/lilypond-user/2018-04/msg00741.html
different, i.e. the OP wants the needed space inserted at the end of the bar.

Anyway, ofcourse my code was made with the purpose _not_ to stretch or
compress, just inserting space at a certain location.

Cheers,
  Harm

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


Re: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Kieren MacMillan
Hi Harm,

> Another hack:

That version, while good to know about, doesn’t allow the notes to space 
themselves normally:



I believe the OP wanted (and I definitely want) the notes in that measure to be 
spaced normally.

Thanks,
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: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Thomas Morley
2018-04-24 17:09 GMT+02:00 Kieren MacMillan :
> Hi all,
>
>>> It would be nice to be able to arbitrarily set the duration of the moment 
>>> that would (if necessary) be stretched.
>> Ah, I follow now. Interesting! Thanks Kieren!
>
> Here’s a hack that shows the desired outcome [in the first measure]:
>
> \version "2.18.2"
>
> {
>\partial 2
><<
>  { \oneVoice a'4^\markup { Unprefixed }( a'4) }
>  \\
>  { \once \hide Rest \tweak extra-spacing-width #'(10 . 10) r2 }
>>>
>a'4( a'4^\markup { Prefixed } a'4)
> }
>
> Cheers,
> Kieren.



Another hack:

\version "2.18.2"

pushRight =
#(define-event-function (parser location amount)(number?)
#{
  \tweak text \markup \with-dimensions #(cons 0 amount) #'(0 . 0) ""
  -\rightHandFinger #5
#})

{
  \partial 2
  a'4^"Unprefixed" a'\pushRight 7
  |
  a' a'^"Prefixed" a' a'
}

Cheers,
  Harm

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


Re: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Kieren MacMillan
Hi all,

>> It would be nice to be able to arbitrarily set the duration of the moment 
>> that would (if necessary) be stretched.
> Ah, I follow now. Interesting! Thanks Kieren!

Here’s a hack that shows the desired outcome [in the first measure]:

\version "2.18.2"

{
   \partial 2
   <<
 { \oneVoice a'4^\markup { Unprefixed }( a'4) }
 \\
 { \once \hide Rest \tweak extra-spacing-width #'(10 . 10) r2 }
   >>
   a'4( a'4^\markup { Prefixed } a'4)
}

Cheers,
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: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Ben


On 4/24/2018 11:04 AM, Kieren MacMillan wrote:

Hi Ben,


I don't quite follow what you're asking.

I know what he’s asking about… It’s something I’ve been asking about for quite a long time 
(>5 years): forcing a *measure* or even *group of measures* (in OP's case, a single 
measure) to stretch to accommodate another grob (in OP’s case, a TextScript), rather than 
the current behaviour ("stretch the current moment"). The problem is particularly 
acute in parts with lots of tempo markings over multi-measure rests, which don’t tend to 
stretch accordingly.


* The action of \textLengthOn extends the length of the moment in time at which 
it occurs.
*All notes which occur at a later musical moment will be displaced to the end 
of the text.

It would be nice to be able to arbitrarily set the duration of the moment that 
would (if necessary) be stretched.



Ah, I follow now. Interesting! Thanks Kieren!


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


Re: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Robert Hickman
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> I don't quite follow what you're asking.
>
> Info from other threads a while back, which could assist you:
>
> * The action of \textLengthOn extends the length of the moment in time at
> which it occurs.
> *All notes which occur at a later musical moment will be displaced to the
> end of the text.
> * \textLengthOn does not necessarily increase the spacing of the note that
> the text is attached to -
>  the shortest moment in time when the text occurs will get the added space.
>
> Does this help you understand better?
>
> Do you happen to have an image showing what you're after?
>

Yes but that's not the effect I want. I want the space that is
inserted to be at the end of the bar so the notes are otherwise spaced
normally. See attached. The annotation is an annotation of the whole
bar, not a single note. It also probably dosn't make sense outside the
document I'm writing.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Kieren MacMillan
Hi Ben,

> I don't quite follow what you're asking. 

I know what he’s asking about… It’s something I’ve been asking about for quite 
a long time (>5 years): forcing a *measure* or even *group of measures* (in 
OP's case, a single measure) to stretch to accommodate another grob (in OP’s 
case, a TextScript), rather than the current behaviour ("stretch the current 
moment"). The problem is particularly acute in parts with lots of tempo 
markings over multi-measure rests, which don’t tend to stretch accordingly.

> * The action of \textLengthOn extends the length of the moment in time at 
> which it occurs.  
> *All notes which occur at a later musical moment will be displaced to the end 
> of the text.

It would be nice to be able to arbitrarily set the duration of the moment that 
would (if necessary) be stretched.

Cheers,
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: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Ben

On 4/24/2018 10:50 AM, Robert Hickman wrote:

On 24 April 2018 at 15:41, Robert Hickman  wrote:

\textLengthOn Makes lilypond format relative to the length of the
textual annotations instead of the notes. However it does this by
inserting a huge gap between the note with the annotation and the next
note. Is there a command that does the same thing relative to the bar
lines. e.g. formats notes normally and moves the gap to the end of the
bar?

I am annotating only the first note in the bar and the large gap which
is being added looks bad.

\version "2.18.2"

\header {tagline = ""}
{
 %\override TextScript.Y-offset = #5
 %\override TextScript.staff-padding = #5
 \numericTimeSignature
 \textLengthOn
 \time 4/4
 %\omit Staff.TimeSignature

 \partial 2 a'4\cut^\markup { Unprefixed }( a'4\strike) | a'4
(a'4\cut^\markup { Prefixed } a'4\strike)
}

_


A down and dirty quick fix for this example could be just to forget the 
textlength and just nudge it over a bit manually:

(see attached)

Does that work?

\version "2.19.81"

\header {tagline = ""}
{
    %\override TextScript.Y-offset = #5
    %\override TextScript.staff-padding = #5
    \numericTimeSignature
*% \textLengthOn*
    \time 4/4
    %\omit Staff.TimeSignature

    \partial 2 a'4^\markup { Unprefixed }(
*  \once \override NoteColumn.X-offset = #3*
    a'4) | a'4
(a'4^\markup { Prefixed } a'4)
}


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


Re: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Ben

On 4/24/2018 10:41 AM, Robert Hickman wrote:

\textLengthOn Makes lilypond format relative to the length of the
textual annotations instead of the notes. However it does this by
inserting a huge gap between the note with the annotation and the next
note. Is there a command that does the same thing relative to the bar
lines. e.g. formats notes normally and moves the gap to the end of the
bar?

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


I don't quite follow what you're asking.

Info from other threads a while back, which could assist you:

* The action of \textLengthOn extends the length of the moment in time 
at which it occurs.
*All notes which occur at a later musical moment will be displaced to 
the end of the text.
* \textLengthOn does not necessarily increase the spacing of the note 
that the text is attached to -

 the shortest moment in time when the text occurs will get the added space.

Does this help you understand better?

Do you happen to have an image showing what you're after?


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


Re: \textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Robert Hickman
On 24 April 2018 at 15:41, Robert Hickman  wrote:
> \textLengthOn Makes lilypond format relative to the length of the
> textual annotations instead of the notes. However it does this by
> inserting a huge gap between the note with the annotation and the next
> note. Is there a command that does the same thing relative to the bar
> lines. e.g. formats notes normally and moves the gap to the end of the
> bar?

I am annotating only the first note in the bar and the large gap which
is being added looks bad.

\version "2.18.2"

\header {tagline = ""}
{
%\override TextScript.Y-offset = #5
%\override TextScript.staff-padding = #5
\numericTimeSignature
\textLengthOn
\time 4/4
%\omit Staff.TimeSignature

\partial 2 a'4\cut^\markup { Unprefixed }( a'4\strike) | a'4
(a'4\cut^\markup { Prefixed } a'4\strike)
}

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


\textLengthOn relative to bar lines instead of following note

2018-04-24 Thread Robert Hickman
\textLengthOn Makes lilypond format relative to the length of the
textual annotations instead of the notes. However it does this by
inserting a huge gap between the note with the annotation and the next
note. Is there a command that does the same thing relative to the bar
lines. e.g. formats notes normally and moves the gap to the end of the
bar?

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