拙网论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 201|回复: 0

Online Audio Frequency Signal Generator

[复制链接]

949

主题

1001

帖子

3736

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3736
发表于 2018-11-27 14:10:34 | 显示全部楼层 |阅读模式
https://www.wavtones.com/functiongenerator.php

Why do our test tones sound better?
Generating waveforms properly is not as easy as it seems. Any periodic signal with a discontinuity in its waveform (such as a square or a sawtooth) or a discontinuity in its waveform slope (such as the triangle wave) will be characterized by an infinite spectrum. Simple methods of digitally generating these waveforms will perform poorly, as frequencies higher than half the sampling rate will inevitably fold back into the audible spectrum. This phenomenon is known as aliasing.


Aliasing occurs even in the simplest of cases. The figure on the left shows what happens when the Digital-to-Analog (DA) converter receives a basic sequence such as a square waveform. The samples are perfectly aligned and the transition is sample-sharp. However, the reconstructed waveform is not what it seems. Among the various interconnecting possibilities for our samples, the DA converter will only reconstruct a waveform whose spectrum is limited to half the sample rate. Because the analog square waveform has frequencies extending to infinity, it cannot be a reconstructed waveform. The reconstructed waveform doesn't look square and its frequency content doesn't sound "square" either. The upper frequencies are missing and - even worse - new frequencies have been added! These frequencies arise from the particular shape and slope of the vertical transition, which depend on the actual sample rate.

Our tone generators have been designed to minimize those unwanted frequencies. When we generate a square tone, we synthesize a waveform that has been designed to sound as close as possible to the square tone, not the square waveform itself. Our samples are no longer aligned and the transition is smoothed so additional frequencies are not introduced. The result of this process is illustrated in the figure shown on the left side of this paragraph. Our waveforms may look worse, but they actually sound better!
A perfect square waveform supposedly only consists of odd harmonics. How does the output of our tone generator compare to other frequency generators? Take a look at the various spectrum views here and draw your own conclusions.

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|抱朴守拙BBS

GMT+8, 2025-5-26 02:59 , Processed in 0.196115 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表