Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果可以相当容易地导出波形以便以后可以绘制它(例如使用 Canvas 可视化),那也很棒。
澄清一下:我希望能够听到X Hz 波,最好画出来。
for (double t = 0.0; t < maxTime; t += dt) { double value = amplitude*sin(2.0*Math.PI*frequency*t); }
将值输出到您选择的波形格式或绘图程序中。