Hello! I'm not able to use the midi2ly program with absolute mode turned
on. With other arguments it works fine.

I have created a test file (et_tu_lily.ly), outputted the midi block and
then tried to import the midi file. With absolute mode turned off
everything works; with it on it fails and displays the following error:

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

Is the midi2ly program deprecated? Is this error common?
\version "2.24.4"

music = {\relative c'{
c8 d e f e d c4 c1
}}

\score { \music \layout {} \midi {} }

Reply via email to