Re: Automatic adjustment of staff heights in display

2021-11-03 Thread Richard Shann
On Wed, 2021-11-03 at 17:33 +, Richard Shann wrote:
> On Wed, 2021-11-03 at 14:35 +, Richard Shann wrote:
> > Thanks for the feedback.
> > On Wed, 2021-11-03 at 15:20 +0200, Lib Lists wrote:
> > > Hi, everything seems to work here well and smoothly. The
> > > automatic
> > > adjustment creates quite a big gap between staves, making reading
> > > multiple staves slightly uncomfortable to me. Is that done on
> > > purpose
> > > (for example in the future the possibility of giving more space
> > > to
> > > other elements, i.e. dynamics, hairpins etc.)?
> > Perhaps that was the idea (this is ancient code) - putting in a
> > hairpin
> > does not affect the spacing, so if the staffs were much closer by
> > default then things would start clashing when hairpins were added.
> > However, the placing of hairpins under the notes ignores the note
> > positions, so they already easily clash with the note heads
> > themselves.
> > I think it might be work just to have the default spacing rather
> > less,
> > I'll look into it.
> 
> It turns out you can already decrease the minimum distance between
> staffs via 
> Command: Score Properties Editor
> Opens a dialog to edit the score properties.
> Location: Object Menu ▶ Score
> Internal Name: EditScoreProperties
> 
> and choosing Edit Built-in Score Properties.
> 
> However the minimum is still quite large and anyway the choice isn't
> saved with the score. I've now made it possible to reduce this until
> there is only space for one leger line between the staffs and the
> choice is stored with the score.
> 
> I've discovered also that there is a command 
> 
> Command: Taller Staffs
> No Tooltip yet
> Location: Object Menu ▶ Staffs/Voices ▶ Display Effects
> Internal Name: TallerStaffs
> 
> which can be used in a script eg:
> 
> (d-TallerStaffs 850)

hmm, actually d-TallerStaffs doesn't respond to the parameter passed,
it does an increment of half a staff line or some such...

> 
> and a corresponding
> 
> Command: Shorter Staffs
> No Tooltip yet
> Location: Object Menu ▶ Staffs/Voices ▶ Display Effects
> Internal Name: ShorterStaffs
> 
> It would seem they are in the wrong menu as they affect all the
> staffs
> in the movement.

I've moved them to the movement menu now.

Richard





Re: Automatic adjustment of staff heights in display

2021-11-03 Thread Richard Shann
On Wed, 2021-11-03 at 14:35 +, Richard Shann wrote:
> Thanks for the feedback.
> On Wed, 2021-11-03 at 15:20 +0200, Lib Lists wrote:
> > Hi, everything seems to work here well and smoothly. The automatic
> > adjustment creates quite a big gap between staves, making reading
> > multiple staves slightly uncomfortable to me. Is that done on
> > purpose
> > (for example in the future the possibility of giving more space to
> > other elements, i.e. dynamics, hairpins etc.)?
> Perhaps that was the idea (this is ancient code) - putting in a
> hairpin
> does not affect the spacing, so if the staffs were much closer by
> default then things would start clashing when hairpins were added.
> However, the placing of hairpins under the notes ignores the note
> positions, so they already easily clash with the note heads
> themselves.
> I think it might be work just to have the default spacing rather
> less,
> I'll look into it.

It turns out you can already decrease the minimum distance between
staffs via 
Command: Score Properties Editor
Opens a dialog to edit the score properties.
Location: Object Menu ▶ Score
Internal Name: EditScoreProperties

and choosing Edit Built-in Score Properties.

However the minimum is still quite large and anyway the choice isn't
saved with the score. I've now made it possible to reduce this until
there is only space for one leger line between the staffs and the
choice is stored with the score.

I've discovered also that there is a command 

Command: Taller Staffs
No Tooltip yet
Location: Object Menu ▶ Staffs/Voices ▶ Display Effects
Internal Name: TallerStaffs

which can be used in a script eg:

(d-TallerStaffs 850)

and a corresponding

Command: Shorter Staffs
No Tooltip yet
Location: Object Menu ▶ Staffs/Voices ▶ Display Effects
Internal Name: ShorterStaffs

It would seem they are in the wrong menu as they affect all the staffs
in the movement.

Richard





Re: Automatic adjustment of staff heights in display

2021-11-03 Thread Richard Shann
Thanks for the feedback.
On Wed, 2021-11-03 at 15:20 +0200, Lib Lists wrote:
> Hi, everything seems to work here well and smoothly. The automatic
> adjustment creates quite a big gap between staves, making reading
> multiple staves slightly uncomfortable to me. Is that done on purpose
> (for example in the future the possibility of giving more space to
> other elements, i.e. dynamics, hairpins etc.)?
Perhaps that was the idea (this is ancient code) - putting in a hairpin
does not affect the spacing, so if the staffs were much closer by
default then things would start clashing when hairpins were added.
However, the placing of hairpins under the notes ignores the note
positions, so they already easily clash with the note heads themselves.
I think it might be work just to have the default spacing rather less,
I'll look into it.

Richard

> 
> Lib
> 
> 
> On Tue, 2 Nov 2021 at 19:57, Richard Shann 
> wrote:
> > 
> > I've overhauled the code controlling how much space is allowed for
> > staffs in the display. Except for the space above the top staff
> > (which
> > can be controlled as before with the mouse wheel or by setting it
> > in
> > the staff properties) the space allowed is now computed while the
> > staffs are drawn.
> > This is quite a radical overhaul of very ancient code - please
> > check
> > that nothing you use is broken by it.
> > 
> > Richard
> > 
> > 
> > 





Re: Automatic adjustment of staff heights in display

2021-11-03 Thread Lib Lists
Hi, everything seems to work here well and smoothly. The automatic
adjustment creates quite a big gap between staves, making reading
multiple staves slightly uncomfortable to me. Is that done on purpose
(for example in the future the possibility of giving more space to
other elements, i.e. dynamics, hairpins etc.)?

Lib


On Tue, 2 Nov 2021 at 19:57, Richard Shann  wrote:
>
> I've overhauled the code controlling how much space is allowed for
> staffs in the display. Except for the space above the top staff (which
> can be controlled as before with the mouse wheel or by setting it in
> the staff properties) the space allowed is now computed while the
> staffs are drawn.
> This is quite a radical overhaul of very ancient code - please check
> that nothing you use is broken by it.
>
> Richard
>
>
>



Automatic adjustment of staff heights in display

2021-11-02 Thread Richard Shann
I've overhauled the code controlling how much space is allowed for
staffs in the display. Except for the space above the top staff (which
can be controlled as before with the mouse wheel or by setting it in
the staff properties) the space allowed is now computed while the
staffs are drawn.
This is quite a radical overhaul of very ancient code - please check
that nothing you use is broken by it.

Richard