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.

A hidden gem in sound symmetry

201 pointsby gbh444gover 4 years ago

16 comments

gbh444gover 4 years ago
Hi HN, author here. A few comments on how I came up with this idea. I&#x27;ve been trying to find a &quot;proper&quot; connection between audible sound and visible shape, a connection that would not only preserve all the information, but would also properly visualize the &quot;symmetry&quot; in sound, so that messy sound would turn into messy images and harmonic sound would turn into visually appealing images. The latter part is hard, as perception of &quot;musical harmony&quot; is vaguely defined and subjective. Nevertheless, after quite a few attempts, I came across a particularly simple FFT-based technique that produces impressive and unexpected results. Below is the summary of my finding.<p>Music is a temporal ornament. There are many types of ornaments, e.g. the 17 types of wallpaper tesselations, but few of them look like music. However there is one particular type of ornament that resembles music a lot - I mean those “mandala” images. I don’t know how those are produced, but I noticed a connection between those images and music:<p>- The 1st obvious observation is that a mandala is drawn in polar coordinates and is 2PI periodic. Sound is periodic too, so I thought the two facts are related.<p>- The 2nd observation is that patterns on those images evolve over the radial axis. Ans so is music is a sequence of evolving sound patterns.<p>- The 3rd observation is that a 2PI periodic function trivially corresponds to a set of frequencies. We usually use FFT to extract the frequencies and another FFT to restore the 2PI periodic function. Thus, a single radial slice of a mandala could encode a set of frequencies. If this is correct, a mandala is effectively an old school vinyl disk.<p>Putting these observations together, we naturally arrive with the idea of using ACF. More details in the linked github project.
评论 #25040990 未加载
评论 #25040805 未加载
评论 #25043571 未加载
评论 #25042273 未加载
评论 #25041783 未加载
评论 #25040482 未加载
评论 #25044485 未加载
评论 #25043123 未加载
评论 #25041220 未加载
评论 #25041179 未加载
MauranKilomover 4 years ago
I&#x27;m very interested in this, but I can&#x27;t seem to get the demo page working in latest Firefox:<p>&gt; AudioContext.createMediaStreamSource: Connecting AudioNodes from AudioContexts with different sample-rate is currently not supported.<p>Edge worked though. Didn&#x27;t try Chrome.<p>Edit: This is beautiful!<p>I have checked out a variety of songs, and I feel the visualization is rather dominated by whatever frequency is loudest. (E.g. bass sound -&gt; three- to five-fold symmetry and most detail obscured by it).<p>Have you considered applying something like the <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Equal-loudness_contour" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Equal-loudness_contour</a> somewhere in the process to more evenly weight the frequency contributions according to human hearing perception? Not sure if would have the intended effect, but I&#x27;d be curious what happens.
评论 #25042598 未加载
评论 #25041690 未加载
beefmanover 4 years ago
Autocorrelation has been used in psychoacoustics at least since Licklider&#x27;s work in the 1950s. But I&#x27;m not sure if I&#x27;ve seen this style of visualization before. It looks a bit like the output of a strobe tuner.
ogigover 4 years ago
I&#x27;ve been playing some music on the livedemo. I like it a lot. The harmony changes are easy to see as concentric slices slighty rotated. On heavy drum music the rythm also leaves a trail of spaced circles easy to recognize. You might be onto something here. Colored waveforms, like those used in djing software, might be better for locating a point in a song, but I&#x27;ve never been able to locate a chord change on those based on the waveform representation alone. I would totally love to try to &quot;mix&quot; some of those mandalas, or try an editor software using this visualization where I can move around a virtual needle, copy paste slices, etc. Not saying It will be better than using a waveform, but I would experiment with it given the chance.<p>Very nice job, congratulations!
friendlybusover 4 years ago
Seems to work really well! Playing Gasoline by Audioslave, it really misses the high intensity peaks.<p>It interprets the trumpet in Miles Davis - It Never Entered my Mind as dark ripples and is beautiful in it&#x27;s own way.<p>It&#x27;s a long way from the last time I used a visualizer on Winamp, nice!
评论 #25041733 未加载
gnunezover 4 years ago
Is this somehow related or similar to oscilloscope music? <a href="https:&#x2F;&#x2F;youtu.be&#x2F;qnL40CbuodU" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;qnL40CbuodU</a>
IndySunover 4 years ago
Interesting maths. I&#x27;m enjoying the graphics, they are beautiful to watch unfold, but bear little relation to the full range that is heard in the audio examples. Not in volume, or varying pitch. This technique seems to be a way of showing an aspect of sound via graphics that mean the two are unrelated in immediately meaningful ways. The word &#x27;Periodic&#x27; is mentioned, but that isn&#x27;t seen.<p>Still, great experiment, and interesting results!
polyterativeover 4 years ago
I wish I could have seen an image of noise for comparison.
totalZeroover 4 years ago
Would love to see this applied to financial price signals.
mattdeslover 4 years ago
Very nice. Curious how colors are chosen?<p>Can’t try it on my dated iPhone - you need to vendor prefix the AudioContext with webkitAudioContext if AudioContext is undefined.
评论 #25041157 未加载
hiisukunover 4 years ago
Somehow I have memories of the 1990s and audio visualisations coming back... Fantastic. I&#x27;d love to be able to plug this into mpv for playing audio files. I wonder how hard this would be (or how many resources it would use...).<p>I really enjoyed your work: the write-up was clear and the demo page worked well.
评论 #25042675 未加载
temp0826over 4 years ago
Images reminded me of cymatic patterns. I wonder if there is any relation there
评论 #25041755 未加载
tandavover 4 years ago
Very great work. I&#x27;m also interested to see this patterns &quot;unrolled&quot;. Not on a circle but on timeline (like spectrogram). Where x-axis is time and y-axis is unrolled pattern (0..2pi).
评论 #25050140 未加载
andromeduckover 4 years ago
It would be nice if the demo had more than one reference sound.
aidenn0over 4 years ago
Oh man, I put &quot;Superheroes&quot; by &quot;Daft Punk&quot; on this and was just hypnotized by the visualization.
dharma1over 4 years ago
beautiful. What&#x27;s the demo soundtrack?
评论 #25040652 未加载