Tie minimum length

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Tie minimum length

Andrew Bernard
The NR for 2.19.82 in section 3.2.128 'tie interface' states:

min-length
If the tie is shorter than this amount (in staff-spaces) an increasingly large length penalty is incurred.

But if I use this an error is thrown. Using minimum-length works fine.

warning: cannot find property type-check for `min-length' (backend-type?). perhaps a typing error?

warning: skipping assignment



Is this a mistake in the manual for the name?

Andrew


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Tie minimum length

David Kastrup
Andrew Bernard <[hidden email]> writes:

> The NR for 2.19.82 in section 3.2.128 'tie interface' states:
>
> min-length
> If the tie is shorter than this amount (in staff-spaces) an increasingly
> large length penalty is incurred.
>
> But if I use this an error is thrown. Using minimum-length works fine.
>
> warning: cannot find property type-check for `min-length' (backend-type?).
> perhaps a typing error?
>
> warning: skipping assignment
>
>
>
> Is this a mistake in the manual for the name?

Yes and no.

dak@lola:/usr/local/tmp/lilypond$ git grep min-length
Documentation/included/font-table.ly:   (define (min-length lst n)
Documentation/included/font-table.ly:    (1+ (min-length (cdr lst) (1- n)))))
Documentation/included/font-table.ly:     (let* ((n (min-length names 2))
Documentation/misc/ChangeLog-2.10:      sliding score for min-length.
lily/tie-details.cc:  min_length_ = get_real_detail ("min-length", 1.0);
lily/tie-details.cc:  min_length_penalty_factor_ = get_real_detail ("min-length-penalty-factor", 1.0);
lily/tie.cc:               "@item min-length\n"
lily/tie.cc:               "@item min-length-penalty-factor\n"
lily/tie.cc:               " @code{min-length}.\n"
scm/define-grobs.scm:                    (min-length-penalty-factor . 26)

Part of the code uses it but it is not properly defined.  It's not as
much a "mistake in the manual" as completely broken code.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Tie minimum length

Trevor Daniels
In reply to this post by Andrew Bernard


Andrew, you wrote 18/01/2019 14:19:08
Subject: Tie minimum length

>The NR for 2.19.82 in section 3.2.128 'tie interface' states:
I think you mean the IR.

>min-length
>If the tie is shorter than this amount (in staff-spaces) an
>increasingly large length penalty is incurred.
>
>But if I use this an error is thrown. Using minimum-length works fine.
>
>warning: cannot find property type-check for `min-length'
>(backend-type?). perhaps a typing error?
>
>warning: skipping assignment
>
>Is this a mistake in the manual for the name?

No. min-length is a property in the details list.  It must be set like
this:

   \override Tie.details.min-length = ...

However, it doesn't do what you expect - it merely feeds into the length
penalty.

To specify a minimum length for the tie you should use minimum-length,
as you discovered.
This is defined in the spanner-interface, used by Tie.

Trevor


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|

Re: Tie minimum length

David Kastrup
In reply to this post by David Kastrup
David Kastrup <[hidden email]> writes:

> Andrew Bernard <[hidden email]> writes:

[...]

>> Is this a mistake in the manual for the name?
>
> Yes and no.
>
> dak@lola:/usr/local/tmp/lilypond$ git grep min-length
> Documentation/included/font-table.ly:   (define (min-length lst n)
> Documentation/included/font-table.ly:    (1+ (min-length (cdr lst) (1- n)))))
> Documentation/included/font-table.ly:     (let* ((n (min-length names 2))
> Documentation/misc/ChangeLog-2.10:      sliding score for min-length.
> lily/tie-details.cc:  min_length_ = get_real_detail ("min-length", 1.0);
> lily/tie-details.cc: min_length_penalty_factor_ = get_real_detail
> ("min-length-penalty-factor", 1.0);
> lily/tie.cc:               "@item min-length\n"
> lily/tie.cc:               "@item min-length-penalty-factor\n"
> lily/tie.cc:               " @code{min-length}.\n"
> scm/define-grobs.scm:                    (min-length-penalty-factor . 26)
>
> Part of the code uses it but it is not properly defined.  It's not as
> much a "mistake in the manual" as completely broken code.

Ah, Trevor explained it.  I should have looked more carefully: my
statement is wrong.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user