Question

I am trying to build a small silverlight application to support some midi files as well. I've tried using the Media element, but I don't think that it can read midi files. Does any of you know a workaround, without the need to convert the midi file?

Was it helpful?

Solution

Silverlight doesn't support MIDI. There are a few ways you could handle this:

  • Decode the MIDI (using something like MIDI Toolkit) and synthesize the audio using a custom MediaStreamSource.
  • Decode the MIDI and use it to trigger MP3 samples.
  • Include another control in the page which can play MIDI, such as the Windows Media Player control.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top