dlib icon indicating copy to clipboard operation
dlib copied to clipboard

feature request: midi

Open SingingBush opened this issue 8 years ago • 2 comments

any plans for handling midi protocol?

SingingBush avatar Jan 25 '17 13:01 SingingBush

Do you mean only decoding MIDI files or playback also? It's not obvious how to do it under non-Windows OSes. AFAIK, it would require implementing a software synthesizer/SoundFont engine.

gecko0307 avatar Jan 25 '17 15:01 gecko0307

both midi files and midi devices. I was hoping to make use of an old Roland keyboard I have. In the past I've used C# when working with midi, I'd like to have another go at it using D

SingingBush avatar Jan 25 '17 16:01 SingingBush

Seems too domain-specific, so I'm closing this FR for now. It is not obvious how much of a music sequencer feature set should be implemented for adequate MIDI support. We can decode a file, but into what exactly? MIDI notes can be rendered differently depending on an instrument engine, there is no generic standard for that, and emulating hardware or adding pre-recorded samples are out of the question. Capturing MIDI also requires too specific machinery and abstractions that are outside the scope of dlib.

gecko0307 avatar Jun 03 '23 11:06 gecko0307