Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-19 Thread Jan-Peter Voigt
Hello Paolo,

thank for that hint, I wasn’t aware of it.
I’d delegate the SSL-Question to some docker-compose setup with Traefik and 
maybe Authelia.
Until now I haven’t used Authelia yet and I use another image for the SSL part 
for my own setups, but it is also a setup with  nginx serving as a reverse 
proxy with certs from lets-encrypt.
That way you don’t need to bloat the Spontini image with this Cert-Stuff.

Cheers
Jan-Peter

> Am 19.02.2022 um 12:59 schrieb Paolo Prete :
> 
> Hello Jan-Peter, 
> 
> thanks for your contribution! 
> There's already a docker setup for the editor, similar to yours, together 
> with other very useful setups (ly2video, fonts etc.), made by Alexis:
> 
> https://github.com/jeandeaual/docker-lilypond/pulls 
> 
> 
> However, it's not pushed yet because we have to find a practical way to solve 
> an issue which appears in your setup too: the need to use the 0.0.0.0 address 
> with HTTP, which could be unsafe. 
> It is possibile, with Spontini, to use certs, so to switch to HTTPS and avoid 
> this issue:
> 
> https://github.com/paopre/Spontini/blob/master/documentation/webserver.md 
> 
> 
> However, this could be a bit cumbersome with docker, because the user would 
> have to create certs and then push them to the container through some 
> command. If we find a shorter way to obtain a HTTPS setup it would be much 
> better. 
> I don't know if a sort of duckdns plugin can be a solution... 
> Please let me know if you have any idea about this. 
> 
> Cheers
> Paolo
> 
> 
> 
> 
> 
> On Saturday, February 19, 2022, Jan-Peter Voigt  > wrote:
> Hello Paolo,
> 
> I really like Spontini and created a docker setup to test it. I just
> started it again. It takes some time to build, but then one can use it
> from http://localhost:8000/spontini-editor/ 
> .
> 
> Best
> Jan-Peter
> 
> Am 11.02.22 um 00:33 schrieb Paolo Prete:
> > Hello,
> >
> > I have published a new version of Spontini-Editor (1.12-alpha): it is
> > still in the testing phase and therefore not available in the list of
> > releases, but it is already working and it can be downloaded from the
> > main project page.
> >
> > https://github.com/paopre/Spontini 
> >
> > The important features of this version are:
> >
> > 1) support for PDF output, in order to speed up the compilation of
> > scores. Thanks to the PDF mode, instead of SVG, the compilation time
> > drastically decreases: once the score has been sketched it is possible
> > to switch to SVG mode, in order to complete it through tweaks with the
> > mouse.
> >
> > 2) MIDI input: it is now possible to enter notes / chords via a MIDI
> > device, using the Web MIDI API on both Chrome and Firefox. It is also
> > possible to insert these notes automatically in the tables for the
> > creation of piano / cross-staff music.
> > In this case the notes are automatically inserted in the upper staff,
> > but they can then be quickly moved to the lower staff (or vice versa)
> > with the arrow keys of the keyboard (see the image below)
> >
> > https://github.com/paopre/Spontini/blob/master/documentation/images/midiInput.gif
> >  
> > 
> >
> > https://github.com/paopre/Spontini/blob/master/documentation/miscellaneous.md
> >  
> > 
> >
> > HTH,
> > P.
> 



Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-19 Thread Paolo Prete
Hello Jan-Peter,

thanks for your contribution!
There's already a docker setup for the editor, similar to yours, together
with other very useful setups (ly2video, fonts etc.), made by Alexis:

https://github.com/jeandeaual/docker-lilypond/pulls

However, it's not pushed yet because we have to find a practical way to
solve an issue which appears in your setup too: the need to use the 0.0.0.0
address with HTTP, which could be unsafe.
It is possibile, with Spontini, to use certs, so to switch to HTTPS and
avoid this issue:

https://github.com/paopre/Spontini/blob/master/documentation/webserver.md

