platers / songpong

Synchronizing pong to music
MIT License
59 stars 2 forks source link

Needed timidity.cfg then fluid3gm.cfg #1

Open shmup opened 3 months ago

shmup commented 3 months ago

Howdy! So this is working for me, but here was my experience:

  1. pip install pygame numpy cvxpy mido then:
curl -o temp.mid -s https://bitmidi.com/uploads/72257.mid
python pong.py temp.mid
  1. pygame.error: Couldn't open timidity.cfg
dnf install timidity++
export TIMIDITY_CFG=/etc/timidity++.cfg
python pong.py temp.mid
  1. pygame.error: Couldn't open fluid3gm.cfg
export SDL_SOUNDFONTS=/usr/share/soundfonts/fluid3gm.cfg
python pong.py temp.mid
🎉🎉🎉

Figured you might know exactly what a system will need for midi playback, and also curiously, why I had to specify both? I imagine it didn't actually use both timidity and fluid3gm. Anyways, opening this for clarity and potentially an updated README

platers commented 2 months ago

I'm not sure about the requirements for pygame. I tried a few midi players, and found pygame supported more of the midi's I tested than others.