NFJones / audio-to-midi

A python program which performs an FFT on an audio file and produces a MIDI file from the results.
MIT License
207 stars 30 forks source link

MemoryError #4

Open Jugbot opened 4 years ago

Jugbot commented 4 years ago

using vanilla audio-to-midi <file>


audio-to-midi PrototypeRaptor.wav
Converting: PrototypeRaptor.wav
|================================================================================| 100.00%
Traceback (most recent call last):
  File "C:\Users\Jugbot\AppData\Local\Programs\Python\Python37-32\Scripts\audio-to-midi-script.py", line 11, in <module>
  File "C:\Users\Jugbot\AppData\Local\Programs\Python\Python37-32\lib\site-packages\audio_to_midi-2019.3-py3.7.egg\audio_to_midi\main.py", line 113, in main
  File "C:\Users\Jugbot\AppData\Local\Programs\Python\Python37-32\lib\site-packages\audio_to_midi-2019.3-py3.7.egg\audio_to_midi\converter.py", line 268, in convert
  File "C:\Users\Jugbot\AppData\Local\Programs\Python\Python37-32\lib\site-packages\audio_to_midi-2019.3-py3.7.egg\audio_to_midi\converter.py", line 116, in freqs_to_midi
MemoryError

C:\Users\Jugbot\Documents\GitHub\Rhythm-Game\songs>
Jugbot commented 4 years ago

After switching to python 64bit (since 4GB memory wasn't enough) the program would not finish and only slowly decrease in memory usage from its peak.

FYI The song I was trying to convert was 4 minutes long.

AlexMeow commented 4 years ago

Same problem, and i was trying to convert a 4-minute-long song too.