On 12/5/09 10:13 AM, "Trevor Daniels" <t.dani...@treda.co.uk> wrote:

> 
> 
> Carl Sorensen wrote Saturday, December 05, 2009 2:38 PM
>> 
>> On 12/5/09 2:56 AM, "Trevor Daniels" <t.dani...@treda.co.uk>
>> wrote:
>>> 
>>> Carl Sorensen wrote Friday, December 04, 2009 6:53 PM
>>>> 
>>>> Take three text_scripts, all with outside_staff_priority of 450,
>>>> and with
>>>> script_priorities of 201, 202, 203.
>>>> 
>>>> Convert them to three text_scripts with outside_staff_priorities
>>>> of 450,
>>>> 451, 452, so that the script_priority is moved to outside_staff
>>>> priority.
>>> 
>>> What would happen if there was a TextScript at the same
>>> moment with an 'outside-staff-priority of 451, set by
>>> the user?
>> 
>> The only way to have a TextScript at the same moment with an
>> 'outside-staff-priority of 451 is to use \tweak for the particular
>> 'outside-staff-priority, e.g.
>> 
>> c4^"1"^"2"\tweak #'outside-staff-priority #451 ^"3"
> 
> No, if you have multiple voices in one staff the
> 'outside-staff-priorities
> can be \overridden independently at the same time in the several
> voices.
>

Ahh, you're right, of course.

In that case, I'd say that the response of the user would be to say "Oh, I
didn't raise the outside-staff-priority enough, because it didn't clear all
the TextScripts from the other voice.  Maybe I'll need to raise the
outside-staff-priority a little more."
 
>> A look at your table in the learning manual shows that the
>> different
>> outside-staff-priority values vary by 50.  So if we had 51
>> TextScripts, then
>> the outside-staff-priority would have an issue.  But if we had 51
>> TextScripts, then I'm fairly certain that there would be lots of
>> issues.
> 
> Indeed.  But at least there is plenty of headroom with a gap of 50.
> 
>> But in the interest of the simplest code that provides the desired
>> functionality, I've changed the code to have the
>> outside-staff-priorities in
>> the above example be 450, 450.1, 450.2.
> 
> I think this is much better.  I can easily imagine a user
> changing the outside-staff-priority by one to change the
> stacking order.  Changing it by 0.1 seems far less likely
> to me.  It also makes it easier to document clearly, if we
> think it necessary.
> 

And an additional benefit is that it would take a stack of 10 TextScripts in
one voice will not overlap those in another voice that differ by the implied
resolution of outside-staff-priority.

>> Of course, the question could now be phrased "What happens if a
>> user set an
>> 'outside-staff-priority of 450.2?"
> 
> Well, I sha'n't ask that ;)

OK!

Thanks,

Carl



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to