开发者

Play midi file on the iPhone

Is it possible to play 开发者_运维知识库.mid files directly via some API, or one have to convert the midi file to e.g. AAC first?


(2 years later…) You can use MusicPlayer and MusicSequence APIs. Available in iOS 5.


There is no Apple API for this. You could write your own, which i think would depend on what you are hoping it is going sound like.

There is lots of available source code for reading midi files and there are a few open source synths for the iphone - or you could use openAl for triggering samples. It probably isn't going to sound like Garageband tho.

If you want it to sound as good as possible you will have to convert it first.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