denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Allow Line/Page Break in Middle of measure


From: Joe Wilkinson
Subject: Re: [Denemo-devel] Allow Line/Page Break in Middle of measure
Date: Thu, 9 Feb 2017 11:11:19 +0000
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

For completeness...............
The order of the objects of bar 2 is indeed
1/4 note, 1/4 note, LineBreak directive, AllowLineBreak directive, 1/4
note, 1/4 note.

The reason for that order is that the first line of your script inserts
the AllowLineBreak directive while the cursor is on the third 1/4 note
of the bar, and so it is inserted before the third 1/4 note, then the
second line inserts the LineBreak directive while the cursor is on the
AllowLineBreak directive and so this is inserted before the
AllowLineBreak directive. (Insert is *always* before the object that the
cursor is on, unless the cursor is in the appending position).

As far as LilyPond is concerned the order is immaterial, because both
occur at the same "moment", that is, the same time in the music. The
upshot is that LilyPond typesets a line break after the second and
before the third 1/4 note because it has an invisible barline there and
a request to break the line on that invisible barline.

I have created two buttons, one with
(d-AllowLineBreak 'non-interactive)
(d-LineBreak 'non-interactive)

and the other with
(d-LineBreak 'non-interactive)
(d-AllowLineBreak 'non-interactive)

The second puts up an extra screen warning me that the LineBreak won't work away from a barline. Both put the directives in the same order in the music, with LineBreak first. And both function correctly.

Joe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]