如何为iPhone制作一个简单的音频均衡器?
我想为iPhone制作一个简单的音频均衡器,但我不知道如何开始。均衡器应该非常简单,只需改变低音、高音、失真,也许还有回声和合唱。 我该如何开始?也许示例代码会有所帮助。
I want to make a simple audio equalizer for the iPhone, but I don't know how to start. The equalizer should be really simple and just change bass, high, distortion and maybe echo and chorus.
How can I start? Maybe a sample code would be helpful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您正在考虑向 iPhone 应用程序(如 iPod 应用程序)的音频输出添加均衡器和效果处理器,我不相信您能够通过公共 API 实现这一目标。但如果您对处理来自 iPhone 麦克风的音频感兴趣,您的想法非常可行
。 DSP 充满了相当先进的数字信号处理,但也有许多新手问题可以得到有效解答。您关于均衡器和效果实现的问题已经被问过很多次了。
If you are thinking of adding an equalizer and effects processor to the audio output of an iPhone application like the iPod app, I don't believe you would be able to achieve that with public APIs. But if you are interested in processing audio from the iPhone's microphone, your idea is very feasible.w
The forum Comp.DSP is full of fairly advanced digital signal processing but has many novice questions that are answered effectively. Your questions about equalizer and effects implementations have been asked there many times.
首先,您对术语感到困惑。
均衡器只是改变音频通道的频率响应。它通常具有固定数量的频段,其单独的增益可由用户控制。
失真、回声、合唱等都是效果 - 在数字领域中,它们只是应用于音频通道以修改通过它的数据的算法。
因此,您需要决定您要设计的是什么:均衡器、某种效果处理小发明,或者可能是这些的某种组合。
一旦您对想要实现的内容有了粗略的设计,那么您就可以开始研究将用于实现该设计的各种算法。对于均衡器,您可以考虑进行频域滤波或实现时域滤波器组。对于效果部分,您需要对各种不同的效果及其实现方式进行一些研究,例如失真通常使用一些非线性传递函数来引入额外的谐波内容。
Firstly you're getting confused in your terminology.
An equalizer just changes the frequency response of an audio channel. It usually has a fixed number of frequency bands, whose individual gains can be controlled by the user.
Distortion, echo, chorus, etc are effects - in the digital domain they are simply algorithms that are applied to an audio channel to modify the data passing through it.
So you need to decide what it is that you are designing: an equalizer, some kind of effects processing gizmo, or maybe some combination of these.
Once you have a rough design for what you want to implement, then you can start work on the various algorithms that are going to be used to implement this design. For the equalizer you can consider either doing frequency domain filtering or implement a time domain filter bank. For the effects part you will need to do some research into the various different effects and how they are implemented, e.g. distortion usually uses some non-linear transfer function to introduce additional harmonic content.