Re: Merge a Lilypond file/notation in Denemo

2022-01-02 Thread Lib Lists
On Sun, 2 Jan 2022 at 17:03, Richard Shann  wrote:
>
> On Sun, 2022-01-02 at 16:54 +0200, Lib Lists wrote:
> > Hi RIchard,
> >
> > On Sun, 2 Jan 2022 at 16:20, Richard Shann 
> > wrote:
> > >
> > > On Sun, 2022-01-02 at 14:12 +0200, Lib Lists wrote:
> > > > Hi and happy new year!
> > > >
> > > > Is there a way to import a .ly file in Denemo as a new movement
> > > > or
> > > > merge it with an existing one? I often take musical notes using
> > > > LilyBin on my phone (http://lilybin.com/), and I'm looking for a
> > > > way
> > > > to import those notes in Denemo, either as a new movement or
> > > > merging
> > > > the notes with an existing Denemo file. I'm aware Lilypond import
> > > > support is limited.
> > >
> > > You need:
> > > Command: Paste LilyPond notes
> > > Paste LilyPond notes from the text clipboard
> > > This will import music written as LilyPond syntax
> >
> > Thank you, it works perfectly for my needs (and I clearly didn't
> > check
> > long enough for a solution...)!
> >
> > > If the music is in \relative mode use Frescobaldi to convert it to
> > > absolute pitches (and if not in default language likewise).
> >
> > I managed to enter some notes in \relative mode without problems, is
> > there any specific reason why I should avoid it?
>
> relative notation is also valid absolute notation so notes of the
> correct name will be imported even though written as relative, but they
> will generally be at the wrong octave.
>
> Richard

Hi Richard,
Thanks for the clarification.

Cheers,
Lib
>
>



Re: Merge a Lilypond file/notation in Denemo

2022-01-02 Thread Lib Lists
Hi RIchard,

On Sun, 2 Jan 2022 at 16:20, Richard Shann  wrote:
>
> On Sun, 2022-01-02 at 14:12 +0200, Lib Lists wrote:
> > Hi and happy new year!
> >
> > Is there a way to import a .ly file in Denemo as a new movement or
> > merge it with an existing one? I often take musical notes using
> > LilyBin on my phone (http://lilybin.com/), and I'm looking for a way
> > to import those notes in Denemo, either as a new movement or merging
> > the notes with an existing Denemo file. I'm aware Lilypond import
> > support is limited.
>
> You need:
> Command: Paste LilyPond notes
> Paste LilyPond notes from the text clipboard
> This will import music written as LilyPond syntax

Thank you, it works perfectly for my needs (and I clearly didn't check
long enough for a solution...)!

> If the music is in \relative mode use Frescobaldi to convert it to
> absolute pitches (and if not in default language likewise).

I managed to enter some notes in \relative mode without problems, is
there any specific reason why I should avoid it?

Cheers,
Lib



Re: Scrapping the buttons for shifting the playback markers left/right

2021-11-09 Thread Lib Lists
On Tue, 9 Nov 2021 at 13:15, Richard Shann  wrote:
>
> I propose getting rid of the buttons in the Playback Controls that
> shift the Start/End playback markers as there is now the option to drag
> the markers (Ctrl-Alt drag left or right on the note that has the
> marker on it).
> Please say if you are fond of them.
>
> Richard
>

Hi, Forgot to report it before, in my system Ctrl-Alt drag doesn't
work (virtual Lubuntu 20.04 under VirtualBox 6.1.28 running on MacOs
Catalina).
I tried all the key combinations that I can think of: command option
(left or right), control option, adding shift, etc.
However, it would be completely fine for me if there was an option such as:
- select note
- key shortcut to set start playback marker
- select note
- key shortcut to set stop playback marker.

or something along those lines. In that case I wouldn't need to use
the buttons or drag the markers (with the personal bonus that it would
be more similar to the behaviour I'm used to in audio and video
editing, like when setting up a region or similar).

Cheers,
Lib
>
>



Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-09 Thread Lib Lists
On Mon, 8 Nov 2021 at 18:11, Richard Shann  wrote:
>
> On Mon, 2021-11-08 at 11:37 +0200, Lib Lists wrote:
> > On Sun, 7 Nov 2021 at 18:02, Richard Shann 
> > wrote:
> > >
> > > On Sun, 2021-11-07 at 13:23 +0200, Lib Lists wrote:
> > > > On Sat, 6 Nov 2021 at 19:42, Richard Shann <
> > > > rich...@rshann.plus.com>
> > > > wrote:
> > > > >
> > > > > On Sat, 2021-11-06 at 16:08 +0200, Lib Lists wrote:
> > > > > > On Sat, 6 Nov 2021 at 15:56, Richard Shann <
> > > > > > rich...@rshann.plus.com>
> > > > > > wrote:
> > > > > > > [...]
> > > I've just committed a set of "Toggles" into the View menu which
> > > hide/show various windows/panes. I've given them all default two
> > > key
> > > short cuts starting Esc, so Esc,p for instance shows/hides the
> > > Print
> > > View. The reason for using Esc is that once in the Print View
> > > pressing
> > > Esc again takes you back to the display(*).
> >
> > Awesome, thank you so much! That greatly improves my workflow.
> > I wrote some comments about the current toogle behaviour with
> > different windows:
> > - Print View: works except for the need of performing any action in
> > the window first before being able to close it,
>
> from my testing it is not any action - mouse movements don't help (bug
> *do* get acted on) nor do PgDn or up left arrow ... The only key press
> that "wakes up" the key press signal is down arrow and that key press
> is not actually acted on - not passed on to the handler - but after it
> all keystrokes are received by the widget.
>
> > - Command Center: works (esc,c opens CC, esc closes the window),
> > - Lilypond view: esc,l works but esc doesn't close the window, one
> > needs first to click on the Denemo window
> > - Scheme window: same as Lilypond view
>
> right - I've filled these out now.
>
>
> > An additional thought. I initially thought about a toggle option as I
> > noticed that I cannot close Denemo's subwindows (Print View, Scheme,
> > Lilypond, etc.) with 'ctrl,w', as quite common in MacOs (command,w)
> > and as far as I remember on Windows. If ctrl,w would work on all
> > Denemo subwindows this could allow a shortcut to open/focus a window,
> > the same shortcut to switch the focus back to Denemo window (while
> > keeping the other window open) and ctrl,w would close the currently
> > open window (or close score in Denemo window). I suspect though that
> > this is not possible.
> > Hopefully the explanation is clear enough.
>
> There is a horrible snarl around "focus" "iconized" etc. I notice that
> when you do (e.g.) Esc,c to get the Command Center the Esc on the
> Command Center returns to the main window by iconizing the Command
> Center.

(Apologies for my imprecise vocabulary). With 'iconize' do you mean
'reduce to icon', as equivalent to pressing the leftmost button in the
attached picture? If that's the case, then on my system I get a
different behaviour: when I press Esc (Command Center is on focus),
the Denemo window goes to the foreground and the Command Center is
still visible, just behind the Denemo window. When I press Esc,c then
the Command Center window is closed.

Unrelated, but I also noticed that if I minimize the Command Center by
clicking the above mentioned leftmost button, the Command Center is
created and closed by pressing Esc,c multiple times but always as
minimized.

Lib


Lib


