如何使音频波形? [英] How to render audio waveform?

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

问题描述


  1. 是否有任何音频/编程相关的堆叠交换的网站?

  2. 我试图使一个的WinForms 波形

  3. 我应该使用什么算法?

例如,如果我有每像素200个样品(垂直线),我应该吸取的最低,并从200个样本的部分最高的样本?或者我应该吸取低和高的样品平均?也许这两种不同的颜色?


解决方案

  1. 尝试dsp.stackexchange.com


  2. 在每像素200个样品中,有可以尝试几种方法。不管你做什么,往往效果最好绘制每个垂直线的上方和下方0,即。单独把正面和负面的采样值。也许最简单的是只计算一个RMS。在如此低的分辨率的峰值将可能给你波形的误导重新presentation。


  1. Is there any audio/programming-related stack-exchange site?
  2. I'm trying to make a wave form in WinForms
  3. What algorithm should I use?

For example, if I have 200 samples per pixel (vertical line), should I draw the lowest and the highest sample from that portion of 200 samples? Or should I draw average of low and high samples? Maybe both in different colors?

解决方案

  1. Try dsp.stackexchange.com

  2. At 200 samples per pixel, there are several approaches you can try. Whatever you do, it often works best to draw each vertical line both above and below 0, ie. treat positive and negative sample values seperately. Probably the easiest is to just calculate an RMS. At such a low resolution peak values will probably give you a misleading representation of the waveform.

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

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