lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: I wrote a MIDI to Lily front end; also questions about video


From: Chris Korda
Subject: Fw: I wrote a MIDI to Lily front end; also questions about video
Date: Thu, 7 Dec 2023 02:43:35 +0000 (UTC)

Hi Stefano, 
I’m sure it would’ve been nicer, but life is short and I’m old, with way too many projects already (thirteen of them public, all FOSS). Thanks for the suggestions, but I’ve been programming in Windows since 1999, and wrestling with Linux is not on my bucket list. I agree that fragmentation is a problem. Recruit some young folks to fix midi2ly? Offer them free ponies? I don’t know.

Doesn’t LilyPond already contain python? There’s a python.exe in the bin folder, and it appears to run the python scripts that come with LilyPond, can I just use that to run ly2video? I’m guessing not because that would be too easy.
Chris

On Thursday, December 7, 2023 at 01:05:38 AM GMT+1, Stefano Antonelli <santonelli@algosolutions.com> wrote:


On Wed, 2023-12-06 at 17:21 +0000, Chris Korda wrote:
> I spent much of the last week converting my compositions from MIDI
> files to Lily format. I tried midi2ly first, but found it lacking,
> and decided to roll my own in C++. I gather there are other
> converters around, as I saw at least one on GitHub.

It probably would have been nicer to fix midi2ly.  It's been around for
a long time.  Fragmentation in the open source world is high and no one
benefits from it.

> My actual question regards video. I have investigated the various
> methods, and I'm considering rolling my own, partly because I'm

Again fragmentation is high.  There are at least 4 different projects
that do this in various ways.  Most use python and one uses
bash/scheme.


> reluctant to install Python, but also because it's an interesting
> problem. I tried outputting the score as one long strip, via ly:one-
> line-breaking, nice and easy. Presumably I could then scroll the
> resulting PNG file to generate video frames. But would I know the


ly2video already does it that way.  You can search for ly2video on
youtube and find some examples.  Like this:

<https://www.youtube.com/watch?v=vDOZZzbfL00>

I'm actually working on adding some new modes to ly2video right now.
Not for horizontal scrolling though.

The reason I'm working on ly2video is because it already supports midi
rubato.  Which I need to sync recorded audio to moving transcriptions.

For what it's worth, I despise python.  Rather than rolling my own
though, I decided to modify ly2video.

I'm not a Windows user anymore, so I don't know your Python pain.  For
end users of the program though it's possible to build a self contained
python executable.  I think this can be run through github actions too
(though I haven't done it).  So if properly set up, the end user just
downloads a windows binary and runs it.

For development, you can upload to github and download a build.  You
may not need to install Python.  It's a little slow.

Another option might be Windows Subsystem for Linux.  You should be
able to install Python there and work with it like the rest of us linux
people do.  I've never tried it though so I don't know if that's a good
option.

-Stef





reply via email to

[Prev in Thread] Current Thread [Next in Thread]