Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needed timidity.cfg then fluid3gm.cfg #1

Open
shmup opened this issue Sep 3, 2024 · 1 comment
Open

Needed timidity.cfg then fluid3gm.cfg #1

shmup opened this issue Sep 3, 2024 · 1 comment

Comments

@shmup
Copy link

shmup commented Sep 3, 2024

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
Copy link
Owner

platers commented Sep 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants