MIDI
Generate MIDI in python
How to generate music with Python: The Basics | by Steve Hiehn | Medium
FlipperPA/midi-writer: A library to use Python to write MIDI files.
MIDI to audio
bzamecnik/midi2audio: Play and synthesize MIDI to audio - easy to use Python/CLI API to FluidSynth.
FluidSynth/fluidsynth: Software synthesizer based on the SoundFont 2 specifications
FluidSynth 软件使用教程(可以将 MIDI 转换为 WAV)-CSDN博客
Audio to MIDI
spotify/basic-pitch: A lightweight yet powerful audio-to-MIDI converter with pitch bend detection