Hacker News new | ask | show | jobs
by janesconference 1405 days ago
What you did is essentially re-create an offline sampler using Python libraries. Professional samplers do pretty much the same - they take pre-recorded notes, choose which note to play depending on the MIDI message length and other user-provided info, then stretch or shorten the note with an algorithm that keeps the pitch. This sounds very good, I have to say, and could be the base for a general purpose library to write music.