However, this could be a bit cumbersome with docker, because the user would
have to create certs and then push them to the container through some
command. If we find a shorter way to obtain a HTTPS setup it would be much
better.
I don't know if a sort of duckdns plugin can be a solution...
Please let me know if you have any idea about this.

Cheers
Paolo





On Saturday, February 19, 2022, Jan-Peter Voigt  wrote:

> Hello Paolo,
>
> I really like Spontini and created a docker setup to test it. I just
> started it again. It takes some time to build, but then one can use it
> from http://localhost:8000/spontini-editor/.
>
> Best
> Jan-Peter
>
> Am 11.02.22 um 00:33 schrieb Paolo Prete:
> > Hello,
> >
> > I have published a new version of Spontini-Editor (1.12-alpha): it is
> > still in the testing phase and therefore not available in the list of
> > releases, but it is already working and it can be downloaded from the
> > main project page.
> >
> > https://github.com/paopre/Spontini
> >
> > The important features of this version are:
> >
> > 1) support for PDF output, in order to speed up the compilation of
> > scores. Thanks to the PDF mode, instead of SVG, the compilation time
> > drastically decreases: once the score has been sketched it is possible
> > to switch to SVG mode, in order to complete it through tweaks with the
> > mouse.
> >
> > 2) MIDI input: it is now possible to enter notes / chords via a MIDI
> > device, using the Web MIDI API on both Chrome and Firefox. It is also
> > possible to insert these notes automatically in the tables for the
> > creation of piano / cross-staff music.
> > In this case the notes are automatically inserted in the upper staff,
> > but they can then be quickly moved to the lower staff (or vice versa)
> > with the arrow keys of the keyboard (see the image below)
> >
> > https://github.com/paopre/Spontini/blob/master/documentation/images/
> midiInput.gif
> >
> > https://github.com/paopre/Spontini/blob/master/
> documentation/miscellaneous.md
> >
> > HTH,
> > P.
>
>


Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-19 Thread Jan-Peter Voigt
Hello Paolo,

I really like Spontini and created a docker setup to test it. I just
started it again. It takes some time to build, but then one can use it
from http://localhost:8000/spontini-editor/.

Best
Jan-Peter

Am 11.02.22 um 00:33 schrieb Paolo Prete:
> Hello,
>
> I have published a new version of Spontini-Editor (1.12-alpha): it is
> still in the testing phase and therefore not available in the list of
> releases, but it is already working and it can be downloaded from the
> main project page.
>
> https://github.com/paopre/Spontini
>
> The important features of this version are:
>
> 1) support for PDF output, in order to speed up the compilation of
> scores. Thanks to the PDF mode, instead of SVG, the compilation time
> drastically decreases: once the score has been sketched it is possible
> to switch to SVG mode, in order to complete it through tweaks with the
> mouse.
>
> 2) MIDI input: it is now possible to enter notes / chords via a MIDI
> device, using the Web MIDI API on both Chrome and Firefox. It is also
> possible to insert these notes automatically in the tables for the
> creation of piano / cross-staff music.
> In this case the notes are automatically inserted in the upper staff,
> but they can then be quickly moved to the lower staff (or vice versa)
> with the arrow keys of the keyboard (see the image below)
>
> https://github.com/paopre/Spontini/blob/master/documentation/images/midiInput.gif
>
> https://github.com/paopre/Spontini/blob/master/documentation/miscellaneous.md
>
> HTH,
> P.



docker-compose.yml
Description: application/yaml
FROM ubuntu

RUN apt-get update
RUN apt-get install -y tzdata
RUN apt-get install -y python3 python3-tk python3-pip python3-venv git
RUN apt-get install -y lilypond
RUN useradd -ms /bin/bash spontini

USER spontini
WORKDIR /home/spontini

RUN git clone https://github.com/paopre/Spontini.git

WORKDIR  /home/spontini/Spontini

CMD python3 SpontiniServer.py nogui
#
# Created (28/11/2020) by Paolo-Prete.
# This file is part of Spontini-Editor project.
#
# Spontini-Editor is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Spontini-Editor is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Spontini-Editor. If not, see .
#

