Skip to content

LexonBlackzz/PythonMIDIPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

PythonMIDIPlayer

Fast MIDI Player, written in Python. 🐇

Originally made as a funny project. It can load over 1 billion notes in under 20 seconds!

With the help of Anon64(Anon64#7195), Assile(Assile#2704), and Sono's MIDI parser written in Python (https://gist.github.com/SonoSooS/6ad345ef21bed2bb74c05d8b52c6fb82), this has become a reality.

How to play a MIDI?

Simply just drag your MIDI file into the python script. It's that easy!

Requirements

Required modules: pySDL2 (pip install pysdl2) (You also require to have SDL2.dll) and KDMAPI (pip install KDMAPI)

OmniMIDI Synth is required in order for it to work as it uses KDMAPI for clear, low latency sound.

LiMItAtiONS!!?!?!?!11111 😱

Most limiting factor here: after 70k NPS (Notes per Second), it may start slowing down, or earlier (Depends on your PC, and Python version)

The notes only go from up to bottom. (I cannot figure out how to make it hit a certain spot (because i don't know how to delay the audio.))

No piano, only falling notes.

This isn't some crazy polished work, it's just a little project. 😉

Help!! The program doesn't launch!!

You also need to install SDL2.dll. It should work if you put it in System32.

You are absolutely welcome to fork, and issue pull requests to make this little script better! 😊

About

Fast MIDI Player, written in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages