bug-lilypond
[Top][All Lists]
Advanced

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

Midi2ly + Absolute Mode doesnt work


From: Lucas Cavalcanti
Subject: Midi2ly + Absolute Mode doesnt work
Date: Mon, 4 Nov 2024 06:03:19 -0300

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 on this topic.
Any help would be very much appreciated...

Best Regards,

TERMINAL.TXT:
 ~/Documents:$ midi2ly AbsoluteModeDead.midi
LY output to `AbsoluteModeDead-midi.ly'...

 ~/Documents:$ midi2ly -a AbsoluteModeDead.midi
Traceback (most recent call last):

  File "/usr/bin/../libexec/midi2ly", line 1329, in <module>
    main()
  File "/usr/bin/../libexec/midi2ly", line 1325, in main
    convert_midi(f, o)
  File "/usr/bin/../libexec/midi2ly", line 1128, in convert_midi
    s += t.dump(i)
         ^^^^^^^^^
  File "/usr/bin/../libexec/midi2ly", line 1045, in dump
    return dump_track(self.voices, i)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/../libexec/midi2ly", line 951, in dump_track
    s += '  ' + dump_voice(voice, skip)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/../libexec/midi2ly", line 843, in dump_voice
    lines[-1] = lines[-1] + dump_chord(ch[1])
                            ^^^^^^^^^^^^^^^^^
  File "/usr/bin/../libexec/midi2ly", line 756, in dump_chord
    s = s + dump(notes[0])
            ^^^^^^^^^^^^^^
  File "/usr/bin/../libexec/midi2ly", line 744, in dump
    return d.dump()
           ^^^^^^^^
  File "/usr/bin/../libexec/midi2ly", line 320, in dump
    s = s + "'" * commas
            ~~~~^~~~~~~~
TypeError: can't multiply sequence by non-int of type 'float'

%%
%%

ABSOLUTEMODEDEAD.LY

\version "2.25.20"
melody = {\relative c''{
c4 d8 e f g c1
}}
\score { \melody \midi {} }

Attachment: terminal.txt
Description: Text document

Attachment: AbsoluteModeDead.ly
Description: Text Data

Attachment: AbsoluteModeDead.midi
Description: MIDI audio


reply via email to

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