cli = {
  "app":"spontini_server_core:asgi",
  "host":"0.0.0.0",
  "port":8000,
# "ssl_keyfile":"key.pem",
# "ssl_certfile":"cert.pem",
  "log_level":"info",
  "timeout_keep_alive":1000
}


Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-12 Thread Thomas Scharkowski



> Am 12.02.2022 um 13:04 schrieb Paolo Prete :
> 
> Hello Thomas,
> 
> Spontini is not compatible with Safari, as specified on the homepage of the 
> project. Just use Chrome or Firefox.
> Note: if you use Firefox, you will see an alert popup which says there is a 
> MIDI issue. This happens because Firefox needs an addon in order to enable 
> MIDI input, but the editor works nevertheless and you can use it without 
> problems. Anyway, I removed that popup in the snapshot I put yesterday in 
> GitHub: so. if you use Firefox consider downloading it instead of the version 
> you downloaded two days ago. 
> Please let me know if it's all OK now.
> 
> Cheers,
> Paolo
> 
Hi Paolo,

I did what you suggested above (Firefox) - everything ok now.
:-)
Thomas


Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-11 Thread Paolo Prete
Thanks, I was not aware of it and I'll surely test it ASAP

Cheers,
P

On Fri, Feb 11, 2022 at 1:10 PM Jean Abou Samra  wrote:

> > Le 11/02/2022 11:07, Paolo Prete  a écrit :
> >
> >
> > Thanks for these infos.
> >
> >
> > 1) once I download a development snapshot, how can I test it?
>
>
> If you mean an unstable release, you cannot, since these
> aren't built with Cairo yet -- the switch to Guile 2
> and the new infrastructure for binaries was already enough
> for a single release. So if you want to test it (which
> will be very much appreciated if you can report any
> problems you find), you have to compile LilyPond yourself
> by following the procedure described in
>
> http://lilypond.org/doc/v2.23/Documentation/contributor/compiling
>
> To enable Cairo, you have to configure with
>
> ../configure --enable-cairo-backend
>
> and then you run with Cairo using
>
> lilypond --svg -dbackend=cairo file.ly
>
> (if you use --svg, -dbackend=cairo must be last).
>
>
> > 2) Is there a plan of when it will be included into a released version?
>
> I haven't followed this story very closely, but I guess
> it will be included at some point in this development
> series. When it will become the default is another question.
>
>
> > 3) Is it already well working, or is it in unstable/buggy state?
>
> Working quite well overall.
>
> Best,
> Jean
>


Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-11 Thread Paolo Prete
Hello,

I tested the editor on macOS Catalina, with LilyPond 2.22.0 from unofficial
64-bit app bundles and had no problems.

1) Which browser are you using?
2) Please can you paste the complete log of the SpontiniServer window on
the issues page of GitHub https://github.com/paopre/Spontini/issues (or pm
to my email)?

thanks

On Fri, Feb 11, 2022 at 11:18 AM Thomas Scharkowski <
t.scharkow...@t-online.de> wrote:

>
>
> > Am 11.02.2022 um 00:33 schrieb Paolo Prete :
> >
> > Hello,
> >
> > I have published a new version of Spontini-Editor (1.12-alpha): it is
> still in the testing phase and therefore not available in the list of
> releases, but it is already working and it can be downloaded from the main
> project page.
> >
> > https://github.com/paopre/Spontini
> >
> > The important features of this version are:
> >
> Hello,
>
> after installation I get an application window at
> localhost:8000/spontini-editor/, but cannot use it:
>
> "Error while connecting to SpontiniServer.“
>
> Did I miss something?
>
> Thomas
>
> macOS Monterey 12.1
> LilyPond 2.23.6
>
>


Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-11 Thread Jean Abou Samra
> Le 11/02/2022 11:07, Paolo Prete  a écrit :
> 
> 
> Thanks for these infos.
> 
> 
> 1) once I download a development snapshot, how can I test it?


If you mean an unstable release, you cannot, since these
aren't built with Cairo yet -- the switch to Guile 2
and the new infrastructure for binaries was already enough
for a single release. So if you want to test it (which
will be very much appreciated if you can report any
problems you find), you have to compile LilyPond yourself
by following the procedure described in

