TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Diodes Hate It – Clipping with DSPs

54 点作者 razerbeans超过 2 年前

6 条评论

pjc50超过 2 年前
Clipping in the digital domain like this introduces an extremely hard corner, effectively corresponding to a set of signals near the sampling frequency and its harmonics that are required to perform the shaping. That&#x27;s where the &quot;interesting distortion&quot; comes from.<p>Real diodes are not quite as sharp, because there&#x27;s an exponential region between forward voltages of 0V and the forward voltage of the junction (~0.7V for P-N diodes, ~0.3 for Schottky).<p>And vaccum tubes are softer still, with a considerable rolloff region.
评论 #34094563 未加载
评论 #34094761 未加载
评论 #34098003 未加载
评论 #34094824 未加载
rerdavies超过 2 年前
Agree with all those who have raised the issue of problems with aliasing. Just to flush things out, it&#x27;s worth mentioning what effect aliasing has on the quality of the audio output. Nobody seems to have address that issue yet.<p>Aliasing causes higher harmonics to reflect at the Nyquist sampling rate and be heard as a signal with lower frequency. e.g. a 25khz signal with a sampling rate of 24khz will end up sounding like a 23khz signal instead. A 26khz signal will sound like a 22khz signal. And so forth. Because there are exponentially more harmonics as frequency increases, aliased harmonics can end up reflecting a startling amount of energy into audio frequency ranges, even if the amplitude of each harmonic is much lower than the amplitude of the fundamental harmonic.<p>Because the harmonics are reflected, they no longer form a harmonic series, so they end up adding a metallic sound to the overall output signal. The sound of inharmonic aliased signals alone is not unlike the sound of striking a metal dinner plate with a spoon, or a copper pipe with a wrench. Not a pleasant sound.<p>We have very inexact vocabularies for describing sound. But clipped signals with heavy aliasing are usually described in terms like the following: &quot;harsh&quot;, &quot;metallic&quot;, &quot;cold&quot;, &quot;fizzy&quot;.<p>In fairness, this is a toy example. One would hope that in a mature ecosystem, those few who are capable of doing the very significant heavy math lifting required to implement better clipping will contribute components that can be shared and reused by everyone.
评论 #34098423 未加载
razerbeans超过 2 年前
OP here! I&#x27;m admittedly new to the world of digital signal processing and don&#x27;t have a math background. But what I _do_ have is a background in programming and guitar effect pedal building.<p>My hope with this site and series is to get people like me exposed to the possibilities a little bit of code and a Teensy can unlock for them. The lower the barrier of entry, the more cool things people can create. :)<p>That being said, I&#x27;d love to get feedback on good sources to learn more about signal processing&#x2F;theory or any resources folks would suggest for covering the topic even better!
评论 #34096694 未加载
评论 #34097344 未加载
wyager超过 2 年前
I used the Teensy as a DSP platform for <a href="https:&#x2F;&#x2F;yager.io&#x2F;vumeter&#x2F;vu.html" rel="nofollow">https:&#x2F;&#x2F;yager.io&#x2F;vumeter&#x2F;vu.html</a><p>It did a great job! It has a lot of processing power and since it&#x27;s bare-metal, latency and variance concerns are easily avoided.<p>I was disappointed that there didn&#x27;t seem to be a good ecosystem of SPDIF&#x2F;Toslink-based audio I&#x2F;O for the Teensy, at least at that point. I had to make the Toslink hardware myself.<p>Toslink is an <i>awesome</i> connector for this type of thing, and I think it would be great if people started using it for Eurorack-style audio processing modules instead of analog signals.<p>You can get stereo pretty easily this way, and if someone could write up some ADAT lightpipe code, you could even get 8-channel polyphony!<p>Glad to see some posts about using Teensy for this purpose.
评论 #34095067 未加载
osigurdson超过 2 年前
Any waveform can be composed by a (sometimes infinite) series of sinewaves. The goal of distortion is to create a set of such sinewaves that sound pleasing to the ear. A much more complicated problem is to create such waveforms that fit optimally in a given mix with other instruments.
diydsp超过 2 年前
any indication of whether this introduces aliasing? which clipping alg is used?
评论 #34095937 未加载
评论 #34093853 未加载
评论 #34094811 未加载