Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

曲线声波公式的由来? #2

Open
zhNirvanaRebirth opened this issue Dec 6, 2016 · 1 comment
Open

曲线声波公式的由来? #2

zhNirvanaRebirth opened this issue Dec 6, 2016 · 1 comment

Comments

@zhNirvanaRebirth
Copy link

你好,我想请问下在曲线声波绘制的时候的几个公式是怎么得来的呀?比如用到了Math.pow(1.22, n),15 * sin / paths.size(),其中的1.22和15是怎么得来的呢,考虑了半天没怎么理解~·~

@ws123
Copy link
Owner

ws123 commented Dec 13, 2016

最基本的是,正弦函数,但正统函数的振幅,它是一个抛物线函数。然后根据屏幕像素绘制出来的。中间,自己试验了很多次,比如一个屏幕显示两个周期等,这些都是自己慢慢调试出来的。调试的时候,一些变量是自己试出来的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants