如何创建一个非常简单的在线混音器?
要求-
假设有一首歌有 4 首曲目。比如说吉他、贝斯、节奏和人声。您希望为用户提供在歌曲播放过程中静音/取消静音任何一个或多个曲目的选项。
你会如何在浏览器上创建这个简单的混合器(有点东西)? Javascript/jQuery?
附加信息 -
这 4 首曲目将作为各自时长相同的单独音频文件提供。
The requirements -
Suppose there is a song with 4 tracks. Let's say guitar, bass, rhythm and vocals. And you want to give the user an option to mute/unmute any one or more of these tracks during the course of the song.
How would you go about creating this simplistic mixer (kinda thing) on a browser? Javascript/jQuery?
Additional information -
The 4 tracks will be available as separate audio files of equal duration each.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里有一些关于使用 JavaScript 更改音频标签音量的好信息,也许会有所帮助:
http://www.position-absolute.com/articles/introduction-to-the-html5-audio-tag-javascript-manipulation/
我猜这个想法是单击静音按钮时将曲目的音量设置为零。并在再次点击时将其设置回原来的状态
There is some good info here regarding changing the volume of an audio tag with JavaScript, maybe it will help:
http://www.position-absolute.com/articles/introduction-to-the-html5-audio-tag-javascript-manipulation/
I guess the idea is that you set the volume of the track to zero when the mute button is clicked. And set it back to the original when it is clicked again