混合多个声音剪辑
我正在尝试将六个声音剪辑混合在一起。
想象每个剪辑都是一个吉他弦拨动声音,我想将它们混合以产生吉他和弦。
这里,剪辑是 [-1,1] 范围内的实数数组,其中每个数字都是单声道样本。
double mixed_sample = mix(double sample1, ..., double sample6);
请实施mix
!
I'm trying to mix six sound clips together.
Imagine each clip is a single guitar string pluck sound and I want to mix them to produce a guitar chord.
Here, a clip is an array of real numbers in the range [-1,1], where each number is a mono sample.
double mixed_sample = mix(double sample1, ..., double sample6);
Please, implement mix
!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你一定是在开玩笑。
混合是信号的简单相加。
下一步是提供单独的通道增益。
当然,这对代码来说是一种痛苦,参数传递的开销会把你活活吃掉,但这基本上是你必须做的。
You have got to be kidding.
Mixing is simple addition of signals.
Next step is to provide individual channel gains.
Of course, this is kind of a pain in the ass to code, and the parameter-passing overhead will eat you alive, but this is basically what you have to do.