如何生成在Java不同分贝纯音? [英] how to generate pure tones with different decibels in java?

查看:452
本文介绍了如何生成在Java不同分贝纯音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要生成在Java不同程度的分贝(分贝)纯音。在那里,如何做到这一点的例子吗?

i need to generate pure tones with different levels of decibels (dB) in java. is there any example of how to do this?

推荐答案

http://jsresources.org /examples/OscillatorPlayer.html 展示了如何创建纯正弦(或pretty以外的​​其他)波形,并播放它们。至于分贝,其幅度关系为分贝〜20 * LOG10(振幅),即幅度〜1​​0 ^(DB / 20),所以只是从计算。

This http://jsresources.org/examples/OscillatorPlayer.html shows how to create pure sinusoidal (or pretty much any other) waveforms and play them. As for decibels, their relation to amplitude is db ~ 20 * log10 (amplitude), i.e. amplitude ~ 10 ^ (dB/20), so just calculate from that.

这篇关于如何生成在Java不同分贝纯音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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