http://lilypond.org/doc/v2.23/Documentation/contributor/compiling

To enable Cairo, you have to configure with

../configure --enable-cairo-backend

and then you run with Cairo using

lilypond --svg -dbackend=cairo file.ly

(if you use --svg, -dbackend=cairo must be last).


> 2) Is there a plan of when it will be included into a released version?

I haven't followed this story very closely, but I guess
it will be included at some point in this development
series. When it will become the default is another question.


> 3) Is it already well working, or is it in unstable/buggy state?

Working quite well overall.

Best,
Jean



Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-11 Thread Thomas Scharkowski



> Am 11.02.2022 um 00:33 schrieb Paolo Prete :
> 
> Hello,
> 
> I have published a new version of Spontini-Editor (1.12-alpha): it is still 
> in the testing phase and therefore not available in the list of releases, but 
> it is already working and it can be downloaded from the main project page.
> 
> https://github.com/paopre/Spontini
> 
> The important features of this version are:
> 
Hello,

after installation I get an application window at 
localhost:8000/spontini-editor/, but cannot use it:

"Error while connecting to SpontiniServer.“

Did I miss something?

Thomas

macOS Monterey 12.1
LilyPond 2.23.6




Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-11 Thread Paolo Prete
Thanks for these infos.

1) once I download a development snapshot, how can I test it?
2) Is there a plan of when it will be included into a released version?
3) Is it already well working, or is it in unstable/buggy state?

Cheers,
P

On Friday, February 11, 2022, Jean Abou Samra  wrote:

> Le 11/02/2022 à 00:33, Paolo Prete a écrit :
>
>> 1) support for PDF output, in order to speed up the compilation of
>> scores. Thanks to the PDF mode, instead of SVG, the compilation time
>> drastically decreases: once the score has been sketched it is possible to
>> switch to SVG mode, in order to complete it through tweaks with the mouse.
>>
>
>
> For your information, a new backend for LilyPond has been developed
> over the last year, based on the Cairo library, which solves this
> problem (it makes PDF output a bit faster and brings SVG on par
> with PDF in speed). This is just a heads-up, since it not enabled
> in released versions yet.
>
> Best,
> Jean
>
>
>


Re: ANN: Spontini-Editor version 1.12-alfa

2022-02-10 Thread Jean Abou Samra

Le 11/02/2022 à 00:33, Paolo Prete a écrit :
1) support for PDF output, in order to speed up the compilation of 
scores. Thanks to the PDF mode, instead of SVG, the compilation time 
drastically decreases: once the score has been sketched it is possible 
to switch to SVG mode, in order to complete it through tweaks with the 
mouse.



For your information, a new backend for LilyPond has been developed
over the last year, based on the Cairo library, which solves this
problem (it makes PDF output a bit faster and brings SVG on par
with PDF in speed). This is just a heads-up, since it not enabled
in released versions yet.

Best,
Jean





ANN: Spontini-Editor version 1.12-alfa

2022-02-10 Thread Paolo Prete
Hello,

I have published a new version of Spontini-Editor (1.12-alpha): it is still
in the testing phase and therefore not available in the list of releases,
but it is already working and it can be downloaded from the main project
page.

https://github.com/paopre/Spontini

The important features of this version are:

1) support for PDF output, in order to speed up the compilation of scores.
Thanks to the PDF mode, instead of SVG, the compilation time drastically
decreases: once the score has been sketched it is possible to switch to SVG
mode, in order to complete it through tweaks with the mouse.

2) MIDI input: it is now possible to enter notes / chords via a MIDI
device, using the Web MIDI API on both Chrome and Firefox. It is also
possible to insert these notes automatically in the tables for the creation
of piano / cross-staff music.
In this case the notes are automatically inserted in the upper staff, but
they can then be quickly moved to the lower staff (or vice versa) with the
arrow keys of the keyboard (see the image below)

https://github.com/paopre/Spontini/blob/master/documentation/images/midiInput.gif

https://github.com/paopre/Spontini/blob/master/documentation/miscellaneous.md

HTH,
P.