Re: Midi2ly + Absolute Mode doesnt work

2024-11-06 Thread Joram Berger via bug-lilypond
Here it is now in the right repository: https://gitlab.com/lilypond/lilypond/-/merge_requests/2483 I added some more changes to make the file at least a bit more readable.

Re: Midi2ly + Absolute Mode doesnt work

2024-11-04 Thread Werner LEMBERG
> I looked a bit into it and it seems that it's an oversight when > moving on to Python 3. In line 204, the division should be an > integer division (note the double slash): > > o = self.pitch // 12 - 4 > > https://github.com/lilypond/lilypond/blob/master/scripts/midi2ly.py#L204 Thanks! Can y

Re: Midi2ly + Absolute Mode doesnt work

2024-11-04 Thread Joram Berger via bug-lilypond
I looked a bit into it and it seems that it's an oversight when moving on to Python 3. In line 204, the division should be an integer division (note the double slash): o = self.pitch // 12 - 4 https://github.com/lilypond/lilypond/blob/master/scripts/midi2ly.py#L204

Re: Midi2ly + Absolute Mode doesnt work

2024-11-04 Thread Joram Berger via bug-lilypond
Lucas Cavalcanti: s = s + "'" * commas In this script, commas should be an integer. I don't know why it is not, but you could change it to: s = s + "'" * int(round(commas)) for a quick workaround.

Midi2ly + Absolute Mode doesnt work

2024-11-04 Thread Lucas Cavalcanti
Hello. Everytime I invoke midi2ly with the absolute mode command it gives me an error message (check "terminal.txt" log below). It doesn't matter if the file is generated from Lilypond or any other software. Is this behaviour expected? I've tried asking the lilypond mailing list but got no response