如何混合音频样本? [英] How to mix audio samples?

查看:151
本文介绍了如何混合音频样本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是不能完全编程有关,但尽管如此,我想到的是要问对了地方。

My question is not completely programming-related, but nevertheless I think SO is the right place to ask.

在我的节目,我产生一些音频数据和轨道保存为WAV文件。一切正常用一个声音发生器。但现在我想添加更多的发电机所产生的音频数据混合成一个文件。不幸的是比它更复杂,似乎一见钟情。
而且我没有找到如何搭配一组音频样本的很多有用的信息。

In my program I generate some audio data and save the track to a WAV file. Everything works fine with one sound generator. But now I want to add more generators and mix the generated audio data into one file. Unfortunately it is more complicated than it seems at first sight. Moreover I didn't find much useful information on how to mix a set of audio samples.

那么,有没有任何人谁可以给我建议?

So is there anyone who can give me advice?

编辑:

我用C ++编程。不过,这并不重要,因为我感兴趣的是背后的混合两种音频轨道理论。我的问题是,我不能只是总结的样本,因为这往往产生失真的声音。

I'm programming in C++. But it doesn't matter, since I was interested in the theory behind mixing two audio tracks. The problem I have is that I cannot just sum up the samples, because this often produces distorted sound.

推荐答案

我假设你的问题是,对于每一个音频源你,你有降低的水平。要添加

I assume your problem is that for every audio source you're adding in, you're having to lower the levels.

如果该应用程序将控制权交给用户,只是让他们直接控制的水平。辣味是他们的责任,不是你的。这是求和。

If the app gives control to a user, just let them control the levels directly. Hotness is their responsibility, not yours. This is "summing."

如果混合是自动的,你即将去一个旅程。你可能需要COM pression,如果没有限制。 (限制为com pression的极端版本​​。)

If the mixing is automated, you're about to go on a journey. You'll probably need compression, if not limiting. (Limiting is an extreme version of compression.)

需要注意的是什么,你做音频(包括COM pression和限制)是失真的一种形式,所以你将有音频的着色。您的选择COM pression和限制算法会影响声音。

Note that anything you do to the audio (including compression and limiting) is a form of distortion, so you WILL have coloration of the audio. Your choice of compression and limiting algorithms will affect the sound.

既然你不是实时生成的音频输出,必须做砖墙限制的可能性。那是因为你有水平的预知。实时限制是比较有限的,因为你不知道将会发生什么 - 你必须要反应

Since you're not generating the audio in real time, you have the possibility of doing "brick wall" limiting. That's because you have foreknowledge of the levels. Realtime limiting is more limited because you can't know what's coming up--you have to be reactive.

这是音乐,音效,人声,是什么?

Is this music, sound effects, voices, what?

这里处理这一切的时候。

这篇关于如何混合音频样本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