Re: The search for an API

2018-04-11 Thread Mason Hock
On 04/11, Johan Vromans wrote:
> On Wed, 11 Apr 2018 07:07:10 -0700, Mason Hock  wrote:
> 
> > Is this the sort of thing you're looking for?
> > 
> > http://projectabjad.org/
> 
> When looking for an API that makes detailed handling of scores possible,
> yes.
> 
> However, I got the idea that OP was looking for an easy way to transform a
> LP "scorelet" into an SVG, something that can be quite trivially obtained
> by shelling out to LP.

Yes, it's because it's trivial that I assumed he was instead looking for a way 
to generate the lilypond code itself, but rereading the OP I think you're right.

Mason

> 
> This is exactly how tools like OOLilyPond do it.
> 
> -- Johan
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


signature.asc
Description: PGP signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-11 Thread David Kastrup
Helge Kruse  writes:

> Hi Mason,
>
> this is intentionally not to the Lilypond list to avoid unnecessary
> traffic in that list.

Congrats on the intent.

> I followed the link you posted. It doesn't address a sensible web
> site. All you can read is:
>
>   Web access is restricted. Please contact the administrator. (Parked Domains)
>   (If you feel this site has been improperly categorized, please visit
> here to submit a review.)
>
> Can you check the link at send a mail with the intended URL to the list?
>
> Best! Helge
>
> 2018-04-11 16:07 GMT+02:00 Mason Hock :
>> Is this the sort of thing you're looking for?
>>
>> http://projectabjad.org/

Huh.  Looks fine here.  Temporary outage?

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-11 Thread David Wright
On Wed 11 Apr 2018 at 17:48:06 (+0200), Helge Kruse wrote:
> Hi Mason,
> 
> this is intentionally not to the Lilypond list to avoid unnecessary
> traffic in that list.
> 
> I followed the link you posted. It doesn't address a sensible web
> site. All you can read is:
> 
>   Web access is restricted. Please contact the administrator. (Parked Domains)
>   (If you feel this site has been improperly categorized, please visit
> here to submit a review.)
> 
> Can you check the link at send a mail with the intended URL to the list?
> 
> Best! Helge
> 
> 2018-04-11 16:07 GMT+02:00 Mason Hock :
> > Is this the sort of thing you're looking for?
> >
> > http://projectabjad.org/

It's fine here, attached.

Cheers,
David.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-11 Thread Helge Kruse
Hi Mason,

this is intentionally not to the Lilypond list to avoid unnecessary
traffic in that list.

I followed the link you posted. It doesn't address a sensible web
site. All you can read is:

  Web access is restricted. Please contact the administrator. (Parked Domains)
  (If you feel this site has been improperly categorized, please visit
here to submit a review.)

Can you check the link at send a mail with the intended URL to the list?

Best! Helge

2018-04-11 16:07 GMT+02:00 Mason Hock :
> Is this the sort of thing you're looking for?
>
> http://projectabjad.org/
>
> Mason

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-11 Thread Johan Vromans
On Wed, 11 Apr 2018 07:07:10 -0700, Mason Hock  wrote:

> Is this the sort of thing you're looking for?
> 
> http://projectabjad.org/

When looking for an API that makes detailed handling of scores possible,
yes.

However, I got the idea that OP was looking for an easy way to transform a
LP "scorelet" into an SVG, something that can be quite trivially obtained
by shelling out to LP.

This is exactly how tools like OOLilyPond do it.

-- Johan

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-11 Thread Al Rushing


I suspect Python can do it.I plan on trying that in the future.

Python is C based.


Al.




 Original message 
From: David Kastrup <d...@gnu.org>
Date: 4/11/18 12:17 AM (GMT-08:00)
To: "Felix D." <felix.d...@gmail.com>
Cc: lilypond-user@gnu.org
Subject: Re: The search for an API

"Felix D." <felix.d...@gmail.com> writes:

