Skip to content

Comment on GNU Radio in the browser

Comments

That's certainly handy... here's a simple audio frequency shifter I threw together[1].

First it takes the audio from your microphone. It then feeds it through a Hilbert transform to convert incoming audio into an IQ (complex) format. The advantage of an IQ signal format is that when you multiply it by another signal, the frequencies add or subtract, without getting extra image frequencies. This is why it's worth doing twice the computation in DSP work.

Then your audio is multiplied by a cosine wave with a frequency determined by a GUI slider, from -2000 to 2000 Hz.

This has the net effect of raising or lowering the pitch of your voice, like tuning in a single sideband transmission on ham radio.

To get the results out to the speakers, it samples only the real component to send to the audio output.

The net effect is it can raise or lower the frequency of your voice.

[1] https://gnuradioworld.com/#fg=H4sIAAAAAAAACsVXS2_bOBC--1fMTR...

Hey this is Marc, I just posted your example flowgraph to the site, after adding some Time Sinks to visualize the sound. Should be under the Audio category of example flowgraphs. Really glad you played around with it!!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.