[英]Cross-platform MIDI in the website
I'm creating an ear training website for musicians. 我正在为音乐家创建一个耳朵训练网站。 In PHP, it generates simple MIDI file with an error (out-of-tune tone) which the user has to correct. 在PHP中,它会生成简单的MIDI文件,并带有用户必须纠正的错误(音调过高)。 It saves the MIDI file and the user should play it. 它会保存MIDI文件,用户应该播放它。 Here, the funny part begins. 在这里,有趣的部分开始了。
Problems: 问题:
What I tried: 我试过的
<embed>
and <object>
- this way you let browser choose the plugin. <embed>
和<object>
-通过这种方式,浏览器可以选择插件。 It's inconsistent and you lose most control over the playback (not mentioning the visual side) 这是不一致的,您无法完全控制播放(更不用说视觉效果了)
<audio>
- doesn't support MIDI at all <audio>
-完全不支持MIDI
QuickTime in combination with antique AC_QuickTime.js 1.2, which uses <embed>
and <object>
dynamically - but I don't want to annoy users with installing extra plugin. QuickTime与古董AC_QuickTime.js 1.2结合使用,后者动态使用<embed>
和<object>
-但我不想让用户安装额外的插件烦人。
Question: 题:
Is there any other approach/technology I could use? 我可以使用其他方法/技术吗?
So I've finally set up a VPS, installed timidity and lame and everything works like charm. 因此,我终于设置了VPS,安装了怯tim和la脚的系统,一切都变得魅力十足。 Results here: yesmaestro.com 结果在这里: yesmaestro.com
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.