> Hello Lilypond-Fans,
>
> I have a question: Does Lilypond have an API that can be simply called from
> other programs to render some markup (stored as a string) into a SVG file?
>
> We want to use Lilypond in an Unity app/game, wich will be used by many
> musicians and thus requires some decent staff rendering. We basically
> program in C#, but there is an easy bridge to interface with C/C++
> libraries. So calling an API should not be a huge problem, but does it even
> exist and is documented somewhere?
>
> I asked in the IRC a few hors ago, and received a brief "No, it doesn't
> exist". Bit is that really the abrupt end of the story, or is there some
> other possibility to call Lilypond from an external program?

There is no API.  You can call it on the command line.

--
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-11 Thread Mason Hock
Is this the sort of thing you're looking for?

http://projectabjad.org/

Mason

On 04/10, Felix D. wrote:
> Hello Lilypond-Fans,
> 
> I have a question: Does Lilypond have an API that can be simply called from
> other programs to render some markup (stored as a string) into a SVG file?
> 
> We want to use Lilypond in an Unity app/game, wich will be used by many
> musicians and thus requires some decent staff rendering. We basically
> program in C#, but there is an easy bridge to interface with C/C++
> libraries. So calling an API should not be a huge problem, but does it even
> exist and is documented somewhere?
> 
> I asked in the IRC a few hors ago, and received a brief "No, it doesn't
> exist". Bit is that really the abrupt end of the story, or is there some
> other possibility to call Lilypond from an external program?
> 
> Cheers
> Felix D.

> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user



signature.asc
Description: PGP signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-11 Thread David Kastrup
"Felix D."  writes:

> Hello Lilypond-Fans,
>
> I have a question: Does Lilypond have an API that can be simply called from
> other programs to render some markup (stored as a string) into a SVG file?
>
> We want to use Lilypond in an Unity app/game, wich will be used by many
> musicians and thus requires some decent staff rendering. We basically
> program in C#, but there is an easy bridge to interface with C/C++
> libraries. So calling an API should not be a huge problem, but does it even
> exist and is documented somewhere?
>
> I asked in the IRC a few hors ago, and received a brief "No, it doesn't
> exist". Bit is that really the abrupt end of the story, or is there some
> other possibility to call Lilypond from an external program?

There is no API.  You can call it on the command line.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-10 Thread Vaughan McAlley
On Wed, 11 Apr 2018, 08:17 Felix D.,  wrote:

> Hello Lilypond-Fans,
>
> I have a question: Does Lilypond have an API that can be simply called
> from other programs to render some markup (stored as a string) into a SVG
> file?
>
> We want to use Lilypond in an Unity app/game, wich will be used by many
> musicians and thus requires some decent staff rendering. We basically
> program in C#, but there is an easy bridge to interface with C/C++
> libraries. So calling an API should not be a huge problem, but does it even
> exist and is documented somewhere?
>
> I asked in the IRC a few hors ago, and received a brief "No, it doesn't
> exist". Bit is that really the abrupt end of the story, or is there some
> other possibility to call Lilypond from an external program?
>
> Cheers
> Felix D.
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond only has one "function", so you would be well on the way to
turning it into a library by renaming main() ;-)

Vaughan


>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: The search for an API

2018-04-10 Thread Carl Sorensen
From: "Felix D." 
Date: Tuesday, April 10, 2018 at 3:42 PM
To: 
Subject: The search for an API

Hello Lilypond-Fans,

I have a question: Does Lilypond have an API that can be simply called from 
other programs to render some markup (stored as a string) into a SVG file?

We want to use Lilypond in an Unity app/game, wich will be used by many 
musicians and thus requires some decent staff rendering. We basically program 
in C#, but there is an easy bridge to interface with C/C++ libraries. So 
calling an API should not be a huge problem, but does it even exist and is 
documented somewhere?

I asked in the IRC a few hors ago, and received a brief "No, it doesn't exist". 
Bit is that really the abrupt end of the story, or is there some other 
possibility to call Lilypond from an external program?

Lilypond does not have an API.

It is possible to call LilyPond from an external program using a shell command, 
because LilyPond has a command-line interface.

Look at the Lilypond Usage manual for information on command-line options. 
http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage

It will produce an svg file that you can then display.

HTH,

Carl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user