2025-11-23
pymidi.py -> First step: Exploring the opportunities of the Pygame MIDI module. This is an exercise for myself. I invite you to learn with me.
pymidi_stepUp.py -> Second step: Steps up the musical scale.
pymidi_Canon_D.px -> Third step: A little song "Canon in D"
Steps
- Install python on your computer.
- Make a folder for your new python project such as "pygameMIDI".
- Download pymidi.py in this folder
- Open your terminal or PowerShell.
- Change to your folder with "cd", for example: cd "F:\home\pikatchu\pygameMIDI"
- Make a new "Python Virtual Environments": py -m venv venv
- Activate the venv with: .\venv\Scripts\Activate
- Install Pygame: pip install pygame
- Run the file: py .\pymidi.py
Tip: in the venv folder is a example-file: F:\home\pikatchu\venv\Lib\site-packages\pygame\examples --> midi.py