Answered by:
Playing MIDI in Windows Store Apps

Question
-
Just I am developing a Windows store app which generates program-inside MIDI files from graphic actions (Picture painting) which should be played then. Unfortunately, the MediaElement class cannot play MIDI files.
If the transcoding of MIDI to WAVE (or MP3 …) would be possible, then the transcodet WAVE (or MP3) could be played with MediaElement - but Windows.Media.Transcoder Class cannot transcode MIDI files.
Because the MIDI files are generated program-inside, the WindowsPreview.Devices.Midi API could be an alternative, while the MIDI messages timer-steered are sent directly. As far as I know the WindowsPreview.Devices.Midi API is able to serve only external (USB-) Devices, not the internal Device (= the sound card, i.e. the software Synthesizer).
At the moment my Windows store app generates in addition to the MIDI file (which cannot be played) a WAVE file which is played with the MediaElement class (this sounds give: Sine plus some overtones instead of real music instruments).
Neither with the MediaElement class nor with Windows.Media.Transcoder Class and also not with the WindowsPreview.Devices.Midi API it is possible to treat MIDI without external synthesizers devices.
This is an untenable state. I hope as well as many other users that Microsoft takes here immediately remedial action.
Yours sincerely
Afanassij
- Changed type Jamles HezModerator Monday, November 24, 2014 2:29 AM
Friday, November 21, 2014 2:34 PM
Answers
-
Hi Afanassij,
As I can see from the documentation: Supported audio and video formats, looks like MIDI is not supported in Windows Store App, therefore you cannot play MIDI file in MediaElement and even transcoding from MIDI to WAVE or MP3.
However I think it's a good idea for you to feedback to us via: https://wpdev.uservoice.com/, to support some old type of audio format (something like: https://wpdev.uservoice.com/forums/110705-dev-platform/suggestions/2595330-play-midi-sounds). Thanks for your understanding.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Edited by Jamles HezModerator Monday, November 24, 2014 2:28 AM
- Marked as answer by Afanassij Monday, November 24, 2014 3:16 PM
Monday, November 24, 2014 2:27 AMModerator
All replies
-
hi, somebody any suggestions or ideas?Sunday, November 23, 2014 6:38 PM
-
Hi Afanassij,
As I can see from the documentation: Supported audio and video formats, looks like MIDI is not supported in Windows Store App, therefore you cannot play MIDI file in MediaElement and even transcoding from MIDI to WAVE or MP3.
However I think it's a good idea for you to feedback to us via: https://wpdev.uservoice.com/, to support some old type of audio format (something like: https://wpdev.uservoice.com/forums/110705-dev-platform/suggestions/2595330-play-midi-sounds). Thanks for your understanding.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.- Edited by Jamles HezModerator Monday, November 24, 2014 2:28 AM
- Marked as answer by Afanassij Monday, November 24, 2014 3:16 PM
Monday, November 24, 2014 2:27 AMModerator