TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Digital Music Couldn't Exist Without the Fourier Transform

43 pointsby xoherabout 10 years ago

8 comments

fl0wenolabout 10 years ago
A key insight for someone interested in this sort of thing not touched on in the article is the relationship between the fourier transform and a discrete consine transform.<p>JPEG uses DCT in particular because it has the nice property that the &quot;top left&quot; corner of the block will contain the DC offset (since cosine of 0 is 1) and the coefficients near the top corner correspond to half-wave and full cycles which gets you most of the way to simple gradients of color across the block with the right coefficients. So for most areas of an image only the top left coefficients will be significant. By using a zig-zag pattern for each block we are grouping the largest values to the front and zeroes to the back, which when coupled with RLE makes the rows of zero in each block a very compact, further-compressable representation.<p>Meanwhile, a fourier transform gives you imaginary magnitudes for frequencies which corresponds to the phase shift that is most appropriate for that frequency to match most strongly (as opposed to be aligned at the corner&#x2F;beginning of the integral window). Not useful in an image format where you won&#x27;t get the transformed magnitudes all nice and grouped for you. This is useful in audio compression where we care to find the location of transients that correspond to note attacks, percussion strikes, etc. Note that even in MP3 this is only used to drive the psychoacoustical model that decides the frame type and where to allocate the bits; the audio data itself is processed out of the time domain by overlapped DCT just like Ogg Vorbis.
评论 #9489215 未加载
kazinatorabout 10 years ago
Digital music could absolutely exist without the Fourier Transform.<p>The author should familiarize himself with the history of digital audio, and its milestones such as the development of the compact disc format: long before MP3, Ogg and the popularization of the Internet, and its use for media streaming.<p>At its bare bones, digital audio requires time domain sampling and reconstruction, sandwiched between some filters that can be analog. It requires understanding of the Nyquist limit, which can be purely in time domain terms (sampling frequently enough to avoid an temporal aliasing ambiguity in the reconstruction).<p>Digital <i>synthesis</i> of music can also be as simple as playing recorded samples in loops, and scaling them in the time domain for various pitches (or changing the sample rate, or both), which doesn&#x27;t require Fourier.
评论 #9488353 未加载
评论 #9488722 未加载
评论 #9489567 未加载
评论 #9488383 未加载
tacosabout 10 years ago
DCT, FFT, close enough I guess. No mention of Shannon or Nyquist?<p>Ugh, I see a trend starting here:<p>&quot;This is the first in a new experimental series called Favored Equation. Each month, we’ll dive into a piece of math which makes your life easier in some way without you even realizing.&quot;<p>This is a spin on <a href="http:&#x2F;&#x2F;objectsobjectsobjects.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;objectsobjectsobjects.com&#x2F;</a> by The Atlantic:<p>&quot;Object lessons: An ongoing series about the hidden lives of ordinary things.&quot;<p>I&#x27;m a fan of this type of writing. But when Sagan and Feynman did it -- hell when pornographers did it with OMNI Magazine -- it wasn&#x27;t quite so rough around the edges.<p>I&#x27;m now a month into arguing with some ex-Gawker hack at <i>The Atlantic</i> over quotes like &quot;New effects can change a guitarist’s playing ability completely&quot; and a declaration that the transistor was invented in the 1960s. No corrections or retractions imminent.<p>No interest in battling the newer, younger, even-less-experienced Gawker editor too.
评论 #9489119 未加载
cnvogelabout 10 years ago
...they could at least have used a proper example. Their &quot;squiggly sine lines&quot; don&#x27;t make sense at all:<p>&quot;&quot;&quot;But add them together, and that pleasant sounding chord actually looks altogether more messy, like this:&quot;&quot;&quot;<p>No, it doesn&#x27;t look like this, at all.
jrlockeabout 10 years ago
Or almost all forms of recorded audio for that matter. It is basically miraculous that a single speaker can create the impression of an orchestra; it obviously relies on an implicit instantiation of this same principle.
评论 #9488192 未加载
评论 #9488369 未加载
dwarmanabout 10 years ago
certainly could, and did. What enabled digitization and reproduction of digital audio were the works of Nyquist and Shannon, work that showed how it would work. FFT is an elaboration useful for filtering and spectrum contouring, and for compression. But &quot;Digital Audio&quot; is not a synonym for &quot;Compressed Digital Audio&quot;. And digitization had to be a precursor for applying an FFT filter to the digitized result. FFT is _not_ used to implement the digitization itself, and is useless on its own with the digitzed sample stream to work on.
adaml_623about 10 years ago
What about Wavelet transforms: <a href="http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wavelet_transform" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wavelet_transform</a> ?<p>I think it&#x27;s just a total different approach to compression that doesn&#x27;t use Fourier.
评论 #9489550 未加载
trhwayabout 10 years ago
complete space with an orthogonal basis ... without it digital music would be less of our worries (well, if &quot;we&quot; ever existed)