Esc, c then hides the Command Center and you need another Esc,c
> to actually bring the Command Center back to the front.
>
> Richard
>
>


Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-08 Thread Lib Lists
On Sun, 7 Nov 2021 at 18:02, Richard Shann  wrote:
>
> On Sun, 2021-11-07 at 13:23 +0200, Lib Lists wrote:
> > On Sat, 6 Nov 2021 at 19:42, Richard Shann 
> > wrote:
> > >
> > > On Sat, 2021-11-06 at 16:08 +0200, Lib Lists wrote:
> > > > On Sat, 6 Nov 2021 at 15:56, Richard Shann <
> > > > rich...@rshann.plus.com>
> > > > wrote:
> > > > >
> > > > > On Sat, 2021-11-06 at 15:15 +0200, Lib Lists wrote:
> > > > > > A last question, is there an existing way to open the Command
> > > > > > Center
> > > > > > via a shortcut? I couldn't find a suitable command in the
> > > > > > Command
> > > > > > Center.
> > > > > At present none of the check boxes in the View menu can be
> > > > > activated by
> > > > > a command :(
> > > > > If I can just get my printer working under Mate on Debian I'll
> > > > > hopefully find some time to look into it...
> > >
> > > well I won my battle with the printer. I've created a command in
> > > Scheme
> > >
> > > d-SetViewVisible
> > >
> > > which takes one or two arguments: the name of a view window and,
> > > optionally a boolean so e.g.
> > >
> > > (d-SetViewVisible "print")
> > > makes the Print View visible while
> > >
> > > (d-SetViewVisible "print" #f)
> > >
> > > makes the Print View hidden.
> > >
> > > Others are "lilypond" "command" "playback" "midi-in" "scheme".
> > >
> > > To get these available via a keyboard shortcut requires creating
> > > new
> > > commands using the above syntax for each window so that the
> > > shortcut
> > > can be put onto the commands, I'd suggest putting them in the View
> > > menu
> > > but hiding them via the Command Center.
> >
> > Thank you, I just made a new command to show the Print View and it
> > works!
> > One problem, when I select 'Open Command Center on this Command', the
> > Command Center opens on 'Suggest Sharp' and I'm not able to find my
> > new commands in the Command Center.
>
> That sounds strange but rather than dig into that I think that the
> further work I've done on this topic may give you what you need.
> I've just committed a set of "Toggles" into the View menu which
> hide/show various windows/panes. I've given them all default two key
> short cuts starting Esc, so Esc,p for instance shows/hides the Print
> View. The reason for using Esc is that once in the Print View pressing
> Esc again takes you back to the display(*).

Awesome, thank you so much! That greatly improves my workflow.
I wrote some comments about the current toogle behaviour with different windows:
- Print View: works except for the need of performing any action in
the window first before being able to close it,
- Command Center: works (esc,c opens CC, esc closes the window),
- Lilypond view: esc,l works but esc doesn't close the window, one
needs first to click on the Denemo window
- Scheme window: same as Lilypond view

An additional thought. I initially thought about a toggle option as I
noticed that I cannot close Denemo's subwindows (Print View, Scheme,
Lilypond, etc.) with 'ctrl,w', as quite common in MacOs (command,w)
and as far as I remember on Windows. If ctrl,w would work on all
Denemo subwindows this could allow a shortcut to open/focus a window,
the same shortcut to switch the focus back to Denemo window (while
keeping the other window open) and ctrl,w would close the currently
open window (or close score in Denemo window). I suspect though that
this is not possible.
Hopefully the explanation is clear enough.

>
> I've bumped the version to 2.5.6 for thses new commands. Since you have
> your own custom commands now Denemo will attempt to merge them on
> startup (if you wish). I *think* you get both new and old commands (and
> need to hide any you don't want), but if there is a problem here is an
> overview of how the command system works:
> Denemo ships with a set of commands arranged as a hierarchy of
> files mirroring the menu system. They are found at
> ../share/denemo/actions/menus/e.g.(MainMenu/ViewMenu/Toggles)
>
> Two files .../share/denemo/actions/Default.commands and
> ../share/denemo/actions/Default.shortcuts hold a list of all the
> commands and their shortcuts.
>
> When you create a new command it goes into
>
> ~/.denemo-2.5.6/actions/menus/...
>
> and ~/.denemo-2.5.6/actions/Default.commands, shortcuts hold you
> customized versions of the set of commands you are using. (You can load
> any command set from the Command Center).
>
> I *think* both places are consulted when building the menus.
> You can be quite cavalier about the contents of ~/.denemo-2.5.6 as any
> customization work you have done will remain untouched in ~/.denemo-
> 2.5.5 after the upgrade so you can't actually lose anything.

Thank you for the explanation, that clarifies a lot the custom
commands management in Denemo. I have to experiment with it, but it's
great to know that custom commands and shortcuts are saved in the
denemo-2.5.x folder.

Cheers,
Lib
>
> HTH
>
> Richard
>
>
>
>
>



Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-07 Thread Lib Lists
On Sat, 6 Nov 2021 at 19:42, Richard Shann  wrote:
>
> On Sat, 2021-11-06 at 16:08 +0200, Lib Lists wrote:
> > On Sat, 6 Nov 2021 at 15:56, Richard Shann 
> > wrote:
> > >
> > > On Sat, 2021-11-06 at 15:15 +0200, Lib Lists wrote:
> > > > A last question, is there an existing way to open the Command
> > > > Center
> > > > via a shortcut? I couldn't find a suitable command in the Command
> > > > Center.
> > > At present none of the check boxes in the View menu can be
> > > activated by
> > > a command :(
> > > If I can just get my printer working under Mate on Debian I'll
> > > hopefully find some time to look into it...
>
> well I won my battle with the printer. I've created a command in Scheme
>
> d-SetViewVisible
>
> which takes one or two arguments: the name of a view window and,
> optionally a boolean so e.g.
>
> (d-SetViewVisible "print")
> makes the Print View visible while
>
> (d-SetViewVisible "print" #f)
>
> makes the Print View hidden.
>
> Others are "lilypond" "command" "playback" "midi-in" "scheme".
>
> To get these available via a keyboard shortcut requires creating new
> commands using the above syntax for each window so that the shortcut
> can be put onto the commands, I'd suggest putting them in the View menu
> but hiding them via the Command Center.

Thank you, I just made a new command to show the Print View and it works!
One problem, when I select 'Open Command Center on this Command', the
Command Center opens on 'Suggest Sharp' and I'm not able to find my
new commands in the Command Center.

Lib

>
>
> Richard
>
>



Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Lib Lists
On Sat, 6 Nov 2021 at 15:56, Richard Shann  wrote:
>
> On Sat, 2021-11-06 at 15:15 +0200, Lib Lists wrote:
> > A last question, is there an existing way to open the Command Center
> > via a shortcut? I couldn't find a suitable command in the Command
> > Center.
> At present none of the check boxes in the View menu can be activated by
> a command :(
> If I can just get my printer working under Mate on Debian I'll
> hopefully find some time to look into it...

Thank you, and good luck with the printer :)
Lib

>
>
> Richard
>
>



Re: Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Lib Lists
On Sat, 6 Nov 2021 at 13:55, Richard Shann  wrote:
>
> On Sat, 2021-11-06 at 12:40 +0200, Lib Lists wrote:
> > Hello,
> >
> > I'm trying to create a keyboard shortcut that would toggle (or open)
> > the Print View and then go back to the Denemo editing window, but I
> > cannot find a way to do that. I found 'Print Preview' in the Command
> > Center, but I cannot find how to go back to the Denemo window.
> > Similarly, I'm trying to create a shortcut that toggles between the
> > Command Center and the Denemo window.
>
> Well once the focus is not on the Denemo Display (aka Edit Window) the
> Denemo shortcuts no longer apply so a command to switch back to the
> Denemo Display couldn't be accessed from a shortcut except when already
> on the Denemo Display.
> So instead I've installed signal handlers on the Command Center, the
> Print View and the Source View which all respond to the Esc key by
> switching the focus back to the Denemo Display.
>
> One very strange wrinkle though - the Print View does not respond to
> this keypress the first time until it has responded to something else
> first - pressing down arrow while on the Print View scrolls down, after
> which pressing Esc switches back to the display.
>
> Enjoy!

Wow, thank you, that works perfectly!

A last question, is there an existing way to open the Command Center
via a shortcut? I couldn't find a suitable command in the Command
Center.

Cheers,
Lib

>
> Richard
>
> > Is there a way to achieve that (I'm trying to avoid using the mouse
> > as
> > much as possible)?
> > Thank you for your help,
> > Lib
> >
>
>



Keyboard shortcut to toggle between Print View and Denemo window

2021-11-06 Thread Lib Lists
Hello,

I'm trying to create a keyboard shortcut that would toggle (or open)
the Print View and then go back to the Denemo editing window, but I
cannot find a way to do that. I found 'Print Preview' in the Command
Center, but I cannot find how to go back to the Denemo window.
Similarly, I'm trying to create a shortcut that toggles between the
Command Center and the Denemo window.
Is there a way to achieve that (I'm trying to avoid using the mouse as
much as possible)?
Thank you for your help,
Lib



Re: How to use a custom clef and custom chord symbol font

2021-11-03 Thread Lib Lists
On Tue, 2 Nov 2021 at 17:15, Richard Shann  wrote:
>
> On Tue, 2021-11-02 at 16:58 +0200, Lib Lists wrote:
> > Hi and thank you as always!
> > Comments below.
> >
> > On Mon, 1 Nov 2021 at 19:40, Richard Shann 
> > wrote:
> > >
> > > On Mon, 2021-11-01 at 18:01 +0200, Lib Lists wrote:
> > > > Hi,
> > > > a couple of questions:
> > > >
> > > > 1. I would like to use a custom G clef in my scores, in
> > > > particular
> > > > this one: http://lilybin.com/vxtdv7/1.
> > >
> > > That example can be done by pasting the text from the top to the
> > > \clefGScore line into the LilyPond Score Prolog:
> > >
> > > Command: LilyPond Score Prolog
> > > Inserts LilyPond syntax for include files etc at head of score.
> > > Location: Object Menu ▶ Score
> > > Internal Name: ScoreProlog
> >
> > In one of my scores (a collection of exercises consisting of many
> > movements) I'm using the Score Prolog to insert a long introductory
> > text between the main title (added via Score->Titles->Simple
> > Titles->Set Titles) and the first movement. I'd like if possible to
> > keep the Score Prolog free from other elements that I might change in
> > the future. Or better, is there another way to place the introductory
> > text, freeing the Score Prolog for the custom G clef?
>
> yes, having created it once you can go into the Score Properties Editor
> and click "Get Script into Scheme Window". Once you have this script
> you can change the tag to a suitable name (avoiding name clashes with
> any other command - prefix with Lib- or something) and while you are
> there reduce the  d-PutDirective ...-display tag "." to
> something shorter (I think the ScoreProlog command should truncate it
> really...). Then you can create a palette button or a command to
> install this and it will no longer be overwritten by a further use of
> ScoreProlog (it's that tag being different that causes it not to be
> overwritten).
> Note that the "Get Script into Scheme Window" makes a script that only
> installs the prolog if it is not already present, so don't be caught
> out if you are trying to write different versions of it as it won't
> overwrite, you would have to go in and delete the old directive. (The
> alternative is the "Create Button for Clone" which creates a script in
> a palette button, that script *will* overwrite).

Thank you so much, I will test this solution.

>
> >
> >
> > >
> > > as I have done in the example score attached.
> > >
> > > You could make the LilyPond syntax less monolithic by creating the
> > > definition of the variable \clefGScore using the command:
> > >
> > > Command: LilyPond Definition
> > > Create a definition at the head of the LilyPond output. This can
> > > then
> > > be referenced in the music. See LilyPond documentation.
> > > Location: Object Menu ▶ Score
> > > Internal Name: LilyPondDefinition
> > >
> > > and you *could* place the first bit which calls the define-markup-
> > > command procedure to the head of the LilyPond syntax but there are
> > > no
> > > ready made commands for that, you would need to write the Scheme
> > > (in
> > > the source code is the "examples" directory that has a Denemo Score
> > > with all the variety of placements that can be done for the
> > > LilyPond
> > > syntax but it would be a bit of a slog for you to sort that out...)
> >
> > I tried to find the Denemo Score you mentioned, but I could find only
> > one called AllFeaturesExplained, but I don't think it's the one you
> > referred to.
>
> http://git.savannah.gnu.org/gitweb/?p=denemo.git;a=blob;f=samples/AllDenemoDirectiveOutputs.denemo;h=af852cd91f02d0fdb55a2b5d0bc6f57799c3ac62;hb=HEAD
>
> is the Denemo score I meant.
>
> >
> > >
> > >
> > > >
> > > > 2. I'd like to use a Roman font family for the chord symbols, as
> > > > in
> > > > here: http://lilybin.com/x9shb7/1
> > >
> > > That's easier you can just use
> > >
> > > Command: Insert Lilypond
> > > Insert or edit a directive in the LilyPond music typesetting
> > > language.
> > > This can be used for extra spacing, transposing or almost anything.
> > > See
> > > LilyPond documentation for ideas.
> > > Location: Object Menu ▶ Directives
> > > Internal Name: InsertStandaloneDirective
>

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
>
>
>



Re: How to use a custom clef and custom chord symbol font

2021-11-02 Thread Lib Lists
Hi and thank you as always!
Comments below.

On Mon, 1 Nov 2021 at 19:40, Richard Shann  wrote:
>
> On Mon, 2021-11-01 at 18:01 +0200, Lib Lists wrote:
> > Hi,
> > a couple of questions:
> >
> > 1. I would like to use a custom G clef in my scores, in particular
> > this one: http://lilybin.com/vxtdv7/1.
>
> That example can be done by pasting the text from the top to the
> \clefGScore line into the LilyPond Score Prolog:
>
> Command: LilyPond Score Prolog
> Inserts LilyPond syntax for include files etc at head of score.
> Location: Object Menu ▶ Score
> Internal Name: ScoreProlog

In one of my scores (a collection of exercises consisting of many
movements) I'm using the Score Prolog to insert a long introductory
text between the main title (added via Score->Titles->Simple
Titles->Set Titles) and the first movement. I'd like if possible to
keep the Score Prolog free from other elements that I might change in
the future. Or better, is there another way to place the introductory
text, freeing the Score Prolog for the custom G clef?


>
> as I have done in the example score attached.
>
> You could make the LilyPond syntax less monolithic by creating the
> definition of the variable \clefGScore using the command:
>
> Command: LilyPond Definition
> Create a definition at the head of the LilyPond output. This can then
> be referenced in the music. See LilyPond documentation.
> Location: Object Menu ▶ Score
> Internal Name: LilyPondDefinition
>
> and you *could* place the first bit which calls the define-markup-
> command procedure to the head of the LilyPond syntax but there are no
> ready made commands for that, you would need to write the Scheme (in
> the source code is the "examples" directory that has a Denemo Score
> with all the variety of placements that can be done for the LilyPond
> syntax but it would be a bit of a slog for you to sort that out...)

I tried to find the Denemo Score you mentioned, but I could find only
one called AllFeaturesExplained, but I don't think it's the one you
referred to.

>
>
> >
> > 2. I'd like to use a Roman font family for the chord symbols, as in
> > here: http://lilybin.com/x9shb7/1
>
> That's easier you can just use
>
> Command: Insert Lilypond
> Insert or edit a directive in the LilyPond music typesetting language.
> This can be used for extra spacing, transposing or almost anything. See
> LilyPond documentation for ideas.
> Location: Object Menu ▶ Directives
> Internal Name: InsertStandaloneDirective
>
> to insert the syntax
>
> \override ChordName.font-family = #'roman
>
> before the chords you want to appear in roman or whatever, as in the
> attached. Again there are more elegant ways (for the LilyPond view),
> but if you are not going on to edit the LilyPond you may not care to
> get involved.

Thank you for this, it will work for now. However, thinking about the
future, I might want to keep all the visual customizations separated,
creating a sort of style sheet that I can change (for example I
predict I might switch fonts after the adoption of SMuFL in LilyPond
will be completed).
Thank you!
Lib

>
> Richard
>



How to use a custom clef and custom chord symbol font

2021-11-01 Thread Lib Lists
Hi,
a couple of questions:

1. I would like to use a custom G clef in my scores, in particular
this one: http://lilybin.com/vxtdv7/1.

2. I'd like to use a Roman font family for the chord symbols, as in
here: http://lilybin.com/x9shb7/1

The problem is that I don't know which are the right and best places
to add those snippets in Denemo.

Thank you for any help with this.
Lib



Re: Denemo icon missing in application menu

2021-10-31 Thread Lib Lists
On Sun, 31 Oct 2021 at 13:37, Richard Shann  wrote:
>
> On Sun, 2021-10-31 at 13:13 +0200, Lib Lists wrote:
> > On Sun, 31 Oct 2021 at 13:01, Richard Shann 
> > wrote:
> > >
> > > On Sun, 2021-10-31 at 10:17 +0200, Lib Lists wrote:
> > > > Hello,
> > > > I compiled and installed (sudo make install) Denemo, and a Denemo
> > > > launcher in the application menu
> > >
> > > Thinking about it, you presumably mean the application menu of the
> > > Mac
> > > O/S desktop rather than some virtual desktop created by the
> > > VirtualBox
> > > software? In which case this would hinge on the desktop.ini
> > > conventions
> > > that the Virtual Box software is working to.
> >
> > Hi, no, I mean the application menu of the Linux OS in which I'm
> > currently running Denemo.
> ah, ok, a virtual desktop. I may know more about this shortly as I'm
> about to upgrade to Debian stable...

Great, thank you so much once again.
Cheers,
Lib

>
> Richard
>
>



Re: Denemo icon missing in application menu

2021-10-31 Thread Lib Lists
On Sun, 31 Oct 2021 at 13:01, Richard Shann  wrote:
>
> On Sun, 2021-10-31 at 10:17 +0200, Lib Lists wrote:
> > Hello,
> > I compiled and installed (sudo make install) Denemo, and a Denemo
> > launcher in the application menu
>
> Thinking about it, you presumably mean the application menu of the Mac
> O/S desktop rather than some virtual desktop created by the VirtualBox
> software? In which case this would hinge on the desktop.ini conventions
> that the Virtual Box software is working to.

Hi, no, I mean the application menu of the Linux OS in which I'm
currently running Denemo.
At the moment I'm not using Denemo under MacOS.
Lib

>
> Richard
>
>



Denemo icon missing in application menu

2021-10-31 Thread Lib Lists
Hello,
I compiled and installed (sudo make install) Denemo, and a Denemo
launcher in the application menu was created. However (see attached
screenshot) it doesn't display Denemo's icon.
Not a big issue, but it would be nicer to have Denemo's icon there, if possible.
I'm using Lubuntu 20.04 and the desktop environment is LXQt 0.14.1
I'm not really familiar with Linux (I'm using it only with Denemo) so
apologies for the possibly trivial question.
Thank you,
Lib


Re: Crackling sound when changing Slowdown slider in Playback Control

2021-10-30 Thread Lib Lists
On Sat, 30 Oct 2021 at 19:53, Richard Shann  wrote:
>
> On Sat, 2021-10-30 at 19:18 +0300, Lib Lists wrote:
> > Hi,
> > (Listen to the attached .mp3) When I change the Slowdown value in the
> > Playback Control (in this case to 1,2) I get this crackling sound. At
> > speed = 1 everything works fine. I thought the slider would change
> > the
> > BPM but it seems it tries to stretch the audio in real-time, am I
> > right?
>
> Yes, to change the BPM you use the button at the other end of the line
> where the BPM is given.
>
> The slowdown slider does real-time slowdown of the audio output, so
> everything, the attack, the decay all is slowed down. The quality isn't
> as good as when not slowed down but it doesn't have the type of
> distortion in your example. I take it you haven't got the volume too
> high? I was thinking it may just be a question of raw computing power,
> but I just tested it on a dual core 1.5GHz Asus laptop under Windows
> and it worked fine. That machine takes an age to typeset or do anything
> much.

No, the volume is not too high. However, I'm using Linux under
VirtualBox and I'm wondering if that could be the cause of this
problem.

> Anyone else tried the slowdown feature? (It's really for people
> transcribing from audio source - you load the audio and then it's handy
> to slow it down sometimes as you transcribe).
>
> Richard
>



Re: Volume control on playback

2021-10-30 Thread Lib Lists
On Fri, 29 Oct 2021 at 16:30, Richard Shann  wrote:
>
> On Fri, 2021-10-29 at 13:24 +0300, Lib Lists wrote:
> > A note on the visual appearance of the Playback Control buttons. At
> > first it was confusing for me to find the play and stop buttons as
> > they are light grey on a light grey background. The record button
> > also
> > was hard to find as it is black, and that's not the colour I usually
> > associate with a recording button. Same with play, that I usually
> > associate with green or with the most visible button. However, I see
> > that green and red are used for the playback markers. I'd probably
> > make the stop button black, the play button green (and orange when
> > paused) and the record button red.
>
> The record button is red for me, which hints that the problem is
> "theming" - the idea that people can choose a color scheme to suit
> themselves. As it clearly doesn't work, I've replaced the themed icons
> with (rather crude) textual labels which hopefully will show up well.
>
> Richard
>

Thank you,
now it looks good!
Maybe I prefer the old look of the playback starting and ending point
arrows, as they looked different from the play button.
In any case now the play-stop-rec buttons are really good, thank you.

Lib


Re: Volume control on playback

2021-10-29 Thread Lib Lists
On Fri, 29 Oct 2021 at 11:03, Richard Shann  wrote:
>
> On Thu, 2021-10-28 at 21:04 +0300, Lib Lists wrote:
> > Hi Richard,
> >
> > On Thu, 28 Oct 2021 at 19:33, Richard Shann 
> > wrote:
> > >
> > > I've improved the control over the output volume on playback. The
> > > Volume Control slider in the Playback Controls panel
> >
> > I was unable to find it.
>
> View->Playback Control
> documented at section 3.4 of the manual
>
> http://git.savannah.gnu.org/gitweb/?p=denemo.git;a=blob_plain;f=docs/denemo-manual.html;hb=HEAD#entry-Playback-Controls-0
>
> or with pictures Fn1 when running Denemo.
>
> I see there is also an entry marked simply "Playback", which is
> confusing, that is for bringing up the Playback View, I've re-labelled
> that.
>
> Richard
>

Thank you Richard, for some reason I was unable to find it...
Works well here (Lubuntu 20.04, under Virtual Box 6.1.26 on Catalina 10.5.7)
I added a fortissimo dynamic to a passage and no audible distortion
(with host and virtual system at maximum volume, and the slider too).
The slider range seems good to me.
Thank you!

A note on the visual appearance of the Playback Control buttons. At
first it was confusing for me to find the play and stop buttons as
they are light grey on a light grey background. The record button also
was hard to find as it is black, and that's not the colour I usually
associate with a recording button. Same with play, that I usually
associate with green or with the most visible button. However, I see
that green and red are used for the playback markers. I'd probably
make the stop button black, the play button green (and orange when
paused) and the record button red. But I should think more about it
and open another discussion. Thank you so much for your work.



Re: Volume control on playback

2021-10-28 Thread Lib Lists
Hi Richard,

On Thu, 28 Oct 2021 at 19:33, Richard Shann  wrote:
>
> I've improved the control over the output volume on playback. The
> Volume Control slider in the Playback Controls panel

I was unable to find it. I never used it before, so I'm most likely
missing something obvious here.

now enables you to
> increase or decrease the output volume. If you use it during playback
> then expect a delay between adjusting the value and hearing the effect
> of the adjustment because a certain amount of the output has already
> been delivered to the output buffer.
> I have set the range by trial-and-error, using the sound font that I
> normally use. I would be grateful if others could test with their own
> setup and report back if the range of variation is not wide enough/too
> wide.
>
> Richard
>
>



Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-24 Thread Lib Lists
On Sun, 24 Oct 2021 at 20:52, Richard Shann  wrote:
>
> On Sun, 2021-10-24 at 20:24 +0300, Lib Lists wrote:
> > > Crucially, do you get (with this 2.5.4 version) on left-click on
> > > the
> > > first note head.
> > >
> > > The URI obtained for this link is
> > > textedit:///tmp/Denemo_1COUB1/denemoprintB.ly:19:9:10
> > >
> > > in the terminal when it fails to move the cursor in the Denemo
> > > Window.
> > > If you get no message at all it means that the Print View is not
> > > issuing the handle-link signal...
> >
> > I get the link textedit:///tmp/Denemo_QMPMB1/denemoprintB.ly:19:9:10
>
> by "get the link textedit:..." do you mean it pops that up when you
> hover?

Yes, exactly.

>
> > but the cursor doesn't move and I don't get any message in the
> > terminal.
>
> so the signal is not emitted. I'll try and build against libatril.

Thank you!

Lib

>
> Richard
>



Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-24 Thread Lib Lists
On Sun, 24 Oct 2021 at 20:18, Richard Shann  wrote:
>
> On Sun, 2021-10-24 at 20:08 +0300, Lib Lists wrote:
> > On Sun, 24 Oct 2021 at 18:07, Richard Shann 
> > wrote:
> > >
> > > On Sun, 2021-10-24 at 15:53 +0300, Lib Lists wrote:
> > > > On Sun, 24 Oct 2021 at 11:49, Richard Shann  > > > com>
> > > > wrote:
> > > > >
> > > > > On Sun, 2021-10-24 at 10:58 +0300, Lib Lists wrote:
> > > > > > I can test in a few hours, but I'm not sure how to update
> > > > > > from
> > > > > > source.
> > > > > > Should I simply repeat the steps here: http://www.denemo.org/
> > > > > > hack
> > > > > > ing-
> > > > > > sources/
> > > > > >
> > > > > > 1. git clone git://git.savannah.gnu.org/denemo.git
> > > > >
> > > > > if you have already done that then you just need to do
> > > > > git checkout master
> > > > > in the directory that you git cloned to.
> > > >
> > > > I got this message:
> > > > ~/denemo$ git checkout master
> > > > Already on 'master'
> > > > Your branch is up-to-date with 'origin/master'.
> > > >
> > > > Am I missing something?
> > >
> > > sorry, as Andreas says it's git pull. It just goes to show how long
> > > it
> > > has been since someone else updated Denemo's repository!
> > >
> > > Richard
> > >
> >
> > Thank you, I updated to 2.5.4. Unfortunately the situation is as
> > before (left-click on the Print View doesn't move the cursor in the
> > Denemo Window to the right position.
>
> Crucially, do you get (with this 2.5.4 version) on left-click on the
> first note head.
>
> The URI obtained for this link is 
> textedit:///tmp/Denemo_1COUB1/denemoprintB.ly:19:9:10
>
> in the terminal when it fails to move the cursor in the Denemo Window.
> If you get no message at all it means that the Print View is not
> issuing the handle-link signal...

I get the link textedit:///tmp/Denemo_QMPMB1/denemoprintB.ly:19:9:10
but the cursor doesn't move and I don't get any message in the
terminal.

Lib

>
> Richard
>



Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-24 Thread Lib Lists
On Sun, 24 Oct 2021 at 20:08, Lib Lists  wrote:
>
> On Sun, 24 Oct 2021 at 18:07, Richard Shann  wrote:
> >
> > On Sun, 2021-10-24 at 15:53 +0300, Lib Lists wrote:
> > > On Sun, 24 Oct 2021 at 11:49, Richard Shann 
> > > wrote:
> > > >
> > > > On Sun, 2021-10-24 at 10:58 +0300, Lib Lists wrote:
> > > > > I can test in a few hours, but I'm not sure how to update from
> > > > > source.
> > > > > Should I simply repeat the steps here: http://www.denemo.org/hack
> > > > > ing-
> > > > > sources/
> > > > >
> > > > > 1. git clone git://git.savannah.gnu.org/denemo.git
> > > >
> > > > if you have already done that then you just need to do
> > > > git checkout master
> > > > in the directory that you git cloned to.
> > >
> > > I got this message:
> > > ~/denemo$ git checkout master
> > > Already on 'master'
> > > Your branch is up-to-date with 'origin/master'.
> > >
> > > Am I missing something?
> >
> > sorry, as Andreas says it's git pull. It just goes to show how long it
> > has been since someone else updated Denemo's repository!
> >
> > Richard
> >
>
> Thank you, I updated to 2.5.4. Unfortunately the situation is as
> before (left-click on the Print View doesn't move the cursor in the
> Denemo Window to the right position. Also, the Denemo Window doesn't
> get selected after left-clicking on the Print View).
>
> When I started Denemo after the update, I selected the option of using
> the old preferences and palettes. Let me know if that could be a
> problem.
>
> Cheers,
> Lib

If it helps, I just noticed that I cannot perform any tweak from the
Print View (I selected the Red dots and crosses option and tried to
click and drag the red point of a slur), but as I never used the
option before I don't know if I'm missing something about the usage of
this feature.


Lib



Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-24 Thread Lib Lists
On Sun, 24 Oct 2021 at 18:07, Richard Shann  wrote:
>
> On Sun, 2021-10-24 at 15:53 +0300, Lib Lists wrote:
> > On Sun, 24 Oct 2021 at 11:49, Richard Shann 
> > wrote:
> > >
> > > On Sun, 2021-10-24 at 10:58 +0300, Lib Lists wrote:
> > > > I can test in a few hours, but I'm not sure how to update from
> > > > source.
> > > > Should I simply repeat the steps here: http://www.denemo.org/hack
> > > > ing-
> > > > sources/
> > > >
> > > > 1. git clone git://git.savannah.gnu.org/denemo.git
> > >
> > > if you have already done that then you just need to do
> > > git checkout master
> > > in the directory that you git cloned to.
> >
> > I got this message:
> > ~/denemo$ git checkout master
> > Already on 'master'
> > Your branch is up-to-date with 'origin/master'.
> >
> > Am I missing something?
>
> sorry, as Andreas says it's git pull. It just goes to show how long it
> has been since someone else updated Denemo's repository!
>
> Richard
>

Thank you, I updated to 2.5.4. Unfortunately the situation is as
before (left-click on the Print View doesn't move the cursor in the
Denemo Window to the right position. Also, the Denemo Window doesn't
get selected after left-clicking on the Print View).

When I started Denemo after the update, I selected the option of using
the old preferences and palettes. Let me know if that could be a
problem.

Cheers,
Lib



Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-24 Thread Lib Lists
On Sun, 24 Oct 2021 at 11:49, Richard Shann  wrote:
>
> On Sun, 2021-10-24 at 10:58 +0300, Lib Lists wrote:
> > I can test in a few hours, but I'm not sure how to update from
> > source.
> > Should I simply repeat the steps here: http://www.denemo.org/hacking-
> > sources/
> >
> > 1. git clone git://git.savannah.gnu.org/denemo.git
>
> if you have already done that then you just need to do
> git checkout master
> in the directory that you git cloned to.

I got this message:
~/denemo$ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.

Am I missing something?

>
> > 2. follow the build instructions?
>
> then
>
> ./autogen.sh && ./configure && make
>
> and without even installing you can run
>
> ./src/denemo
>
> to test it out.
>
> see below from tar ball
>
> >
> > Thanks,
> > Lib
> >
> > On Sun, 24 Oct 2021 at 02:56, Robert Lewis 
> > wrote:
> > >
> > > On Saturday, October 23, 2021 6:15:48 P.M. ADT Richard Shann wrote:
> > > > On Sat, 2021-10-23 at 20:14 +0300, Lib Lists wrote:
> > > > > On Sat, 23 Oct 2021 at 20:04, Richard Shann  > > > > s.com>
> > > > >
> > > > > wrote:
> > > > > > [...]
> > > > > >
> > > > > > Thanks to both of you for your replies
> > > > > > I'm confident it is the same problem: and putting all your
> > > > > > information
> > > > > > together I think the answer will lie in the versions of Gtk
> > > > > > in use.
> > > > > > If
> > > > > > you can run the command
> > > > > >
> > > > > > denemo --version
> > > > > >
> > > > > > in a terminal for each of your configurations it may shed
> > > > > > some
> > > > > > light.
> > > > > > I'm afraid I haven't updated my Debian distro for a good
> > > > > > while (I'm
> > > > > > still on Stretch I think) so it is all too possible that
> > > > > > libevince
> > > > > > has
> > > > > > altered its behavior.
> > > > > >
> > > > > > My output is as follows:
> > > > > >
> > > > > > rshann@debian:~/ denemo --version
> > > > > > GNU Denemo version 2.5.3
> > > > > > Gtk versions runtime: 3.22.11, compiled against: 3.22.11,
> > > > >
> > > > > This is the output I get:
> > > > >
> > > > > GNU Denemo version 2.5.3
> > > > > Gtk versions runtime: 3.24.20, compiled against: 3.24.20,
> > > >
> > > > I've not had any luck trying to find documentation for libevince,
> > > > but I
> > > > have put in a print out of the link that Denemo is trying to
> > > > follow as
> > > > received from libevince when you right click on a note in the
> > > > Print
> > > > View. I've put this into the repository and bumped the
> > > > development
> > > > version to 2.5.4
> > > > If either of you could by any chance rebuild from current master
> > > > with
> > > > this version, right click and read the response in the terminal
> > > > that
> > > > should show where the trouble lies.
> > > >
> > > > Richard
> > >
> > > I'd like to help out, but I've never built software from a master
> > > before -- I
> > > guess it's about time I learned how.  I know I needed the package
> > > "make" (and
> > > installed that), but I'm not sure what other packages I might need.
> > >
> > > I got the denemo-master.tar.gz from the repository and extracted it
> > > into a
> > > temp folder.  From the README.md file I did:   $ ./autogen.sh
> > > and got the following error:
> > >  ~/temp/denemo-master$ ./autogen.sh
> > >./autogen.sh: 2: aclocal: not found
> > >
> > > The folder aclocal is in /usr/share/
> > >
> > > What should I do next?
>
> you have to install a whole bunch of stuff
>
> apt-get install guile-2.0-dev libaubio-dev portaudio19-dev libfftw3-dev 
> libgtk-3-dev libxml2-dev automake libtool libgtksourceview-3.0-dev 
> libfluidsynth-dev autoconf libsmf-dev autopoint librsvg2-dev libportmidi-dev 
> libsndfile1-dev libevince-dev librsvg2-dev librubberband-dev intltool 
> gtk-doc-tools
>
> and then
>
> ./autogen.sh && ./configure && make && ./src/denemo
>
> as above.
>
> Overnight I've been mulling this over and one thing to check is to
> export the Print View using the PDF button and then fire up your pdf
> viewer on the resultant pdf file. This should then show the links when
> hovering over a note. The default pdf viewer on my system is "atril"
> and it does show the links, but if your viewer is "evince" and does not
> show the links then that would indicate the problem is with libevince.
> Coincidentally someone submitted a patch for linking Denemo to libatril
> recently which didn't get applied because there wasn't any guarantee
> that the program would work with that alternative library (and even if
> it did, just changing the names would be pointless). It may be
> opportune to look at this again. After all, there must be some reason
> that Debian has a libatril package...
>
> Richard
>
>
> > >
> > > Thanks.
> > >
> > > Robert
> > >
> > >
> > >



Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-24 Thread Lib Lists
I can test in a few hours, but I'm not sure how to update from source.
Should I simply repeat the steps here: http://www.denemo.org/hacking-sources/

1. git clone git://git.savannah.gnu.org/denemo.git
2. follow the build instructions?

Thanks,
Lib

On Sun, 24 Oct 2021 at 02:56, Robert Lewis  wrote:
>
> On Saturday, October 23, 2021 6:15:48 P.M. ADT Richard Shann wrote:
> > On Sat, 2021-10-23 at 20:14 +0300, Lib Lists wrote:
> > > On Sat, 23 Oct 2021 at 20:04, Richard Shann 
> > >
> > > wrote:
> > > > [...]
> > > >
> > > > Thanks to both of you for your replies
> > > > I'm confident it is the same problem: and putting all your
> > > > information
> > > > together I think the answer will lie in the versions of Gtk in use.
> > > > If
> > > > you can run the command
> > > >
> > > > denemo --version
> > > >
> > > > in a terminal for each of your configurations it may shed some
> > > > light.
> > > > I'm afraid I haven't updated my Debian distro for a good while (I'm
> > > > still on Stretch I think) so it is all too possible that libevince
> > > > has
> > > > altered its behavior.
> > > >
> > > > My output is as follows:
> > > >
> > > > rshann@debian:~/ denemo --version
> > > > GNU Denemo version 2.5.3
> > > > Gtk versions runtime: 3.22.11, compiled against: 3.22.11,
> > >
> > > This is the output I get:
> > >
> > > GNU Denemo version 2.5.3
> > > Gtk versions runtime: 3.24.20, compiled against: 3.24.20,
> >
> > I've not had any luck trying to find documentation for libevince, but I
> > have put in a print out of the link that Denemo is trying to follow as
> > received from libevince when you right click on a note in the Print
> > View. I've put this into the repository and bumped the development
> > version to 2.5.4
> > If either of you could by any chance rebuild from current master with
> > this version, right click and read the response in the terminal that
> > should show where the trouble lies.
> >
> > Richard
>
> I'd like to help out, but I've never built software from a master before -- I
> guess it's about time I learned how.  I know I needed the package "make" (and
> installed that), but I'm not sure what other packages I might need.
>
> I got the denemo-master.tar.gz from the repository and extracted it into a
> temp folder.  From the README.md file I did:   $ ./autogen.sh
> and got the following error:
>  ~/temp/denemo-master$ ./autogen.sh
>./autogen.sh: 2: aclocal: not found
>
> The folder aclocal is in /usr/share/
>
> What should I do next?
>
> Thanks.
>
> Robert
>
>
>



Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-23 Thread Lib Lists
On Sat, 23 Oct 2021 at 20:04, Richard Shann  wrote:
>
> On Sat, 2021-10-23 at 19:07 +0300, Lib Lists wrote:
> > On Sat, 23 Oct 2021 at 18:16, Richard Shann 
> > wrote:
> > >
> > > On Sat, 2021-10-23 at 17:02 +0300, Lib Lists wrote:
> > > > On Sat, 23 Oct 2021 at 16:31, Richard Shann  > > > com>
> > > > wrote:
> > > > >
> > > > > On Sat, 2021-10-23 at 15:07 +0300, Lib Lists wrote:
> > > > > > On Sat, 23 Oct 2021 at 14:42, Richard Shann  > > > > > lus.
> > > > > > com>
> > > > > > wrote:
> > > > > > >
> > > > > > > On Sat, 2021-10-23 at 13:45 +0300, Lib Lists wrote:
> > > > > > > > On Sat, 23 Oct 2021 at 11:37, Richard Shann  > > > > > > > nn.p
> > > > > > > > lus.
> > > > > > > > com>
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > On Fri, 2021-10-22 at 15:44 -0300, Robert Lewis wrote:
> > > > > > > > > > Hello Richard -
> > > > > > > > > >
> > > > > > > > > > On Friday, October 22, 2021 5:39:06 A.M. ADT you
> > > > > > > > > > wrote:
> > > > > > > > > > > On Thu, 2021-10-21 at 16:47 -0300, Robert Lewis
> > > > > > > > > > > wrote:
> > > > > > > > > > > > Hello -
> > > > > > > > > > > >
> > > > > > > > > > > > OS:  Linux; Debian Bullseye
> > > > > > > > > > > > Denemo Version:  2.5.0 from the Debian repository
> > > > > > > > > > > >
> > > > > > > > > > > > In this version I am unable to tweak Textual
> > > > > > > > > > > > Annotations,
> > > > > > > > > > > > Dynamics,
> > > > > > > > > > > > Rehearsal
> > > > > > > > > > > > Numbers, etc. in the Print View window.  A right-
> > > > > > > > > > > > click
> > > > > > > > > > > > gives
> > > > > > > > > > > > me
> > > > > > > > > > > > the
> > > > > > > > > > > > context
> > > > > > > > > > > > menu (Help for Tweaks, Red dots and crosses,
> > > > > > > > > > > > Score
> > > > > > > > > > > > size),
> > > > > > > > > > > > but
> > > > > > > > > > > > there
> > > > > > > > > > > > are no
> > > > > > > > > > > > prompts when I left-click
> > > > > > > > > > >
> > > > > > > > > > > left-click starts playback from the object left-
> > > > > > > > > > > clicked
> > > > > > > > > > > on.
> > > > > > > > > > > Right-
> > > > > > > > > > > click
> > > > > > > > > > > gives you a menu - if you are off any object it is
> > > > > > > > > > > the
> > > > > > > > > > > (Help
> > > > > > > > > > > for
> > > > > > > > > > > Tweaks, Red dots and crosses, Score size) menu
> > > > > > > > > > > whereas
> > > > > > > > > > > if
> > > > > > > > > > > you
> > > > > > > > > > > are
> > > > > > > > > > > on an
> > > > > > > > > > > object (hand pointer) it gives you the context
> > > > > > > > > > > sensitive
> > > > > > > > > > > menu
> > > > > > > > > > > for
> > > > > > > > > > > tweaking.
> > > > > > > > > >
> > > > > > > > > > That is what happened when I was using v. 2.4.0
> > > > > > > > > > (Andreas
> > > > > 

Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-23 Thread Lib Lists
On Sat, 23 Oct 2021 at 18:16, Richard Shann  wrote:
>
> On Sat, 2021-10-23 at 17:02 +0300, Lib Lists wrote:
> > On Sat, 23 Oct 2021 at 16:31, Richard Shann 
> > wrote:
> > >
> > > On Sat, 2021-10-23 at 15:07 +0300, Lib Lists wrote:
> > > > On Sat, 23 Oct 2021 at 14:42, Richard Shann  > > > com>
> > > > wrote:
> > > > >
> > > > > On Sat, 2021-10-23 at 13:45 +0300, Lib Lists wrote:
> > > > > > On Sat, 23 Oct 2021 at 11:37, Richard Shann  > > > > > lus.
> > > > > > com>
> > > > > > wrote:
> > > > > > >
> > > > > > > On Fri, 2021-10-22 at 15:44 -0300, Robert Lewis wrote:
> > > > > > > > Hello Richard -
> > > > > > > >
> > > > > > > > On Friday, October 22, 2021 5:39:06 A.M. ADT you wrote:
> > > > > > > > > On Thu, 2021-10-21 at 16:47 -0300, Robert Lewis wrote:
> > > > > > > > > > Hello -
> > > > > > > > > >
> > > > > > > > > > OS:  Linux; Debian Bullseye
> > > > > > > > > > Denemo Version:  2.5.0 from the Debian repository
> > > > > > > > > >
> > > > > > > > > > In this version I am unable to tweak Textual
> > > > > > > > > > Annotations,
> > > > > > > > > > Dynamics,
> > > > > > > > > > Rehearsal
> > > > > > > > > > Numbers, etc. in the Print View window.  A right-
> > > > > > > > > > click
> > > > > > > > > > gives
> > > > > > > > > > me
> > > > > > > > > > the
> > > > > > > > > > context
> > > > > > > > > > menu (Help for Tweaks, Red dots and crosses, Score
> > > > > > > > > > size),
> > > > > > > > > > but
> > > > > > > > > > there
> > > > > > > > > > are no
> > > > > > > > > > prompts when I left-click
> > > > > > > > >
> > > > > > > > > left-click starts playback from the object left-clicked
> > > > > > > > > on.
> > > > > > > > > Right-
> > > > > > > > > click
> > > > > > > > > gives you a menu - if you are off any object it is the
> > > > > > > > > (Help
> > > > > > > > > for
> > > > > > > > > Tweaks, Red dots and crosses, Score size) menu whereas
> > > > > > > > > if
> > > > > > > > > you
> > > > > > > > > are
> > > > > > > > > on an
> > > > > > > > > object (hand pointer) it gives you the context
> > > > > > > > > sensitive
> > > > > > > > > menu
> > > > > > > > > for
> > > > > > > > > tweaking.
> > > > > > > >
> > > > > > > > That is what happened when I was using v. 2.4.0 (Andreas
> > > > > > > > Schneider's
> > > > > > > > .deb
> > > > > > > > packages) in Debian Stretch, but not with v. 2.5.0 from
> > > > > > > > the
> > > > > > > > Debian
> > > > > > > > repository
> > > > > > > > for Bullseye, nor with v. 2.4.3 from Andreas Schneider's
> > > > > > > > Bullseye
> > > > > > > > .deb
> > > > > > > > packages.
> > > > > > > >
> > > > > > > > Right-clicking does give me the the menu you described,
> > > > > > > > but
> > > > > > > > that
> > > > > > > > is
> > > > > > > > the only
> > > > > > > > menu I get when clicking on or off an object.  I do not
> > > > > > > > get
> > > > > > > > the
> > > > > > > > context
> > > > > > > > sensitive menu for tweaking when I right-click an object.
> > > > > > > >
> > > > > 

Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-23 Thread Lib Lists
On Sat, 23 Oct 2021 at 16:31, Richard Shann  wrote:
>
> On Sat, 2021-10-23 at 15:07 +0300, Lib Lists wrote:
> > On Sat, 23 Oct 2021 at 14:42, Richard Shann 
> > wrote:
> > >
> > > On Sat, 2021-10-23 at 13:45 +0300, Lib Lists wrote:
> > > > On Sat, 23 Oct 2021 at 11:37, Richard Shann  > > > com>
> > > > wrote:
> > > > >
> > > > > On Fri, 2021-10-22 at 15:44 -0300, Robert Lewis wrote:
> > > > > > Hello Richard -
> > > > > >
> > > > > > On Friday, October 22, 2021 5:39:06 A.M. ADT you wrote:
> > > > > > > On Thu, 2021-10-21 at 16:47 -0300, Robert Lewis wrote:
> > > > > > > > Hello -
> > > > > > > >
> > > > > > > > OS:  Linux; Debian Bullseye
> > > > > > > > Denemo Version:  2.5.0 from the Debian repository
> > > > > > > >
> > > > > > > > In this version I am unable to tweak Textual Annotations,
> > > > > > > > Dynamics,
> > > > > > > > Rehearsal
> > > > > > > > Numbers, etc. in the Print View window.  A right-click
> > > > > > > > gives
> > > > > > > > me
> > > > > > > > the
> > > > > > > > context
> > > > > > > > menu (Help for Tweaks, Red dots and crosses, Score size),
> > > > > > > > but
> > > > > > > > there
> > > > > > > > are no
> > > > > > > > prompts when I left-click
> > > > > > >
> > > > > > > left-click starts playback from the object left-clicked on.
> > > > > > > Right-
> > > > > > > click
> > > > > > > gives you a menu - if you are off any object it is the
> > > > > > > (Help
> > > > > > > for
> > > > > > > Tweaks, Red dots and crosses, Score size) menu whereas if
> > > > > > > you
> > > > > > > are
> > > > > > > on an
> > > > > > > object (hand pointer) it gives you the context sensitive
> > > > > > > menu
> > > > > > > for
> > > > > > > tweaking.
> > > > > >
> > > > > > That is what happened when I was using v. 2.4.0 (Andreas
> > > > > > Schneider's
> > > > > > .deb
> > > > > > packages) in Debian Stretch, but not with v. 2.5.0 from the
> > > > > > Debian
> > > > > > repository
> > > > > > for Bullseye, nor with v. 2.4.3 from Andreas Schneider's
> > > > > > Bullseye
> > > > > > .deb
> > > > > > packages.
> > > > > >
> > > > > > Right-clicking does give me the the menu you described, but
> > > > > > that
> > > > > > is
> > > > > > the only
> > > > > > menu I get when clicking on or off an object.  I do not get
> > > > > > the
> > > > > > context
> > > > > > sensitive menu for tweaking when I right-click an object.
> > > > > >
> > > > > > Also, playing straight away does not happen when left-
> > > > > > clicking on
> > > > > > a
> > > > > > note.
> > > > > > >
> > > > > > > Incidentally, if you have already clicked an object (blue
> > > > > > > square on
> > > > > > > the
> > > > > > > object) then left-clicking will give you the context
> > > > > > > sensitive
> > > > > > > menu,
> > > > > > > rather than just starting playing straight away, you can
> > > > > > > play
> > > > > > > from
> > > > > > > that
> > > > > > > menu anyway.
> > > > > >
> > > > > > The blue square does not appear, and the context sensitive
> > > > > > menu
> > > > > > is
> > > > > > not
> > > > > > available.
> > > > > > >
> > > > > > > >  on the object when the hand pointer appears.
> > > > > > > >
> > > > > > > > Any su

Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-23 Thread Lib Lists
On Sat, 23 Oct 2021 at 14:42, Richard Shann  wrote:
>
> On Sat, 2021-10-23 at 13:45 +0300, Lib Lists wrote:
> > On Sat, 23 Oct 2021 at 11:37, Richard Shann 
> > wrote:
> > >
> > > On Fri, 2021-10-22 at 15:44 -0300, Robert Lewis wrote:
> > > > Hello Richard -
> > > >
> > > > On Friday, October 22, 2021 5:39:06 A.M. ADT you wrote:
> > > > > On Thu, 2021-10-21 at 16:47 -0300, Robert Lewis wrote:
> > > > > > Hello -
> > > > > >
> > > > > > OS:  Linux; Debian Bullseye
> > > > > > Denemo Version:  2.5.0 from the Debian repository
> > > > > >
> > > > > > In this version I am unable to tweak Textual Annotations,
> > > > > > Dynamics,
> > > > > > Rehearsal
> > > > > > Numbers, etc. in the Print View window.  A right-click gives
> > > > > > me
> > > > > > the
> > > > > > context
> > > > > > menu (Help for Tweaks, Red dots and crosses, Score size), but
> > > > > > there
> > > > > > are no
> > > > > > prompts when I left-click
> > > > >
> > > > > left-click starts playback from the object left-clicked on.
> > > > > Right-
> > > > > click
> > > > > gives you a menu - if you are off any object it is the (Help
> > > > > for
> > > > > Tweaks, Red dots and crosses, Score size) menu whereas if you
> > > > > are
> > > > > on an
> > > > > object (hand pointer) it gives you the context sensitive menu
> > > > > for
> > > > > tweaking.
> > > >
> > > > That is what happened when I was using v. 2.4.0 (Andreas
> > > > Schneider's
> > > > .deb
> > > > packages) in Debian Stretch, but not with v. 2.5.0 from the
> > > > Debian
> > > > repository
> > > > for Bullseye, nor with v. 2.4.3 from Andreas Schneider's Bullseye
> > > > .deb
> > > > packages.
> > > >
> > > > Right-clicking does give me the the menu you described, but that
> > > > is
> > > > the only
> > > > menu I get when clicking on or off an object.  I do not get the
> > > > context
> > > > sensitive menu for tweaking when I right-click an object.
> > > >
> > > > Also, playing straight away does not happen when left-clicking on
> > > > a
> > > > note.
> > > > >
> > > > > Incidentally, if you have already clicked an object (blue
> > > > > square on
> > > > > the
> > > > > object) then left-clicking will give you the context sensitive
> > > > > menu,
> > > > > rather than just starting playing straight away, you can play
> > > > > from
> > > > > that
> > > > > menu anyway.
> > > >
> > > > The blue square does not appear, and the context sensitive menu
> > > > is
> > > > not
> > > > available.
> > > > >
> > > > > >  on the object when the hand pointer appears.
> > > > > >
> > > > > > Any suggestions?
> > > > >
> > > > > so, right not left click.
> > > > >
> > > > > Richard
> > > >
> > > > Everything works as expected in v. 2.4.0 on  Debian Stretch, it's
> > > > only with
> > > > .deb packages for Bullseye that I have this problem.
> > > >
> > > > Any other suggestions or recommendations?
> > >
> > > The symptoms you are describing indicate that working back from the
> > > note in the pdf to the Denemo Display is not working.
> > >
> > > 1) What is the output on the terminal when you try to click on a
> > > note
> > > in the Print View?
> > > 2) When you hover over a title does a link (starting Scheme: ...)
> > > appear?
> > > 3) When you hover over a note does a link (starting textedit://
> > > ...)
> > > appear? (see attached)
> > >
> > > what version of LilyPond are you using? (In the Scheme window
> > > execute
> > >
> > > (d-InfoDialog (d-GetLilyVersion))
> > >
> > > to get that.
> > >
> > > If the link appears in (3) above, open the file in /tmp that is
> > > specified in the link

Re: Can not tweak objects in Debian's Version 2.5.0

2021-10-23 Thread Lib Lists
On Sat, 23 Oct 2021 at 11:37, Richard Shann  wrote:
>
> On Fri, 2021-10-22 at 15:44 -0300, Robert Lewis wrote:
> > Hello Richard -
> >
> > On Friday, October 22, 2021 5:39:06 A.M. ADT you wrote:
> > > On Thu, 2021-10-21 at 16:47 -0300, Robert Lewis wrote:
> > > > Hello -
> > > >
> > > > OS:  Linux; Debian Bullseye
> > > > Denemo Version:  2.5.0 from the Debian repository
> > > >
> > > > In this version I am unable to tweak Textual Annotations,
> > > > Dynamics,
> > > > Rehearsal
> > > > Numbers, etc. in the Print View window.  A right-click gives me
> > > > the
> > > > context
> > > > menu (Help for Tweaks, Red dots and crosses, Score size), but
> > > > there
> > > > are no
> > > > prompts when I left-click
> > >
> > > left-click starts playback from the object left-clicked on. Right-
> > > click
> > > gives you a menu - if you are off any object it is the (Help for
> > > Tweaks, Red dots and crosses, Score size) menu whereas if you are
> > > on an
> > > object (hand pointer) it gives you the context sensitive menu for
> > > tweaking.
> >
> > That is what happened when I was using v. 2.4.0 (Andreas Schneider's
> > .deb
> > packages) in Debian Stretch, but not with v. 2.5.0 from the Debian
> > repository
> > for Bullseye, nor with v. 2.4.3 from Andreas Schneider's Bullseye
> > .deb
> > packages.
> >
> > Right-clicking does give me the the menu you described, but that is
> > the only
> > menu I get when clicking on or off an object.  I do not get the
> > context
> > sensitive menu for tweaking when I right-click an object.
> >
> > Also, playing straight away does not happen when left-clicking on a
> > note.
> > >
> > > Incidentally, if you have already clicked an object (blue square on
> > > the
> > > object) then left-clicking will give you the context sensitive
> > > menu,
> > > rather than just starting playing straight away, you can play from
> > > that
> > > menu anyway.
> >
> > The blue square does not appear, and the context sensitive menu is
> > not
> > available.
> > >
> > > >  on the object when the hand pointer appears.
> > > >
> > > > Any suggestions?
> > >
> > > so, right not left click.
> > >
> > > Richard
> >
> > Everything works as expected in v. 2.4.0 on  Debian Stretch, it's
> > only with
> > .deb packages for Bullseye that I have this problem.
> >
> > Any other suggestions or recommendations?
>
> The symptoms you are describing indicate that working back from the
> note in the pdf to the Denemo Display is not working.
>
> 1) What is the output on the terminal when you try to click on a note
> in the Print View?
> 2) When you hover over a title does a link (starting Scheme: ...)
> appear?
> 3) When you hover over a note does a link (starting textedit:// ...)
> appear? (see attached)
>
> what version of LilyPond are you using? (In the Scheme window execute
>
> (d-InfoDialog (d-GetLilyVersion))
>
> to get that.
>
> If the link appears in (3) above, open the file in /tmp that is
> specified in the link and look at the line and column number indicated
> to see if it is the right place (send the file and link text if you
> don't read LilyPond syntax at all).
>
> HTH
>
> Richard
> BTW please use "Group Reply" or "Reply to All" so that those searching
> the mailing list archives can follow the thread.

Hello, I think I have the same problem in Denemo 2.5.3 installed from
source using Lilypond 2.22. I'm using it on Lubuntu 20.04 running in
VirtualBox on a Mac.
If it helps, here's my results.
1) No output, but after adding any note in Denemo, the terminal shows
'Denemo - WARNING : Lilypond did not end successfully: Child process
exited with code 1
Running lilypondLog level set to 287'. The Print View updates correctly.
2. Yes, the link appears.
3. Yes, I got a link.
4. In the Denemo print view my first note is at position 10, while
when I open the Lilypond file the first note is at position 0, i.e.
21:9:10 in Denemo vs. 21:9:0 in the Lilypond file.
Cheers,
Lib



Re: Analysis brackets (with labels) in Denemo

2021-10-22 Thread Lib Lists
eece

On Fri, 22 Oct 2021 at 18:20, Richard Shann  wrote:
>
> On Fri, 2021-10-22 at 16:18 +0300, Lib Lists wrote:
> > Hi Richard,
> >
> > > > 2. (picture Denemo2.png)
> > > > I used the your code, the one with
> > > >  (d-DirectivePut-standalone-display tag "This will label the
> > > > Denemo
> > > > Directive")
> > > >  (d-DirectivePut-standalone-tx tag 20)
> > > >  (d-DirectivePut-standalone-ty tag -20)
> > > > and as you can see from the picture it shows four 'Directive'
> > > > signs
> > > > (sorry I won't know yet how those are called in Denemo). Is this
> > > > the
> > > > expected behaviour?
> > >
> > > Sorry, yes I should have put (d-MoveCursorLeft) after the first
> > > command
> > > as it creates the Denemo Directive and moves to the right straight
> > > away, so that the subsequent commands create new directives instead
> > > of
> > > editing the old one. There is a wrapper function that does a whole
> > > bunch of this for you called (StandAloneDirectiveProto ...) which
> > > is
> > > used in the script for that InsertStandaloneDirective command I
> > > referenced above. But to keep things simple:
> > >
> > >  (d-DirectivePut-standalone-display tag "This will label the Denemo
> > > Directive")
> > >  (d-MoveCursorLeft)
> > >  (d-DirectivePut-standalone-tx tag 20)
> > >  (d-DirectivePut-standalone-ty tag -20)
> > >
> > > would do the trick (the subsequent d-DirectivePut-... are editing
> > > so
> > > they don't move the cursor right, the cursor always moves right
> > > after
> > > inserting an object).
> >
> > I changed the code and I now get two Directive symbols (see attached
> > screenshot), is that correct?
>
> Sorry I was a bit too terse, here is your code commented
>
> > ;start analysis bracket
> > (let ((tag "Analysis"))
> >  (d-DirectivePut-standalone-postfix tag "\\startGroup")
>
> this inserts a standalone Denemo Directive object before the cursor
> (assuming the cursor is not already on one with that tag) and moves the
> cursor right for the next insertion.
>
> >  (d-DirectivePut-standalone-display tag "Start Analysis Bracket
> > DOWN")
>
> the cursor is on the note now so this inserts a *second* Denemo
> Directive which just displays the label, and moves the cursor right
>
> >  (d-MoveCursorLeft)
>
> this moves the cursor left so it is on that second Denemo Directive, so
> now it is ready to be edited
> >  (d-DirectivePut-standalone-tx tag 20)
> this edits that second one, filling in the tx field, positioning your
> label displaced by 20 staff spaces leftwards, it doesn't move the
> cursor as it is editing not inserting.
>
> >  (d-DirectivePut-standalone-ty tag -20)
> likewise edits for the y position of the label
>
> >  (d-DirectivePut-layout-postfix
> > "Analysis" "  \\context {\\Voice  \\consists
> > \"Horizontal_bracket_engraver\" }"))
>
> this puts a Denemo Directive into the layout block of the movement (it
> doesn't matter where the cursor is as this is not a standalone
> directive). You can look in the Movement->Movement Properties Editor
> and see that this directive has appeared in the layout directives.
>
> So your code should have been:
>
> ;start analysis bracket
> (let ((tag "Analysis"))
>  (d-DirectivePut-standalone-postfix tag "\\startGroup")
>  (d-MoveCursorLeft)
>  (d-DirectivePut-standalone-display tag "Start Analysis Bracket DOWN")
>  (d-DirectivePut-standalone-tx tag 20)
>  (d-DirectivePut-standalone-ty tag -20)
>  (d-DirectivePut-layout-postfix
> "Analysis" "  \\context {\\Voice  \\consists
> \"Horizontal_bracket_engraver\" }"))
>
> where the move left into the editing position is one line earlier.
>
> But you probably don't want such a long label and you perhaps don't
> want to alter the default position of the label, so you could write
>
> ;start analysis bracket
> (let ((tag "Analysis"))
>  (d-DirectivePut-standalone-postfix tag "\\startGroup")
>  (d-MoveCursorLeft)
>  (d-DirectivePut-standalone-display tag "Analysis___")
>  (d-DirectivePut-layout-postfix
> "Analysis" "  \\context {\\Voice  \\consists
> \"Horizontal_bracket_engraver\" }"))
>
> where I've made the label shorter and omitted the tx and ty lines as
> they were just examples to play with, the default is usually ok.
>
> HTH
>
> Richard

Awesome, thank you once again! Now it is fully clear.
A side question about scripts. Every time I modify a script (and I
assume I create one) and I save the denemo file, I get the warning
'You have a script defined, and the choice between Normal Save and
Advanced: Execute the script etc.
I always press Normal Save, but I'd like to understand what the other
option means and when it should be used.

Cheers,
Lib



Re: Analysis brackets (with labels) in Denemo

2021-10-22 Thread Lib Lists
Hi Richard,

> > 2. (picture Denemo2.png)
> > I used the your code, the one with
> >  (d-DirectivePut-standalone-display tag "This will label the Denemo
> > Directive")
> >  (d-DirectivePut-standalone-tx tag 20)
> >  (d-DirectivePut-standalone-ty tag -20)
> > and as you can see from the picture it shows four 'Directive' signs
> > (sorry I won't know yet how those are called in Denemo). Is this the
> > expected behaviour?
>
> Sorry, yes I should have put (d-MoveCursorLeft) after the first command
> as it creates the Denemo Directive and moves to the right straight
> away, so that the subsequent commands create new directives instead of
> editing the old one. There is a wrapper function that does a whole
> bunch of this for you called (StandAloneDirectiveProto ...) which is
> used in the script for that InsertStandaloneDirective command I
> referenced above. But to keep things simple:
>
>  (d-DirectivePut-standalone-display tag "This will label the Denemo 
> Directive")
>  (d-MoveCursorLeft)
>  (d-DirectivePut-standalone-tx tag 20)
>  (d-DirectivePut-standalone-ty tag -20)
>
> would do the trick (the subsequent d-DirectivePut-... are editing so
> they don't move the cursor right, the cursor always moves right after
> inserting an object).

I changed the code and I now get two Directive symbols (see attached
screenshot), is that correct? Just for the sake of clarity, here's my
code:

;start analysis bracket
(let ((tag "Analysis"))
 (d-DirectivePut-standalone-postfix tag "\\startGroup")
 (d-DirectivePut-standalone-display tag "Start Analysis Bracket DOWN")
 (d-MoveCursorLeft)
 (d-DirectivePut-standalone-tx tag 20)
 (d-DirectivePut-standalone-ty tag -20)
 (d-DirectivePut-layout-postfix
"Analysis" "  \\context {\\Voice  \\consists
\"Horizontal_bracket_engraver\" }"))

Cheers,
Lib


Re: Analysis brackets (with labels) in Denemo

2021-10-21 Thread Lib Lists
Hi,
thank you for your detailed answer.
I have a couple of problems, see the attached images).

1. (picture Denemo.png) The bracket on the left is made with the
following code (added to the Scheme script):
\once \override HorizontalBracket.direction = #UP \startGroup
while the one on the right with \startGroup only.
The problem is that in order to get the bracket around two notes, in
the first case I need to put the startGroup before the first note and
the stopGroup after the second note, while in the second case both the
startGroup and stopGroup are placed after the notes I want to group
with the bracket.
I understand that this is related to the fact that Lilypond wants to
have the starting note for the bracket right before the startGroup
command,  after the override. Is there any workaround for this?

2. (picture Denemo2.png)
I used the your code, the one with
 (d-DirectivePut-standalone-display tag "This will label the Denemo Directive")
 (d-DirectivePut-standalone-tx tag 20)
 (d-DirectivePut-standalone-ty tag -20)
and as you can see from the picture it shows four 'Directive' signs
(sorry I won't know yet how those are called in Denemo). Is this the
expected behaviour?

Cheers,
Lib



On Thu, 21 Oct 2021 at 11:17, Richard Shann  wrote:
>
> On Thu, 2021-10-21 at 10:28 +0300, Lib Lists wrote:
> > Hi, thank you, now it works.
> > I'm now trying to add labels
> the simplest is to add a line giving some display text
> and (optionally) lines giving the x,y placing of the label.
>
> ;start analysis bracket
> (let ((tag "Analysis"))
>  (d-DirectivePut-standalone-postfix tag "\\startGroup")
>  (d-DirectivePut-standalone-display tag "This will label the Denemo 
> Directive")
>  (d-DirectivePut-standalone-tx tag 20)
>  (d-DirectivePut-standalone-ty tag -20)
>  (d-DirectivePut-layout-postfix
> "Analysis" "  \\context {\\Voice  \\consists
> \"Horizontal_bracket_engraver\" }"))
>
> If you examine the code of some of the other commands (right click on
> the menu item and get the script into the Scheme window) you will see
> that you can do more than just that e.g. specifying font etc and/or
> specifying a graphic to draw instead of the default lollipop.
>
> >  and flip the bracket direction, and I
> > understand that I need to modify the HorizontalBracket.direction and
> > the HorizontalBracketText.text. My knowledge of Scheme
>
> You don't need knowledge of Scheme to do this (apart from being
> sensitive to the importance of quoting backslashes, " etc), it is
> knowing the correct LilyPond syntax that you want to insert. Having
> sorted that out you can just replace the simple
>
> "\\startGroup"
>
> with
>
> "\\once \\override HorizontalBracket.direction = #UP blah blah \\startGroup"
>
> or whatever the LilyPond syntax is. When you insert some LilyPond
> syntax like this you can double click to get up the Object Editor which
> will tell you what LilyPond syntax you are actually emitting, to check
> all is well (or you can copy and paste the syntax you have from the
> View->LilyPond window into a LilyPond file or editor and check that it
> is correct).
>
> >  is so limited
> > that I wouldn't know how to add this to your code without seeing an
> > example, but in general, what would be the best way to do this kind
> > of
> > changes in Denemo (adding a new command
> a new user-created command is always a bit of Scheme code
> > vs. changing the Scheme code
> > for that specific case, etc.)?
>
> We can come to this once you have a good idea what bits of LilyPond
> syntax you want to emit.
>
> Richard


Re: Analysis brackets (with labels) in Denemo

2021-10-21 Thread Lib Lists
Hi, thank you, now it works.
I'm now trying to add labels and flip the bracket direction, and I
understand that I need to modify the HorizontalBracket.direction and
the HorizontalBracketText.text. My knowledge of Scheme is so limited
that I wouldn't know how to add this to your code without seeing an
example, but in general, what would be the best way to do this kind of
changes in Denemo (adding a new command vs. changing the Scheme code
for that specific case, etc.)?
Thank you in advance for your help,
Lib

On Wed, 20 Oct 2021 at 23:52, Richard Shann  wrote:
>
> On Wed, 2021-10-20 at 19:12 +0300, Lib Lists wrote:
> > Thank you for the quick reply!
> > I get an error message when I execute your script,
>
> The problem is that the email has added a line-feed at the hyphen
>
> (d-DirectivePut-
> standalone-postfix tag "\\startGroup")
>
> should not split d-DirectivePut-standalone-postfix
> up into two words. I told my email client to keep the formatting, but
> on receipt it had been split up. I should use attachments...
>
> Richard
>
>
> >  but your example
> > works perfectly, so there's clearly a mistake from my side. I'll test
> > more and come back if I don't find the (probably quite obvious)
> > solution.
> > Cheers,
> > Lib
> >
> > On Wed, 20 Oct 2021 at 17:38, Richard Shann 
> > wrote:
> > >
> > > On Wed, 2021-10-20 at 16:56 +0300, Lib Lists wrote:
> > > > Hello,
> > > > is there a way to insert analysis brackets (with or without
> > > > labels)
> > > > in
> > > > Denemo? If it already exists, I wasn't able to find the command.
> > >
> > > Well I see it is documented in LilyPond:
> > >
> > > https://lilypond.org/doc/v2.21/Documentation/notation/outside-the-s
> > > taff#analysis-brackets
> > >
> > > So to do this in Denemo you need to insert \startGroup and
> > > \stopGroup
> > > between the relevant notes. You also need to include a special
> > > engraver, so putting these two together gives two bits of Scheme:
> > >
> > > ;start analysis bracket
> > > (let ((tag "Analysis"))
> > >  (d-DirectivePut-
> > > standalone-postfix tag "\\startGroup")
> > >  (d-DirectivePut-layout-postfix
> > > "Analysis" "  \\context {\\Voice  \\consists
> > > \"Horizontal_bracket_engraver\" }"))
> > >
> > > ;stop analysis bracket
> > > (let ((tag "Analysis"))
> > >  (d-DirectivePut-standalone-postfix tag "\\stopGroup"))
> > >
> > > If you put these one at a time into the Scheme window and create a
> > > palette button from them then you can insert your analysis brackets
> > > with those. I've attached an example. Of course, it could be made a
> > > bit
> > > more swish by adding stuff to display more nicely...
> > >
> > > If you need help with any of that, please ask.
> > >
> > > Richard
>



Re: Analysis brackets (with labels) in Denemo

2021-10-20 Thread Lib Lists
Thank you for the quick reply!
I get an error message when I execute your script, but your example
works perfectly, so there's clearly a mistake from my side. I'll test
more and come back if I don't find the (probably quite obvious)
solution.
Cheers,
Lib

On Wed, 20 Oct 2021 at 17:38, Richard Shann  wrote:
>
> On Wed, 2021-10-20 at 16:56 +0300, Lib Lists wrote:
> > Hello,
> > is there a way to insert analysis brackets (with or without labels)
> > in
> > Denemo? If it already exists, I wasn't able to find the command.
>
> Well I see it is documented in LilyPond:
>
> https://lilypond.org/doc/v2.21/Documentation/notation/outside-the-staff#analysis-brackets
>
> So to do this in Denemo you need to insert \startGroup and \stopGroup
> between the relevant notes. You also need to include a special
> engraver, so putting these two together gives two bits of Scheme:
>
> ;start analysis bracket
> (let ((tag "Analysis"))
>  (d-DirectivePut-
> standalone-postfix tag "\\startGroup")
>  (d-DirectivePut-layout-postfix
> "Analysis" "  \\context {\\Voice  \\consists
> \"Horizontal_bracket_engraver\" }"))
>
> ;stop analysis bracket
> (let ((tag "Analysis"))
>  (d-DirectivePut-standalone-postfix tag "\\stopGroup"))
>
> If you put these one at a time into the Scheme window and create a
> palette button from them then you can insert your analysis brackets
> with those. I've attached an example. Of course, it could be made a bit
> more swish by adding stuff to display more nicely...
>
> If you need help with any of that, please ask.
>
> Richard



Analysis brackets (with labels) in Denemo

2021-10-20 Thread Lib Lists
Hello,
is there a way to insert analysis brackets (with or without labels) in
Denemo? If it already exists, I wasn't able to find the command.
Cheers,
Lib



Re: Setting the color of the background (was Re: Shortcuts text colour and Command Center window problems on Puppy Linux)

2020-03-04 Thread Lib Lists
On Tue, 3 Mar 2020 at 22:25, Richard Shann  wrote:
>
> On Tue, 2020-03-03 at 18:59 +0200, Lib Lists wrote:
> > > > Talking about colours, is it possible to modify the background
> > > > colour
> > > > of both the editing
> > > >   and print view windows?
> > >
> > > The "editing window" that is, the Denemo Display, can have its
> > > color
> > > set from Scheme - I forget the syntax, ask if you need it - while
> > > the
> > > Print View is (IIRC) just the default i.e. theme-able.
> >
> > It'd be nice to be able change the background colour of the Denemo
> > Display.
>
> I searched the Help->Browse Manual for "color" and came up with
>
> SetBackground. Set passed 24 bit number as RGB color of background.
>
> which is cryptic to say the least it means
>
> (d-SetBackground 0)
>
> would set the background to black.
> (d-SetBackground #x00ff00) turns red and blue off etc.
> There is a Denemo procedure to get a color from the user, too. (d-
> SelectColor) which returns a list of r, g and b values in range 0.0-1.0
> that would need converting to use with d-SetBackground.

Great, thanks, that works perfectly!

lib
>
> HTH
>
> Richard
>



Re: Shortcuts text colour and Command Center window problems on Puppy Linux

2020-03-03 Thread Lib Lists
On Tue, 3 Mar 2020 at 17:34, Richard Shann  wrote:
>
> On Tue, 2020-03-03 at 15:31 +0200, Lib Lists wrote:
> > On Mon, 2 Mar 2020 at 20:55, Lib Lists  wrote:
> > >
> > > On Mon, 2 Mar 2020 at 14:48, Richard Shann  > > > wrote:
> > > >
> > > > On Mon, 2020-03-02 at 14:18 +0200, Lib Lists wrote:
> > > > > On Mon, 2 Mar 2020 at 12:08, Richard Shann  > > > > .com>
> > > > > wrote:
> > > > > >
> > > > > > On Sat, 2020-02-29 at 19:51 +0200, Lib Lists wrote:
> > > > > > >
> > > > > >
> > > > > > [...]
> > > > > > > > > > The color of the keyboard shortcuts is hard wired,
> > > > > > > > > > unfortunately,
> > > > > > > > > > and I
> > > > > > > > > > see from your picture that it doesn't work well with
> > > > > > > > > > themes
> > > > > > > > > > that
> > > > > > > > > > use a
> > > > > > > > > > dark background with light colored lettering. The
> > > > > > > > > > menu
> > > > > > > > > > background
> > > > > > > > > > color
> > > > > > > > > > and the color of the labels in the menus is not hard-
> > > > > > > > > > wired
> > > > > > > > > > by
> > > > > > > > > > Denemo
> > > > > > > > > > however, so theming should work for them. I've not
> > > > > > > > > > explored
> > > > > > > > > > how
> > > > > > > > > > themes
> > > > > > > > > > can be chosen under Gtk though so I can't really go
> > > > > > > > > > beyond
> > > > > > > > > > saying
> > > > > > > > > > it
> > > > > > > > > > should work :( Do other Gtk-based applications change
> > > > > > > > > > appropriately
> > > > > > > > > > on
> > > > > > > > > > that virtual machine?
> > > > > > > > >
> > > > > > > > > Hi, just tested with Abiword
> > > > > > > >
> > > > > > > > is that a Gtk based program (or Qt for example)?
> > > > > > >
> > > > > > > Yes it's a Gtk program.
> > > > > >
> > > > > > and the background color of pop-up menus in Abiword changes
> > > > > > when
> > > > > > you
> > > > > > change theme but does not in Denemo?
> > > > >
> > > > > Sorry my mistake, Abiword behaves like Denemo i.e. only the
> > > > > title bar
> > > > > changes, while the menus don't. However, Gnumeric works well.
> > > > > After
> > > > > some research it seems that the installed version of Abiword is
> > > > > a
> > > > > Gtk3
> > > > > program, while Gnumeric (version 1.10.17) is a Gtk2 program.
> > > >
> > > > You can build Denemo against Gtk2 but there are some features
> > > > that are
> > > > not so good. IIRC Gtk3 has switched to using cascading style
> > > > sheets (or
> > > > some such terminology) where you can specify the style of things
> > > > at an
> > > > extremely granular level - Denemo is exploiting this internally,
> > > > e.g.
> > > > to paint the background of the frames differently for the
> > > > different
> > > > types of Denemo Directive in the Score/Movement/Staff/etc
> > > > editors.
> > > > Ideally this would be done by providing a style sheet with Denemo
> > > > that
> > > > the user could then adjust, but, as I say, I haven't delved so
> > > > deeply
> > > > into how that would work.
> > > > I think the installed Gtk3 libraries that you have will include a
> > > > variety of styles and something to specify the default, so, short
> > > > of
> > > > finding a Gtk3 theme chooser program you could directly alter
> > > > that
> > > > default (probably by putting the choice in some .config file in
> > > > your
> > > > home directory).
> > >
> > > Hi Richard,
> > > thank you for your suggestion! I'll give it a try and report.
> >
> > Hi,
> > I tried to modify various gtk3 .css files but didn't succeed.
> > However,
> > I noticed that in Abiword's menus the keyboard shortcuts are light
> > grey and not dark blue as in Denemo. Otherwise the menu colours are
> > exactly the same. Could it be that in Denemo the shortcut colour
> > number is hardcoded?
>
> it is - I mentioned this earlier (first sentence above!)

Hi, oops, I completely skipped that sentence, sorry about that.
>
> >
> > Talking about colours, is it possible to modify the background colour
> > of both the editing
> >  and print view windows?
>
> The "editing window" that is, the Denemo Display, can have its color
> set from Scheme - I forget the syntax, ask if you need it - while the
> Print View is (IIRC) just the default i.e. theme-able.

It'd be nice to be able change the background colour of the Denemo Display.

>
> >
> > Finally, I just noticed that in the version compiled by myself syntax
> > highlighting
>
> LilyPond syntax highlighting?

Yes

>
> >  doesn't work, while it works in the appimage downloaded
> > from Denemo website. Any hint?
> The Gtk widget involved is GtkSourceView which has refers to a file
> containing the syntax highlighting rules
> do you get this warning
>
> g_warning ("No syntax highlighting for LilyPond");

Yes, exactly, that's the message I get.
Thanks!

>
> the code doing this stuff is in src/export/exportlilypond.c if that
> helps.
>
> HTH
>
> Richard
>



Re: Shortcuts text colour and Command Center window problems on Puppy Linux

2020-03-03 Thread Lib Lists
On Mon, 2 Mar 2020 at 20:55, Lib Lists  wrote:
>
> On Mon, 2 Mar 2020 at 14:48, Richard Shann  wrote:
> >
> > On Mon, 2020-03-02 at 14:18 +0200, Lib Lists wrote:
> > > On Mon, 2 Mar 2020 at 12:08, Richard Shann 
> > > wrote:
> > > >
> > > > On Sat, 2020-02-29 at 19:51 +0200, Lib Lists wrote:
> > > > >
> > > >
> > > > [...]
> > > > > > > > The color of the keyboard shortcuts is hard wired,
> > > > > > > > unfortunately,
> > > > > > > > and I
> > > > > > > > see from your picture that it doesn't work well with themes
> > > > > > > > that
> > > > > > > > use a
> > > > > > > > dark background with light colored lettering. The menu
> > > > > > > > background
> > > > > > > > color
> > > > > > > > and the color of the labels in the menus is not hard-wired
> > > > > > > > by
> > > > > > > > Denemo
> > > > > > > > however, so theming should work for them. I've not explored
> > > > > > > > how
> > > > > > > > themes
> > > > > > > > can be chosen under Gtk though so I can't really go beyond
> > > > > > > > saying
> > > > > > > > it
> > > > > > > > should work :( Do other Gtk-based applications change
> > > > > > > > appropriately
> > > > > > > > on
> > > > > > > > that virtual machine?
> > > > > > >
> > > > > > > Hi, just tested with Abiword
> > > > > >
> > > > > > is that a Gtk based program (or Qt for example)?
> > > > >
> > > > > Yes it's a Gtk program.
> > > >
> > > > and the background color of pop-up menus in Abiword changes when
> > > > you
> > > > change theme but does not in Denemo?
> > >
> > > Sorry my mistake, Abiword behaves like Denemo i.e. only the title bar
> > > changes, while the menus don't. However, Gnumeric works well. After
> > > some research it seems that the installed version of Abiword is a
> > > Gtk3
> > > program, while Gnumeric (version 1.10.17) is a Gtk2 program.
> >
> > You can build Denemo against Gtk2 but there are some features that are
> > not so good. IIRC Gtk3 has switched to using cascading style sheets (or
> > some such terminology) where you can specify the style of things at an
> > extremely granular level - Denemo is exploiting this internally, e.g.
> > to paint the background of the frames differently for the different
> > types of Denemo Directive in the Score/Movement/Staff/etc editors.
> > Ideally this would be done by providing a style sheet with Denemo that
> > the user could then adjust, but, as I say, I haven't delved so deeply
> > into how that would work.
> > I think the installed Gtk3 libraries that you have will include a
> > variety of styles and something to specify the default, so, short of
> > finding a Gtk3 theme chooser program you could directly alter that
> > default (probably by putting the choice in some .config file in your
> > home directory).
>
> Hi Richard,
> thank you for your suggestion! I'll give it a try and report.

Hi,
I tried to modify various gtk3 .css files but didn't succeed. However,
I noticed that in Abiword's menus the keyboard shortcuts are light
grey and not dark blue as in Denemo. Otherwise the menu colours are
exactly the same. Could it be that in Denemo the shortcut colour
number is hardcoded?

Talking about colours, is it possible to modify the background colour
of both the editing and print view windows?

Finally, I just noticed that in the version compiled by myself syntax
highlighting doesn't work, while it works in the appimage downloaded
from Denemo website. Any hint?

Thanks!
>
> lib
> >
> > HTH
> >
> > Richard
> >
> >
> >



Re: Shortcuts text colour and Command Center window problems on Puppy Linux

2020-03-02 Thread Lib Lists
On Mon, 2 Mar 2020 at 14:48, Richard Shann  wrote:
>
> On Mon, 2020-03-02 at 14:18 +0200, Lib Lists wrote:
> > On Mon, 2 Mar 2020 at 12:08, Richard Shann 
> > wrote:
> > >
> > > On Sat, 2020-02-29 at 19:51 +0200, Lib Lists wrote:
> > > >
> > >
> > > [...]
> > > > > > > The color of the keyboard shortcuts is hard wired,
> > > > > > > unfortunately,
> > > > > > > and I
> > > > > > > see from your picture that it doesn't work well with themes
> > > > > > > that
> > > > > > > use a
> > > > > > > dark background with light colored lettering. The menu
> > > > > > > background
> > > > > > > color
> > > > > > > and the color of the labels in the menus is not hard-wired
> > > > > > > by
> > > > > > > Denemo
> > > > > > > however, so theming should work for them. I've not explored
> > > > > > > how
> > > > > > > themes
> > > > > > > can be chosen under Gtk though so I can't really go beyond
> > > > > > > saying
> > > > > > > it
> > > > > > > should work :( Do other Gtk-based applications change
> > > > > > > appropriately
> > > > > > > on
> > > > > > > that virtual machine?
> > > > > >
> > > > > > Hi, just tested with Abiword
> > > > >
> > > > > is that a Gtk based program (or Qt for example)?
> > > >
> > > > Yes it's a Gtk program.
> > >
> > > and the background color of pop-up menus in Abiword changes when
> > > you
> > > change theme but does not in Denemo?
> >
> > Sorry my mistake, Abiword behaves like Denemo i.e. only the title bar
> > changes, while the menus don't. However, Gnumeric works well. After
> > some research it seems that the installed version of Abiword is a
> > Gtk3
> > program, while Gnumeric (version 1.10.17) is a Gtk2 program.
>
> You can build Denemo against Gtk2 but there are some features that are
> not so good. IIRC Gtk3 has switched to using cascading style sheets (or
> some such terminology) where you can specify the style of things at an
> extremely granular level - Denemo is exploiting this internally, e.g.
> to paint the background of the frames differently for the different
> types of Denemo Directive in the Score/Movement/Staff/etc editors.
> Ideally this would be done by providing a style sheet with Denemo that
> the user could then adjust, but, as I say, I haven't delved so deeply
> into how that would work.
> I think the installed Gtk3 libraries that you have will include a
> variety of styles and something to specify the default, so, short of
> finding a Gtk3 theme chooser program you could directly alter that
> default (probably by putting the choice in some .config file in your
> home directory).

Hi Richard,
thank you for your suggestion! I'll give it a try and report.

lib
>
> HTH
>
> Richard
>
>
>



Re: Shortcuts text colour and Command Center window problems on Puppy Linux

2020-03-02 Thread Lib Lists
On Mon, 2 Mar 2020 at 12:08, Richard Shann  wrote:
>
> On Sat, 2020-02-29 at 19:51 +0200, Lib Lists wrote:
> >
> [...]
> > > > > The color of the keyboard shortcuts is hard wired,
> > > > > unfortunately,
> > > > > and I
> > > > > see from your picture that it doesn't work well with themes
> > > > > that
> > > > > use a
> > > > > dark background with light colored lettering. The menu
> > > > > background
> > > > > color
> > > > > and the color of the labels in the menus is not hard-wired by
> > > > > Denemo
> > > > > however, so theming should work for them. I've not explored how
> > > > > themes
> > > > > can be chosen under Gtk though so I can't really go beyond
> > > > > saying
> > > > > it
> > > > > should work :( Do other Gtk-based applications change
> > > > > appropriately
> > > > > on
> > > > > that virtual machine?
> > > >
> > > > Hi, just tested with Abiword
> > >
> > > is that a Gtk based program (or Qt for example)?
> >
> > Yes it's a Gtk program.
>
> and the background color of pop-up menus in Abiword changes when you
> change theme but does not in Denemo?

Sorry my mistake, Abiword behaves like Denemo i.e. only the title bar
changes, while the menus don't. However, Gnumeric works well. After
some research it seems that the installed version of Abiword is a Gtk3
program, while Gnumeric (version 1.10.17) is a Gtk2 program.

>
>
> >
> > >
> > > >
> > > > > > [...]
>
> > > > > >  Unfortunately then the menu from which 'Open Command
> > > > > > Center'
> > > > > > was invoked remains visible (Screenshot_3).
> > > > >
> > > > > I tested this (on Debian) and the menu remains visible but can
> > > > > be
> > > > > dismissed by clicking off the menu (e.g. clicking on the
> > > > > Command
> > > > > Center
> > > > > itself). Does that not happen with your version?
> > > >
> > > > Yes, the same happens here.
> > >
> > > ok, then that is the "normal" behavior - perhaps it could pop-down
> > > the
> > > menu when that option is chosen, it would need a bug filing against
> > > it
> > > if it is behavior that bothers you...
> >
> > Why not, it feels like an unnecessary click to pop the menu down
> > every time.
>
> I've looked at this: this is the general behavior, and I think I can
> understand why: having navigated down several layers of menus to a menu
> item it will often be not convenient for the menu to disappear without
> consent as the user may want to choose another command from the same
> menu or actually execute that command...

Ah yes, of course, I see the point.

Thank you!


>
> Richard.



Re: Shortcuts text colour and Command Center window problems on Puppy Linux

2020-02-29 Thread Lib Lists
Sorry for double post and the previous unfinished message.

On Sat, 29 Feb 2020 at 19:20, Richard Shann  wrote:
>
> On Sat, 2020-02-29 at 18:51 +0200, Lib Lists wrote:
> > Hi Richard,
> > thanks for your message.
> > Answers below,
> >
> [...]
> > > That's very interesting to know that it is possible to get the
> > > latest
> > > Denemo on a Mac. What version of Denemo do you have working, and
> > > where
> > > did it come from?
> >
> > Latest Denemo (version 2.3.2), compiled from source, downloaded from
> > the git repository https://git.savannah.gnu.org/git/denemo.git
>
> great!
>
> >
> > >
> > > >
> > > > However, there are a couple of problems (see attached
> > > > screenshots):
> > > >
> > > > 1) Is it possible to change the keyboard shortcuts text or the
> > > > menu
> > > > background colours (dark grey on dark blue)? I tried
> > > > changing  the
> > > > JWM
> > > > theme but it didn't work (Screenshot_1).
> > >
> > > The color of the keyboard shortcuts is hard wired, unfortunately,
> > > and I
> > > see from your picture that it doesn't work well with themes that
> > > use a
> > > dark background with light colored lettering. The menu background
> > > color
> > > and the color of the labels in the menus is not hard-wired by
> > > Denemo
> > > however, so theming should work for them. I've not explored how
> > > themes
> > > can be chosen under Gtk though so I can't really go beyond saying
> > > it
> > > should work :( Do other Gtk-based applications change appropriately
> > > on
> > > that virtual machine?
> >
> > Hi, just tested with Abiword
> is that a Gtk based program (or Qt for example)?

Yes it's a Gtk program.

>
> > and the 'theme chooser' application and
> > everything works correctly. However, Denemo menus don't change, only
> > its title bar does.
>
> Hmm, it sounds like there is more than one layer of theming here: your
> window manager is being themed by your "theme chooser" but not actual
> program - Gtk allows the user to theme the programs compiled with it
> and it comes with a number of themes to choose from. But I haven't
> experimented with it (or if I have it was long enough ago for me to
> forget...).

I really don't know the inner working of Puppy Linux, there's a JWM
Theme Switcher and a Gtk+ 2.0 Change Theme 0.3.1 application.

>
> >
> > > >
> > > > 2) When I click 'Open Command Center on this command', the
> > > > Command
> > > > Center window appears without title bar, and the only way to
> > > > close
> > > > the
> > > > window is from the View menu (Screenshot_2).
> > >
> > > The appearance of the window without decorations is presumably some
> > > bug
> > > in the Gtk version you are compiled or running with... I can be
> > > pretty
> > > certain Denemo does not request a window without decorations for
> > > the
> > > Command Center.
> >
> > I've used libgtk-3-dev_3.22.30
>
> I see I have 3.22.11 which I guess is what my Debian oldstable comes
> with.
>
> >
> > >
> > > >  However, the behaviour
> > > > happens only the first time and on the following times the title
> > > > bar
> > > > appears. Unfortunately then the menu from which 'Open Command
> > > > Center'
> > > > was invoked remains visible (Screenshot_3).
> > >
> > > I tested this (on Debian) and the menu remains visible but can be
> > > dismissed by clicking off the menu (e.g. clicking on the Command
> > > Center
> > > itself). Does that not happen with your version?
> >
> > Yes, the same happens here.
>
> ok, then that is the "normal" behavior - perhaps it could pop-down the
> menu when that option is chosen, it would need a bug filing against it
> if it is behavior that bothers you...

Why not, it feels like an unnecessary click to pop the menu down every time.

Thank you for your help!

>
> HTH Richard
>



Re: Shortcuts text colour and Command Center window problems on Puppy Linux

2020-02-29 Thread Lib Lists
On Sat, 29 Feb 2020 at 19:20, Richard Shann  wrote:
>
> On Sat, 2020-02-29 at 18:51 +0200, Lib Lists wrote:
> > Hi Richard,
> > thanks for your message.
> > Answers below,
> >
> [...]
> > > That's very interesting to know that it is possible to get the
> > > latest
> > > Denemo on a Mac. What version of Denemo do you have working, and
> > > where
> > > did it come from?
> >
> > Latest Denemo (version 2.3.2), compiled from source, downloaded from
> > the git repository https://git.savannah.gnu.org/git/denemo.git
>
> great!
>
> >
> > >
> > > >
> > > > However, there are a couple of problems (see attached
> > > > screenshots):
> > > >
> > > > 1) Is it possible to change the keyboard shortcuts text or the
> > > > menu
> > > > background colours (dark grey on dark blue)? I tried
> > > > changing  the
> > > > JWM
> > > > theme but it didn't work (Screenshot_1).
> > >
> > > The color of the keyboard shortcuts is hard wired, unfortunately,
> > > and I
> > > see from your picture that it doesn't work well with themes that
> > > use a
> > > dark background with light colored lettering. The menu background
> > > color
> > > and the color of the labels in the menus is not hard-wired by
> > > Denemo
> > > however, so theming should work for them. I've not explored how
> > > themes
> > > can be chosen under Gtk though so I can't really go beyond saying
> > > it
> > > should work :( Do other Gtk-based applications change appropriately
> > > on
> > > that virtual machine?
> >
> > Hi, just tested with Abiword
> is that a Gtk based program (or Qt for example)?

It's a Gtk program.

>
> > and the 'theme chooser' application and
> > everything works correctly. However, Denemo menus don't change, only
> > its title bar does.
>
> Hmm, it sounds like there is more than one layer of theming here: your
> window manager is being themed by your "theme chooser" but not actual
> program - Gtk allows the user to theme the programs compiled with it
> and it comes with a number of themes to choose from. But I haven't
> experimented with it (or if I have it was long enough ago for me to
> forget...).

I really don't know the inner working of Puppy Linux, there's a JWM
Theme Switcher and a

>
> >
> > > >
> > > > 2) When I click 'Open Command Center on this command', the
> > > > Command
> > > > Center window appears without title bar, and the only way to
> > > > close
> > > > the
> > > > window is from the View menu (Screenshot_2).
> > >
> > > The appearance of the window without decorations is presumably some
> > > bug
> > > in the Gtk version you are compiled or running with... I can be
> > > pretty
> > > certain Denemo does not request a window without decorations for
> > > the
> > > Command Center.
> >
> > I've used libgtk-3-dev_3.22.30
>
> I see I have 3.22.11 which I guess is what my Debian oldstable comes
> with.
>
> >
> > >
> > > >  However, the behaviour
> > > > happens only the first time and on the following times the title
> > > > bar
> > > > appears. Unfortunately then the menu from which 'Open Command
> > > > Center'
> > > > was invoked remains visible (Screenshot_3).
> > >
> > > I tested this (on Debian) and the menu remains visible but can be
> > > dismissed by clicking off the menu (e.g. clicking on the Command
> > > Center
> > > itself). Does that not happen with your version?
> >
> > Yes, the same happens here.
>
> ok, then that is the "normal" behavior - perhaps it could pop-down the
> menu when that option is chosen, it would need a bug filing against it
> if it is behavior that bothers you...
>
> HTH Richard
>



Re: Shortcuts text colour and Command Center window problems on Puppy Linux

2020-02-29 Thread Lib Lists
Hi Richard,
thanks for your message.
Answers below,

On Sat, 29 Feb 2020 at 17:21, Richard Shann  wrote:
>
> On Sat, 2020-02-29 at 14:49 +0200, Lib Lists wrote:
> > Hi,
> > I started using Denemo on my mac on a VirtualBoxed Puppy Linux
> > because
> > of the unavailability of an updated MacOs version. I chose Puppy
> > Linux
> > because I have some past experience with it and because runs smoothly
> > on a virtual machine. I'm using the version called Bionicpup64 8.0.
> That's very interesting to know that it is possible to get the latest
> Denemo on a Mac. What version of Denemo do you have working, and where
> did it come from?

Latest Denemo (version 2.3.2), compiled from source, downloaded from
the git repository https://git.savannah.gnu.org/git/denemo.git

>
> >
> > However, there are a couple of problems (see attached screenshots):
> >
> > 1) Is it possible to change the keyboard shortcuts text or the menu
> > background colours (dark grey on dark blue)? I tried changing  the
> > JWM
> > theme but it didn't work (Screenshot_1).
>
> The color of the keyboard shortcuts is hard wired, unfortunately, and I
> see from your picture that it doesn't work well with themes that use a
> dark background with light colored lettering. The menu background color
> and the color of the labels in the menus is not hard-wired by Denemo
> however, so theming should work for them. I've not explored how themes
> can be chosen under Gtk though so I can't really go beyond saying it
> should work :( Do other Gtk-based applications change appropriately on
> that virtual machine?

Hi, just tested with Abiword and the 'theme chooser' application and
everything works correctly. However, Denemo menus don't change, only
its title bar does.

> >
> > 2) When I click 'Open Command Center on this command', the Command
> > Center window appears without title bar, and the only way to close
> > the
> > window is from the View menu (Screenshot_2).
>
> The appearance of the window without decorations is presumably some bug
> in the Gtk version you are compiled or running with... I can be pretty
> certain Denemo does not request a window without decorations for the
> Command Center.

I've used libgtk-3-dev_3.22.30

>
> >  However, the behaviour
> > happens only the first time and on the following times the title bar
> > appears. Unfortunately then the menu from which 'Open Command Center'
> > was invoked remains visible (Screenshot_3).
>
> I tested this (on Debian) and the menu remains visible but can be
> dismissed by clicking off the menu (e.g. clicking on the Command Center
> itself). Does that not happen with your version?

Yes, the same happens here.

>
>
> HTH
>
> Richard



Re: [Denemo-devel] (Justified) text between title and staff and text before movement.

2019-08-28 Thread Lib Lists
On Tue, 27 Aug 2019 at 18:54, Richard Shann  wrote:
>
> On Tue, 2019-08-27 at 09:58 +0100, Richard Shann wrote:
> > I've long thought it would be nice to create a pure LilyPond markup
> > interactive generator for Denemo, just by cutting down that
> > command...
>
> Well, intriguingly this is possible (with one wrinkle):
> In the Scheme window paste this script:
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>
> (let ((tag "ScoreMarkup")(user-input ""))
>   (set! user-input (d-DirectiveGet-score-data tag))
>   (if (not user-input)
>   (set! user-input "Insert LilyPond markup syntax here - delete any
> paragraph markers ¶ as they will display wrongly\n"))
> (set! user-input  (d-GetUserInputWithSnippets #f #f user-input #f))
> (disp "user-input " user-input "\n\n")
> (if user-input
> (let ((syntax (string-append "\\markup {\n" (string-delete #\¶ (car
> user-input)) "\n}")))
>   (d-SetSaved #f)
>   (d-DirectivePut-score-data tag (car user-input))
>   (d-DirectivePut-score-prefix tag syntax)
>   (d-DirectivePut-score-display tag syntax))
> (d-WarningDialog (_ "Score Markup unchanged"
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>
> When you execute this it lets you type in LilyPond markup syntax and
> displays how it will look in the top pane as you type.
> When you are done it puts it at the top of your score (by wrapping it
> with \markup {})
> The wrinkle is that the paragraph markers ¶ are still inserted and need
> to be deleted, otherwise the preview shows them as new lines.
> There are commands under the Selection button for putting a selection
> of your text into a line (and the lines, when selected, into a column).
>
> This script can be made into a palette button, new command etc as
> usual.
>
> HTH
>
> Richard
>

Thank you so much for this, and also for the detailed explanation!
I'll test it today and report.
Cheers,
Lib

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] (Justified) text between title and staff and text before movement.

2019-08-28 Thread Lib Lists
On Tue, 27 Aug 2019 at 10:04, Richard Shann  wrote:
>
> On Tue, 2019-08-27 at 09:07 +0200, Lib Lists wrote:
> > Hi,
> > for the manual I'm writing I'd need to write some text between a
> > movement title and a staff. At the moment I'm using the 'Piece'
> > field,
> > but I'm wondering if there's a better way to do it.
> That's a quick way to do it without looking to deeply into LilyPond's
> markup syntax - but see below (*).
> >
> > Also, I'd need to write an introductory text before the first
> > movement. I'm using Text after Movement quite often and it's very
> > handy so I'm wondering how to type some Text before the first
> > Movement.
>
> Do you mean between the Score Title and the Movement Title or before
> everything?

Hi Richard,
before the Score Title and the Movement Title.

>
> >
> > Finally, the texts should be justified, as in the 'Markup lines'
> > example here:
> > http://lilypond.org/doc/v2.18/Documentation/snippets/text
>
> You can use any markup commands in the various fields that built-in for
> titling - e.g. using the Movements->Titles->Simple Titles->Set Titles
> =>"piece" field I pasted in the text
>
>   \justify {
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
> do eiusmod tempor incididunt ut labore et dolore magna aliqua.
> Ut enim ad minim veniam, quis nostrud exercitation ullamco
> laboris nisi ut aliquip ex ea commodo consequat.
>   }

Ah, interesting! I was a bit confused about which lilypond markup
commands work in the titling fields, now it's clear, thanks.


> which came from that page and it arranged it justified between the
> margins below the movement title.
>
> (*) Perhaps you would be better off not using the built-in titling at
> all, since you are writing more and more markup commands - the built-in
> titling is just layering a few markup commands around the text that you
> give so you may better off with a clean sheet.
>
> If you use the command
> Command: LilyPond Score Prolog
> Inserts LilyPond syntax for include files etc at head of score.
> Location: Object Menu ▶ Score
> Internal Name: ScoreProlog
>
> to insert some markup this will appear at the top of the score
> (actually, if you *do* have simple titles it will appear between the
> Score title and the first Movement title).
> What you could do is to interactively design your markup syntax that
> you want to use by invoking the command
>
> Command: Multi-line Text and Music
> Inserts multi-line text object which can include music snippets, Fret
> Diagrams and Note Names/Chord Symbols. LilyPond Markup can be used and
> a preview button is available to check the syntax.
> Location: Object Menu ▶ Directives ▶ Markings ▶ Text/Symbol
> Internal Name: MultiLineTextAnnotation
>
> This command let's you see how your markup will look as you write it.
> Once you are happy with it you would copy the markup text and paste it
> into the ScoreProlog command above.
> (after cancelling the creation of the multi-line text object of
> course). You could create your entire title and text system in LilyPond
> markup syntax, giving you the maximum flexibility.
>
> It's a trade off between entering only small bits of the syntax and
> having complete control.
>
> HTH
>
> Richard
>
>
>
>
>

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


[Denemo-devel] (Justified) text between title and staff and text before movement.

2019-08-27 Thread Lib Lists
Hi,
for the manual I'm writing I'd need to write some text between a
movement title and a staff. At the moment I'm using the 'Piece' field,
but I'm wondering if there's a better way to do it.

Also, I'd need to write an introductory text before the first
movement. I'm using Text after Movement quite often and it's very
handy so I'm wondering how to type some Text before the first
Movement.

Finally, the texts should be justified, as in the 'Markup lines'
example here: http://lilypond.org/doc/v2.18/Documentation/snippets/text

Thank you for your help,
Lib

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)

2019-08-27 Thread Lib Lists
> > > > 4. As I'm writing a manual, where each movement is a separate
> > > > exercise, I'd like at some point to batch export all the
> > > > movements as
> > > > individual files. Is it possible?
> > >
> > > Do you mean separate PDFs?
> >
> > Yes, at the moment separate PDFs, but in the future it might be
> > useful
> > to export as well as PNGs or SVGs.
>
> The following script does what you want
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> (let loop ((count (d-GetMovementsInScore)))
>(if (> count 0)
> (begin
> (d-GoToPosition count 1 1 1)
> (d-PrintMovement)
> (d-ExportPDF (string-append (d-GetFilename) "-Movement-" 
> (number->string count) ".pdf"))
> (loop (1- count)
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>
> but if you put it in the Scheme Window and execute it what happens is
> that it keeps asking if you want to interrupt the typesetting of one
> movement to go on to the typesetting of the next, as well as telling
> you that your PDF has been created for each movement.
> So you need to run it non-interactively - put the script into a file
> say /home/rshann/Desktop/MovementPrint.scm and then run
>
> denemo -n -i "/home/rshann/Desktop/MovementPrint.scm" 
> /home/rshann/musicScores/Molter/SonataAMaj.denemo.gz
>
> which loads my file
>
> /home/rshann/musicScores/Molter/SonataAMaj.denemo.gz
>
> and executes the Scheme in the script on it. (My file is compressed,
> hence the .gz but it doesn't need to be, any .denemo file will do.)

Hi, if I run Denemo from the terminal I get the following error. Also,
I tried to run the script from the Scheme Script pop-up but nothing
happened (I tried both pressing Enter and 'Execute Script', not sure
if there's a difference).

dyld: Library not loaded: /opt/local/lib/guile18/libguile.17.dylib
  Referenced from: /Applications/Denemo.app/Contents/Resources/bin/denemo
  Reason: image not found
Abort trap: 6

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-26 Thread Lib Lists
>
> As I was looking into what would be the likely place to catch the bad
> behavior I came across the reason this is happening on Mac. It would
> seem that the Mac handles pop-up windows in a way that makes it
> desirable to hide the other windows while the pop up holds the focus.
> Unfortunately, Denemo is unhiding the windows at the end of the pop up
> dialog without taking note if they were visible before the pop up.
> I've fixed this now, but I can't see a way to work around the problem.
> With gdb you can change the value of one of the preferences at run time
>  with the command
>
> set Denemo.prefs.hide_windows=0
>
> and the Print View would not appear at the end of a dialog, however the
>  link you gave does not indicate an equivalent command to do that in
> LLDB and, in any case, you would then get whatever undesirable behavior
> the hiding of the windows was meant to fix :(
>
> Richard

Thanks for investigating this.
There is another problem, (maybe related with this?). When I insert
a dynamic marking on a note (ff, f, etc.), all Denemo windows disappear and I
need to press twice Command+TAB to see them (Denemo editing window +
pop-up with the dynamic marking
selection). The same happens with Tempo Changes, where all the windows
disappear every time a new pop-up appears (Select tempo, unit in beat,
insert BPM, BPM printed, Allow for Layout, etc.) until the end of the
process.
As a suggestion, wouldn't be better to have all those options in one
'Tempo Change' pop-up window and not in a series of pop-ups?

Thanks!

Lib


Lib

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] PNG selection export (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-20 Thread Lib Lists
On Mon, 19 Aug 2019 at 18:25, Richard Shann  wrote:
>
> On Sat, 2019-08-17 at 13:02 +0200, Lib Lists wrote:
> > Yes, I noticed that there are no updated builds for MacOS. Do you
> > know
> > how difficult is to build for MacOS?
> The builds that are on the Downloads page of denemo.org were made by
> Jeremiah Benham, but he doesn't have access to a Mac for testing (I
> think they were cross-built). Is it one of these that you are using?

Yes, the one I'm using is taken from here: http://www.denemo.org/downloads-page/

>
> >  Otherwise I'll give a try running
> > the Windows version with Wine / Crossover.

Just tried, it doesn't work and it doesn't look promising (just a
black window and then a crash).

>
> The Windows version is built daily (again cross-compiling on a Unix
> machine).
>
> I'm not sure how difficult it would be to build Denemo natively on a
> Mac - many years ago I used to build it natively on Windows, I guess it
> would depend on the availability of the many libraries for the Mac.

I might give it a try in few weeks.

Lib

>
> HTH
>
> Richard

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-20 Thread Lib Lists
On Mon, 19 Aug 2019 at 18:56, Richard Shann  wrote:
>
> On Mon, 2019-08-19 at 17:32 +0200, Lib Lists wrote:
> > On Thu, 15 Aug 2019 at 13:22, Richard Shann 
> > wrote:
> > >
> > > On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:
> > > > > How did you try to close it? The only way that will surely work
> > > > > is
> > > > > to
> > > > > use the View menu - anything else depends on the what the
> > > > > window
> > > > > manager decides to do - in this case it seems it is iconizing
> > > > > the
> > > > > window.
> > > >
> > > > I just tried from the View menu (by unchecking 'Typeset Music'),
> > > > but
> > > > the Print View window reappears as soon as I type and confirm
> > > > something in a pop-up window. Also, when I relaunch Denemo the
> > > > Print
> > > > View window appears, even if it was closed before closing Denemo.
> > >
> > > The View window should only reappear on start up only if the
> > > Continuous
> > > Typesetting was set when Denemo was shutdown. You can check this by
> > > looking at the file .denemo-2.2.0/denemorc which will contain an
> > > entry
> > >
> > > 1
> > >
> > > if continuous typesetting was unset or
> > >
> > > 0
> > >
> > > if continuous typesetting was set.
> > >
> > > Do both of the symptoms you describe occur when Continuous
> > > Typesetting
> > > is off? That would, indeed be bizarre...
> >
> > Hi, when I restart Denemo with Continuous Typesetting Off the Print
> > View window doesn't appear. Unfortunately it comes back as soon as I
> > type something in a pop-up.
>
> This sounds quite bizarre. As a final check, can you open the Scheme
> Window and put
>
> (d-GetUserInput)
>
> in the CLI box and press Enter to execute it. When enter something in
> the dialog that pops up and press return does the Print View appear?
> No additional code should be executed at that point - the value is just
> being discarded, so nothing should happen.

Hi, just tried, the Print View appears.

>
> I think the only way to make progress would be to use a debugger to
> find out how this is coming about - do you have gdb installed on your
> Mac?

No, and it seems quite difficult to install it on a mac. However, I
have lldb installed. I'd like to try with it before going through gdb
installation. https://lldb.llvm.org/use/map.html
Could you give me some hints on how to proceed?

>
> >  In that case the Print View is grey, i.e.
> > there's no score (obviously) but still it comes back to focus on the
> > foreground, on top of the Denemo Display. Also, the Print View window
> > doesn't remember its position when restarting Denemo, but it always
> > comes back on the left-hand side. Is that the intended behaviour?
>
> The print view does come back centered if it has been left in
> Continuous Typesetting, I think ideally all windows would remember
> where they were positioned the last time Denemo was shut down.

In my case the Print View appears always at the upper-left corner.
It'd be nice if the windows would remember their position and size.

Lib

>
> Richard
>
>
>
>

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-19 Thread Lib Lists
On Thu, 15 Aug 2019 at 13:22, Richard Shann  wrote:
>
> On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:
> > > How did you try to close it? The only way that will surely work is
> > > to
> > > use the View menu - anything else depends on the what the window
> > > manager decides to do - in this case it seems it is iconizing the
> > > window.
> >
> > I just tried from the View menu (by unchecking 'Typeset Music'), but
> > the Print View window reappears as soon as I type and confirm
> > something in a pop-up window. Also, when I relaunch Denemo the Print
> > View window appears, even if it was closed before closing Denemo.
>
> The View window should only reappear on start up only if the Continuous
> Typesetting was set when Denemo was shutdown. You can check this by
> looking at the file .denemo-2.2.0/denemorc which will contain an entry
>
> 1
>
> if continuous typesetting was unset or
>
> 0
>
> if continuous typesetting was set.
>
> Do both of the symptoms you describe occur when Continuous Typesetting
> is off? That would, indeed be bizarre...

Hi, when I restart Denemo with Continuous Typesetting Off the Print
View window doesn't appear. Unfortunately it comes back as soon as I
type something in a pop-up. In that case the Print View is grey, i.e.
there's no score (obviously) but still it comes back to focus on the
foreground, on top of the Denemo Display. Also, the Print View window
doesn't remember its position when restarting Denemo, but it always
comes back on the left-hand side. Is that the intended behaviour?

>
> In any case, it is difficult to see from the source code why the focus
> would switch the the Print View window, only a mouse-click should do
> that, and even then there is code to immediately switch the focus back
> to the Denemo Display (i.e. main window, where the keystrokes must
> arrive). If you click on a note in the Print View it should start
> playing from that note after switching the focus back to the Denemo
> Display - does this happen ok?

Click and shift-click on a note in the Print View works (switch to
Denemo Display and playback / cursor on that note).

Lib

>
> Richard
>
>
>
>

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] PNG selection export (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-17 Thread Lib Lists
On Sat, 17 Aug 2019 at 11:11, Richard Shann  wrote:
>
> On Fri, 2019-08-16 at 15:07 +0200, Lib Lists wrote:
> > > Once you have the echo message from the myopen.sh saying what the
> > > command it is issuing is you can then check that the file does in
> > > fact
> > > exist and is a .png image ... indeed you can simply repeat the
> > > command
> > > that myopen.sh is telling you directly on the command line to check
> > > that it is working. (Possible snags could include unusual
> > > characters in
> > > the file name(*) - some operating systems have restrictions and
> > > some
> > > characters such as spaces cause parsing problems).
> > > HTH
> > > Richard
> > > (*) so test with a file named something simple, like "junk.denemo"
> >
> >
> > Hi,
> > thanks for your help.
> > if I launch the script from the terminal it works (as in your example
> > open -a /PATH/TO/Preview mypicture.png). However, when I launch the
> > script from Denemo (I put the full path of the script in the Image
> > Viewer field) nothing happens, i.e. I don't see the echo message on
> > the terminal and the same pop-up window.
>
> As you don't have the echo message we can be pretty sure the problem is
> *not* the same as the failure to launch Safari when trying to use the
> Denemo manual - in that case Safari was launched, it just didn't expect
> a URL on the command line, expecting a file name instead (so you could
> fix that by a script that chopped the initial file:/// off).
>
> I've looked at the source code and it seems the problem is that for
> some Glib versions the success status of the typesetting is being
> inverted.
> I've fixed this now in the sources, but unfortunately I don't think
> there is any daily build for MacOS - indeed I'm not sure if anyone is
> ready, willing and able to build for MacOS - so you will need a work
> around. You may be able to get there by locating the temporary
> directory where Denemo is storing the results of typesetting. On Unix
> it is /tmp/Denemo_*
> a new one of which is created each time you start Denemo. In there you
> will find the .png files that are created (they are named
> denemoprintA.png and denemoprintB.png alternately).

Hi, thanks for your help! I'll fix the safari problem with a script.
I found the TMP folder, on a mac an easy way to find it is to look for
$TMPDIR, which is a different folder than /tmp. There I found the
Denemo folder with a denemoprintA.png picture correctly created.
Yes, I noticed that there are no updated builds for MacOS. Do you know
how difficult is to build for MacOS? Otherwise I'll give a try running
the Windows version with Wine / Crossover.

Lib

>
> HTH
>
> Richard
>
>
>
>
>
>

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] PNG selection export (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-16 Thread Lib Lists
On Fri, 16 Aug 2019 at 10:15, Richard Shann  wrote:
>
> On Fri, 2019-08-16 at 09:47 +0200, Lib Lists wrote:
> > On Thu, 15 Aug 2019 at 12:59, Richard Shann 
> > wrote:
> > >
> > > On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:
> > > > > > Hi, writing in a terminal '/PATH/TO/Preview somefile.png'
> > > > > > doesn't
> > > > > > work. However, 'open -a  /PATH/TO/Preview somefile.png' works
> > > > > > as
> > > > > > well
> > > > > > as 'open somefile.png'.
> > > > >
> > > > > In that case you may be able to set the Image Viewer field to
> > > > > "open"
> > > > > without the quotes
> > > > > and it may work. (I'm hoping there is an executable named
> > > > > "open"
> > > > > that
> > > > > takes a filename as a parameter and decides what to do with it)
> > > > >
> > > >
> > > > Hi, I tried but it doesn't work, same result as before. I tried
> > > > 'open', 'open -a PATH/TO/Preview'. Here the
> > > > man page for 'open'
> > > > https://ss64.com/osx/open.html. In the preferences I also setup
> > > > an
> > > > internet browser ('PATH/TO/Safari) and I found a problem: Safari
> > > > correctly opens, but the address to the file (the help file in
> > > > this
> > > > case) is written as:
> > > > file:///file:/Applications/Denemo.app/Contents/Resources/share/de
> > > > nemo
> > > > /manual/denemo-manual.html
> > > > with the double 'file' bit at the beginning. Maybe related with
> > > > the
> > > > problem with Preview?
> > >
> > > Well, this sounds like it is not difficult to fix: Denemo is
> > > successfully launching the executable program, but the programs
> > > launched are failing to pick up and use the parameter
> > > appropriately. In
> > > the case of Safari it is taking the parameter to be a file name and
> > > prefixing file:/// to it while how the "open" thing is failing is
> > > less
> > > clear, as the man page you quote indicates that calling it with a
> > > pdf
> > > filename as parameter should work. Setting the field to 'open -a
> > > PATH/TO/Preview' would *not* work, as it would try to execute a
> > > program
> > > named 'open -a PATH/TO/Preview' which doesn't exist.
> > > So the easy fix is to create a script that calls the program you
> > > want
> > > to call with the correct parameter. On Unix you would write a file
> > > containing something like
> > >
> > > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8
> > > ><
> > > #!/bin/bash
> > >
> > > echo Opening $1 as png using the command: open -a
> > > /PATH/TO/Preview $1
> > >
> > > open -a /PATH/TO/Preview $1
> > >
> > > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8
> > > ><
> > >
> > > you would put this into a file, say myopen.sh and make it
> > > executable
> > > chmod a+x myopen.sh
> > >
> > > You could use any other scripting language to take the file name as
> > > provided by Denemo and invoke your display program.
> >
> > Hi Richard,
> > thank you, but unfortunately it didn't work. I get the same result as
> > before (pop-up saying 'Your PNG file has now been created).
>
> But the difference now is that you should get a message on the terminal
> saying
>
> Opening $1 as png using the command: open -a /PATH/TO/Preview $1
>
> where $1 is replaced by the actual parameter it is receiving.
> Indeed, as your first test, invoke myopen.sh directly from the command
> line
>
> /PATH/TO/myopen.sh mypicture.png
>
> where mypicture.png is some .png image.
>
> It should print
>
> Opening mypicture.png as png using the command: open -a /PATH/TO/Preview 
> mypicture.png
>
> (where, of course, /PATH/TO is not literal but means that you write the
> path to the appropriate executable) and proceed to display your png.
>
> Once you have an executable script that does display your png as you
> want it then I can't imagine t

Re: [Denemo-devel] PNG selection export (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-16 Thread Lib Lists
On Thu, 15 Aug 2019 at 12:59, Richard Shann  wrote:
>
> On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:
> > > > Hi, writing in a terminal '/PATH/TO/Preview somefile.png' doesn't
> > > > work. However, 'open -a  /PATH/TO/Preview somefile.png' works as
> > > > well
> > > > as 'open somefile.png'.
> > >
> > > In that case you may be able to set the Image Viewer field to
> > > "open"
> > > without the quotes
> > > and it may work. (I'm hoping there is an executable named "open"
> > > that
> > > takes a filename as a parameter and decides what to do with it)
> > >
> >
> > Hi, I tried but it doesn't work, same result as before. I tried
> > 'open', 'open -a PATH/TO/Preview'. Here the
> > man page for 'open'
> > https://ss64.com/osx/open.html. In the preferences I also setup an
> > internet browser ('PATH/TO/Safari) and I found a problem: Safari
> > correctly opens, but the address to the file (the help file in this
> > case) is written as:
> > file:///file:/Applications/Denemo.app/Contents/Resources/share/denemo
> > /manual/denemo-manual.html
> > with the double 'file' bit at the beginning. Maybe related with the
> > problem with Preview?
>
> Well, this sounds like it is not difficult to fix: Denemo is
> successfully launching the executable program, but the programs
> launched are failing to pick up and use the parameter appropriately. In
> the case of Safari it is taking the parameter to be a file name and
> prefixing file:/// to it while how the "open" thing is failing is less
> clear, as the man page you quote indicates that calling it with a pdf
> filename as parameter should work. Setting the field to 'open -a
> PATH/TO/Preview' would *not* work, as it would try to execute a program
> named 'open -a PATH/TO/Preview' which doesn't exist.
> So the easy fix is to create a script that calls the program you want
> to call with the correct parameter. On Unix you would write a file
> containing something like
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> #!/bin/bash
>
> echo Opening $1 as png using the command: open -a /PATH/TO/Preview $1
>
> open -a /PATH/TO/Preview $1
>
> 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
>
> you would put this into a file, say myopen.sh and make it executable
> chmod a+x myopen.sh
>
> You could use any other scripting language to take the file name as
> provided by Denemo and invoke your display program.

Hi Richard,
thank you, but unfortunately it didn't work. I get the same result as
before (pop-up saying 'Your PNG file has now been created).

>
> However, it sounds like "open" may not behave like a normal executable
> program, and a quick search for Preview on the MacOS suggests that you
> cannot invoke it with an option to provide the filename that Preview is
> to work on - is there a man page for Preview? - so if that is really
> the case, bizarre as it seems, then you might have to write an
> AppleScript or use some more normal display program.

I'm quite sure it is possible to invoke it with a filename. In fact
'open filename' is the same as double-clicking on the file (see
attached man page for open), it'll open the file with the default
application, while 'open -a appname filename' opens filename with the
application appname.

Cheers,

Lib

>
> HTH
>
> Richard
>
>
>
>
>
>
>
>
>
>
>
>
>


open.1
Description: Binary data
___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)

2019-08-13 Thread Lib Lists
On Mon, 12 Aug 2019 at 21:46, Richard Shann  wrote:
>
> On Mon, 2019-08-12 at 21:04 +0200, Lib Lists wrote:
> > On Mon, 12 Aug 2019 at 18:13, Richard Shann 
> > wrote:
> > >
> > > On Mon, 2019-08-12 at 16:18 +0200, Lib Lists wrote:
> > > > Hi Richard, and thank you for your quick reply!
> > > >
> > > > On Mon, 12 Aug 2019 at 15:52, Richard Shann  > > > com>
> > > > wrote:
> > > > >
> > > > > On Mon, 2019-08-12 at 14:21 +0200, Lib Lists wrote:
> > > > > > Hello,
> > > > > > new Denemo user here, coming back to Lilypond through Denemo
> > > > > > after
> > > > > > many years. It is really a pleasure to do note entry in a
> > > > > > visual
> > > > > > editor, thank you for your efforts in developing Denemo!
> > > > > >
> > > > > > [...]
> > > >
> > > > >
> > > > > >
> > > > > > 2. When I select Export as -> Export selection as PNG, I get
> > > > > > a
> > > > > > message that my file has been created, but I cannot find it
> > > > > > in
> > > > > > the
> > > > > > file system.
> > > > >
> > > > > You have to set your preference for a Image Viewer program to
> > > > > something
> > > > > you have in your path to view the png with. The message is
> > > > > misleading -
> > > > > as the help for the command says
> > > > >
> > > > > Command: Export Selection as PNG
> > > > > Displays a musical excerpt in your image viewer
> > > > > Location: Main Menu ▶ File ▶ Export As
> > > > > Internal Name: PrintExcerptPreview
> > > > >
> > > > > so you have to have the Image Viewer in Edit->Change
> > > > > Preferences-
> > > > > > Externals=>Image Viewer
> > > > >
> > > > > set to some program actually installed on your system.
> > > > >
> > > >
> > > > I forgot to mention that I have already tried with Preview, Mac
> > > > os
> > > > default image viewer
> > > > (/Applications/Preview.app/Contents/MacOS/Preview) without
> > > > success.
> > >
> > > Hmm, I don't have access to any Mac to test that. I just tested
> > > giving
> > > the full path to the executable (ie what you get when you do
> > >
> > > which Preview
> > >
> > > at a terminal, and that worked (this is Debian - I don't know what
> > > Mac
> > > O/S 10.13.6, but I presume it has a Linux kernel and Unix tools?)
> > > If you execute
> > >
> > > Preview somefile.png
> > >
> > > in a terminal does it work? That is, does it take a filename on the
> > > command line?
> >
> > Hi, writing in a terminal '/PATH/TO/Preview somefile.png' doesn't
> > work. However, 'open -a  /PATH/TO/Preview somefile.png' works as well
> > as 'open somefile.png'.
>
> In that case you may be able to set the Image Viewer field to
> "open"
> without the quotes
> and it may work. (I'm hoping there is an executable named "open" that
> takes a filename as a parameter and decides what to do with it)
>

Hi, I tried but it doesn't work, same result as before. I tried
'open', 'open -a PATH/TO/Preview'. Here the man page for 'open'
https://ss64.com/osx/open.html. In the preferences I also setup an
internet browser ('PATH/TO/Safari) and I found a problem: Safari
correctly opens, but the address to the file (the help file in this
case) is written as:
file:///file:/Applications/Denemo.app/Contents/Resources/share/denemo/manual/denemo-manual.html
with the double 'file' bit at the beginning. Maybe related with the
problem with Preview?

> > [...]
> > >
> > > > > inserting it where?
> > > >
> > > > For example in the pop-up Note/Rests->Markings->Chord Symbols-
> > > > >Edit
> > > > Chord Symbols.
> > > > The same behaviour happens after adding text in other (any?) pop-
> > > > up
> > > > dialogs
> > > > and pressing OK or cancel (for example after inserting a title,
> > > > adding
> > > > a chord name, etc.).
> > >
> > > Hmm, that's what I thought you might mean - it doesn't happen for
> > > me on
> > > Denemo 2.3 and I just tried Denemo 2.2 on Windows and it doesn't
> > > happen
> > > there. I guess a workaround would be to dismiss the Print View
> > > altogether and only bring it back when you have finished?
> >
> > Unfortunately it doesn't work. If I close the Print View (I also
> > switched to Manual Updates, just in case), it returns after
> > interacting with a pop-up dialog.
>
> How did you try to close it? The only way that will surely work is to
> use the View menu - anything else depends on the what the window
> manager decides to do - in this case it seems it is iconizing the
> window.

I just tried from the View menu (by unchecking 'Typeset Music'), but
the Print View window reappears as soon as I type and confirm
something in a pop-up window. Also, when I relaunch Denemo the Print
View window appears, even if it was closed before closing Denemo.

>
> HTH Richard

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)

2019-08-12 Thread Lib Lists
On Mon, 12 Aug 2019 at 18:13, Richard Shann  wrote:
>
> On Mon, 2019-08-12 at 16:18 +0200, Lib Lists wrote:
> > Hi Richard, and thank you for your quick reply!
> >
> > On Mon, 12 Aug 2019 at 15:52, Richard Shann 
> > wrote:
> > >
> > > On Mon, 2019-08-12 at 14:21 +0200, Lib Lists wrote:
> > > > Hello,
> > > > new Denemo user here, coming back to Lilypond through Denemo
> > > > after
> > > > many years. It is really a pleasure to do note entry in a visual
> > > > editor, thank you for your efforts in developing Denemo!
> > > >
> > > > Few questions, using Denemo 2.2.0 on Mac Os 10.13.6.
> > > >
> > > > 1. Despite my attempts, I cannot find a way to create cross-staff
> > > > beaming in a piano staff. I understand it is possible in Denemo,
> > > > but
> > > > I cannot find the right command.
> > >
> > > Cross staff beaming is created automatically by LilyPond when you
> > > cause
> > > a voice to change staff, so the command you want is:
> > >
> > > Staffs/Voices->Change Staff
> >
> > Great, works perfectly!
> >
> > >
> > > >
> > > > 2. When I select Export as -> Export selection as PNG, I get a
> > > > message that my file has been created, but I cannot find it in
> > > > the
> > > > file system.
> > >
> > > You have to set your preference for a Image Viewer program to
> > > something
> > > you have in your path to view the png with. The message is
> > > misleading -
> > > as the help for the command says
> > >
> > > Command: Export Selection as PNG
> > > Displays a musical excerpt in your image viewer
> > > Location: Main Menu ▶ File ▶ Export As
> > > Internal Name: PrintExcerptPreview
> > >
> > > so you have to have the Image Viewer in Edit->Change Preferences-
> > > > Externals=>Image Viewer
> > >
> > > set to some program actually installed on your system.
> > >
> >
> > I forgot to mention that I have already tried with Preview, Mac os
> > default image viewer
> > (/Applications/Preview.app/Contents/MacOS/Preview) without success.
>
> Hmm, I don't have access to any Mac to test that. I just tested giving
> the full path to the executable (ie what you get when you do
>
> which Preview
>
> at a terminal, and that worked (this is Debian - I don't know what Mac
> O/S 10.13.6, but I presume it has a Linux kernel and Unix tools?)
> If you execute
>
> Preview somefile.png
>
> in a terminal does it work? That is, does it take a filename on the
> command line?

Hi, writing in a terminal '/PATH/TO/Preview somefile.png' doesn't
work. However, 'open -a  /PATH/TO/Preview somefile.png' works as well
as 'open somefile.png'.

>
> >
> > >
> > > >
> > > > 3. Is it possible to create feathered beams as
> > > > in http://lilypond.org/doc/v2.19/Documentation/notation/beams#fea
> > > > ther
> > > > ed-beams? Maybe with a custom command?
> > >
> > > yes, I just tried it. I put in some 1/16th notes and then chose
> > > Directives->Insert LilyPond
> > > and pasted an example from the section you mentioned
> > >
> > > \override Beam.grow-direction = #LEFT
> > > \featherDurations #(ly:make-moment 2/1)
> > >
> > > (well, this is LilyPond 2.18 docs actually)
> > > and it feathered the following beam.
> > > You could then take that Denemo Directive and
> > > 1) create a snippet from it, or
> > > 2) create a palette button that inserts it or
> > > 3) create a command that inserts it.
> > >
> > > for 1) see View->Snippets
> > > for 2) right click on the directive and choose "Create Button for
> > > Clone"
> > > for 3), well having created a palette button you could right click
> > > the
> > > palette button and choose "Get Script into Scheme Window" and then
> > > at a
> > > suitable point in the Beams menu right click and choose "Save
> > > Script as
> > > New Menu Item" and follow the prompts to create a new command that
> > > inserts that Denemo Directive.
> >
> > Great, thanks for the detailed instructions! I'll give it a try.
> >
> > >
> > >
> > > >
> > > > 4. As I'm writing a manual, where each movement is a separate
> > > > exercise, I'd like at some point t

Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)

2019-08-12 Thread Lib Lists
Hi Richard, and thank you for your quick reply!

On Mon, 12 Aug 2019 at 15:52, Richard Shann  wrote:
>
> On Mon, 2019-08-12 at 14:21 +0200, Lib Lists wrote:
> > Hello,
> > new Denemo user here, coming back to Lilypond through Denemo after
> > many years. It is really a pleasure to do note entry in a visual
> > editor, thank you for your efforts in developing Denemo!
> >
> > Few questions, using Denemo 2.2.0 on Mac Os 10.13.6.
> >
> > 1. Despite my attempts, I cannot find a way to create cross-staff
> > beaming in a piano staff. I understand it is possible in Denemo, but
> > I cannot find the right command.
>
> Cross staff beaming is created automatically by LilyPond when you cause
> a voice to change staff, so the command you want is:
>
> Staffs/Voices->Change Staff

Great, works perfectly!

>
> >
> > 2. When I select Export as -> Export selection as PNG, I get a
> > message that my file has been created, but I cannot find it in the
> > file system.
>
> You have to set your preference for a Image Viewer program to something
> you have in your path to view the png with. The message is misleading -
> as the help for the command says
>
> Command: Export Selection as PNG
> Displays a musical excerpt in your image viewer
> Location: Main Menu ▶ File ▶ Export As
> Internal Name: PrintExcerptPreview
>
> so you have to have the Image Viewer in Edit->Change Preferences-
> >Externals=>Image Viewer
> set to some program actually installed on your system.
>

I forgot to mention that I have already tried with Preview, Mac os
default image viewer
(/Applications/Preview.app/Contents/MacOS/Preview) without success.

>
> >
> > 3. Is it possible to create feathered beams as
> > in http://lilypond.org/doc/v2.19/Documentation/notation/beams#feather
> > ed-beams? Maybe with a custom command?
>
> yes, I just tried it. I put in some 1/16th notes and then chose
> Directives->Insert LilyPond
> and pasted an example from the section you mentioned
>
> \override Beam.grow-direction = #LEFT
> \featherDurations #(ly:make-moment 2/1)
>
> (well, this is LilyPond 2.18 docs actually)
> and it feathered the following beam.
> You could then take that Denemo Directive and
> 1) create a snippet from it, or
> 2) create a palette button that inserts it or
> 3) create a command that inserts it.
>
> for 1) see View->Snippets
> for 2) right click on the directive and choose "Create Button for
> Clone"
> for 3), well having created a palette button you could right click the
> palette button and choose "Get Script into Scheme Window" and then at a
> suitable point in the Beams menu right click and choose "Save Script as
> New Menu Item" and follow the prompts to create a new command that
> inserts that Denemo Directive.

Great, thanks for the detailed instructions! I'll give it a try.

>
>
> >
> > 4. As I'm writing a manual, where each movement is a separate
> > exercise, I'd like at some point to batch export all the movements as
> > individual files. Is it possible?
>
> Do you mean separate PDFs?

Yes, at the moment separate PDFs, but in the future it might be useful
to export as well as PNGs or SVGs.

>
>
>
> >
> > 5. Last question (for now!), after inserting some text and pressing
> > enter,
>
> inserting it where?

For example in the pop-up Note/Rests->Markings->Chord Symbols->Edit
Chord Symbols.
The same behaviour happens after adding text in other (any?) pop-up dialogs
and pressing OK or cancel (for example after inserting a title, adding
a chord name, etc.).

Cheers,
Lib

>
> HTH
>
> Richard
>

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


[Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)

2019-08-12 Thread Lib Lists
Hello,
new Denemo user here, coming back to Lilypond through Denemo after many
years. It is really a pleasure to do note entry in a visual editor, thank
you for your efforts in developing Denemo!

Few questions, using Denemo 2.2.0 on Mac Os 10.13.6.

1. Despite my attempts, I cannot find a way to create cross-staff beaming
in a piano staff. I understand it is possible in Denemo, but I cannot find
the right command.

2. When I select Export as -> Export selection as PNG, I get a message that
my file has been created, but I cannot find it in the file system.

3. Is it possible to create feathered beams as in
http://lilypond.org/doc/v2.19/Documentation/notation/beams#feathered-beams?
Maybe with a custom command?

4. As I'm writing a manual, where each movement is a separate exercise, I'd
like at some point to batch export all the movements as individual files.
Is it possible?

5. Last question (for now!), after inserting some text and pressing enter,
for example when typing a chord symbol name, the Denemo Print View gets
selected, requiring a mouse click to select the editing window back. Is
this a behaviour that can be modified? Ideally I'd like to see the Print
View updated without having to reselect the editing window.

Thank you so much in advance for your help,
best regards

Lib
___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel