Apps for alternative music notation systems

33 views
Skip to first unread message

Paul Morris

unread,
Oct 6, 2021, 9:58:39 PM10/6/21
to musicn...@googlegroups.com
Hi Stuart and Stephen,

Starting a new topic to continue the discussion of apps for alternative
music notation systems.

Thanks Stephen for the compliments on LilyBin + Clairnote.  Here are
some details on how it works.

LilyBin has two separate parts, an app/UI part that provides the user
interface and a service part that runs LilyPond "as a service" on AWS. 
I just created a custom version of the app/UI part.  It uses the
official LilyBin service part to run LilyPond.

For Clairnote support, when the user runs LilyPond my app checks the
LilyPond input for `\include "clairnote.ly"` and if it's there, it
replaces it with the full contents of the "clairnote.ly" file.  As if
you cut and pasted it into your LilyPond file.

That approach was a bit of a hack, out of expediency.  If I had time and
motivation, a better way would be to provide the "LilyPond as a service"
part and just put the "clairnote.ly" file in the directory of files that
LilyPond can include by default. Then the whole contents of the
"clairnote.ly" file wouldn't have to be sent over the wire every time
you run LilyPond.

I just looked at the LilyBin code to figure out how it worked. Here's
the source code for my version of it on GitHub (which is linked from
LilyBin + Clairnote):
https://github.com/PaulMorris/LilyBin/tree/clairnote

By the way, I wrote that "MNP-scripts.ly" file back in the day. Given my
current constraints I don't have time to work on providing support for
that, but I could answer questions if someone else wants to give it a go.

(FWIW, these days HackLily is apparently a better base than LilyBin to
build on top of.  See for example
https://github.com/LilyBin/LilyBin/issues/87 )

Cheers,
-Paul


On 9/28/21 12:30 PM, Stephen Pollard wrote:
> Hey Paul,
> Your setup with lily lilybin+clarinote looks great!
> Do you think you'd be able to set up the exact same thing but instead
of only allowing clarinote.ly to be imported, allow the MNP-scripts.ly
to be imported as well? Then one could select any notation from all
those alternative notations.
> Here's the link to the MNP-scripts
http://musicnotation.org/wiki/software-wiki/lilypond/
>
> Or perhaps it would be easiest to simply add the MNP-scripts.ly to
your already running instance of lilybin+clarinote.
>
> Also, how did you set up your own running version of LilyBin? Did you
use an online tutorial? It could save me hours of work setting up
something similar.
> Stephen
> On Tuesday, September 28, 2021 at 9:04:06 AM UTC-4 Paul Morris wrote:
>
>     Hi all,
>
>     In case some folks aren't aware of this.  LilyBin is an
open-source web app for LilyPond.  http://lilybin.com/
>
>     I created a version of LilyBin that supports Clairnote music
notation systems, building on the work I've done getting LilyPond to
produce Clairnote:
>
>     https://lilybin.clairnote.org/
>
>     https://clairnote.org/software/
>
>     See also the newer https://www.hacklily.org/ which offers
MusicXML import (using the conversion script that ships with LilyPond).
>
>     If I had infinite time I would make a version of hacklily that
supports Clairnote (to replace LilyBin + Clairnote).
>
>     -Paul
>
>

Reply all
Reply to author
Forward
0 new messages