Re: embed lilypond into godot application

2023-07-27 Thread Pierre-Luc Gauthier
I know I'm dreaming here but here :
What about a live game engine that could render live "paper" music
about one measure in advance at a time ?

e.g.: live coding with SuperCollider :

https://youtu.be/bZ2Qh5_ff0A?t=4854

e.g. this SC code :
(
Pdef(
\fluteI,
Pbind(
\type, \LilyPondLiveEngraver,
\destination, \fluteIiPad,
\dur, Pwrand(
[1, 1/2, 1/4, 1/8, 1/16],
[10,8,6,4,3].normalizeSum, inf),
// \midinote, Pseq([36,37,38],inf),
\degree, Pxrand([0,1,2,3b,3s],inf),
\amp, 0.75,
\legato, Prand([1, 1/2,],inf)
)).play(quant: -5)
// ^ Schedule this to play in 5 bars from now;
)

Could possibly generate those bars :

{ c'1\f e'1 ef'2-. d'2 c'1 }.

We could compose live music with an orchestra and what not… Giving
sensors to people in the crowd for them to modulate the orchestra
(dynamics, color, harmonic density, etc).

Annex : This live coding excerpt is taken from a 7/8 measure bar of
"Oh No" harmonized and looped :
https://youtu.be/Q4OuWtqmGLI?t=64

Le jeu. 27 juill. 2023, à 10 h 08, Karlin High  a écrit :
>
> On 7/27/2023 12:52 AM, Stjepan Horvat wrote:
> > This is what i have made so far
>
> Looks very interesting. Is there any public website I can follow for
> that project?
> --
> Karlin High
> Missouri, USA
>


-- 
Pierre-Luc Gauthier



Re: embed lilypond into godot application

2023-07-27 Thread Karlin High

On 7/27/2023 12:52 AM, Stjepan Horvat wrote:

This is what i have made so far


Looks very interesting. Is there any public website I can follow for 
that project?

--
Karlin High
Missouri, USA



Re: embed lilypond into godot application

2023-07-27 Thread Knute Snortum
That is really cool!

--
Knute Snortum



On Wed, Jul 26, 2023 at 11:03 PM Stjepan Horvat 
wrote:

> This is what i have made so far:
> https://www.youtube.com/watch?v=1qOBSXolpbs
>
> The good idea about Godot is that you can create cross-platform
> applications. My target platforms are Linux and Android.
>
> On Tue, Jul 25, 2023 at 11:14 PM Jean Abou Samra 
> wrote:
>
>> Le mercredi 26 juillet 2023 à 01:54 +1000, Andrew Bernard a écrit :
>>
>> What is godot, if I may ask?
>>
>>
>> Presumably this thing?
>>
>> https://godotengine.org/
>> https://en.wikipedia.org/wiki/Godot_(game_engine)
>>
>>


Re: embed lilypond into godot application

2023-07-26 Thread Stjepan Horvat
This is what i have made so far:
https://www.youtube.com/watch?v=1qOBSXolpbs

The good idea about Godot is that you can create cross-platform
applications. My target platforms are Linux and Android.

On Tue, Jul 25, 2023 at 11:14 PM Jean Abou Samra  wrote:

> Le mercredi 26 juillet 2023 à 01:54 +1000, Andrew Bernard a écrit :
>
> What is godot, if I may ask?
>
>
> Presumably this thing?
>
> https://godotengine.org/
> https://en.wikipedia.org/wiki/Godot_(game_engine)
>
>


Re: embed lilypond into godot application

2023-07-25 Thread Jean Abou Samra
Le mercredi 26 juillet 2023 à 01:54 +1000, Andrew Bernard a écrit :
>  
> What is godot, if I may ask?

Presumably this thing?

https://godotengine.org/
https://en.wikipedia.org/wiki/Godot_(game_engine)



signature.asc
Description: This is a digitally signed message part


Re: embed lilypond into godot application

2023-07-25 Thread Andrew Bernard

What is godot, if I may ask?

Andrew

On 26/07/2023 12:40 am, Stjepan Horvat wrote:

Thank you. This was exactly what i needed.

On Mon, Jul 24, 2023, 10:30 Jean Abou Samra  wrote:

Le lundi 24 juillet 2023 à 10:09 +0200, Stjepan Horvat a écrit :


I'm trying to embed lilypond score into simple godot application
which would follow music.


Re: embed lilypond into godot application

2023-07-25 Thread Stjepan Horvat
Thank you. This was exactly what i needed.

On Mon, Jul 24, 2023, 10:30 Jean Abou Samra  wrote:

> Le lundi 24 juillet 2023 à 10:09 +0200, Stjepan Horvat a écrit :
>
> Hi guys,
> I'm trying to embed lilypond score into simple godot application which
> would follow music.
> One idea that comes to mind would be to have a single svg/png image and
> have positions (pixels) of each bar.
> Another idea would be to export each bar separately and then show
> corresponding bar when required. Or I could export each bar separately
> and then join them into single image which would give me bar positions.
>
> I didn't find a solution for for either.
> Is there a simple way to export the lilypond score as i require. Or do you
> have another idea?
> I remember that few years ago someone created a web application which
> follows lilypond score but could not find it.
>
>
>
> Check out ly2video, especially the code here:
>
> https://github.com/aspiers/ly2video/blob/master/ly2video/cli.py#L1322
>
> You may also want to look at the -dclip-systems option.
>
>
>


Re: embed lilypond into godot application

2023-07-24 Thread Jean Abou Samra
Le lundi 24 juillet 2023 à 10:09 +0200, Stjepan Horvat a écrit :
> Hi guys,
> I'm trying to embed lilypond score into simple godot application which would
> follow music.
> One idea that comes to mind would be to have a single svg/png image and have
> positions (pixels) of each bar.
> Another idea would be to export each bar separately and then show
> corresponding bar when required. Or I could export each bar separately and
> then join them into single image which would give me bar positions.
> 
> I didn't find a solution for for either.
> Is there a simple way to export the lilypond score as i require. Or do you
> have another idea?
> I remember that few years ago someone created a web application which follows
> lilypond score but could not find it.


Check out ly2video, especially the code here:

https://github.com/aspiers/ly2video/blob/master/ly2video/cli.py#L1322

You may also want to look at the -dclip-systems option.




signature.asc
Description: This is a digitally signed message part


embed lilypond into godot application

2023-07-24 Thread Stjepan Horvat
Hi guys,
I'm trying to embed lilypond score into simple godot application which
would follow music.
One idea that comes to mind would be to have a single svg/png image and
have positions (pixels) of each bar.
Another idea would be to export each bar separately and then show
corresponding bar when required. Or I could export each bar separately and
then join them into single image which would give me bar positions.

I didn't find a solution for for either.
Is there a simple way to export the lilypond score as i require. Or do you
have another idea?
I remember that few years ago someone created a web application which
follows lilypond score but could not find it.

Thanks