呈现在iPhone上的波形 [英] rendering a waveform on an iphone

查看:131
本文介绍了呈现在iPhone上的波形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如果任何人有怎样去呈现一个音频文件的波形任何建议。我沃尔德想使用户能够设置一个进出音频轨道的点,我需要有一个波形,所以你能看到放点。

I was wondering if anyone has any suggestions on how to go about rendering a waveform of an audio file. I wold like to enable the user to set an in and out point of an audio track and I need to have a waveform so you can see where to put the points.

是否有任何可用的库这个还是需要成为一个完全自定义的解决方案吗?

Are there any libraries available for this or does it need to be a completely custom solution?

时它甚至被称为波形?也许有它一个更好的词,所以我可以做一些更多的搜索。

Is it even called a waveform ? Maybe there's a better word for it so I can do some more searching.

TIA!

推荐答案

我是从这个问题,因为它在这里也适用:

I'm reposting my answer from this question, since it applies here as well:

当显示音频波形,你会希望做一些对原始数据的数据减少了,因为有比屏幕上的像素的音频文件通常提供更多的数据。大多数音频编辑建立一个独立的文件(称为峰值文件或概要文件),其存储所述音频数据(通常是一个波形的峰和谷),用于在不同缩放级别的子集。然后,当你放大过去,你开始引用原始音频数据本身的某一点。

When displaying an audio waveform, you will want to do some sort of data reduction on the original data, because there is usually more data available in an audio file than pixels on the screen. Most audio editors build a separate file (called a peak file or overview file) which stores a subset of the audio data (usually the peaks and valleys of a waveform) for use at different zoom levels. Then as you zoom in past a certain point you start referencing the raw audio data itself.

下面是一些好文章在这:

Here are some good articles on this:

波形显示

建立一个音频波形显示

据源$ C ​​$ C推移,我会建议翻翻无畏源$ C ​​$ C。厚颜无耻​​的波形显示为pretty好,最有可能呈现的波形时,做了类似类型的数据减少了。

As far as source code goes, I would recommend looking through the Audacity source code. Audacity's waveform display is pretty good and mostly likely does a similar sort of data reduction when rendering the waveforms.

这篇关于呈现在iPhone上的波形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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