News for hackers. Stuff that matters.
Re:Encoding Data in Dubstep Drops by marcan_42 on Friday January 15, 2021 @02:06PM (#25794837)
The way the author went about doing and explaining this is somewhat confusing. What he arrived through that strange band split/merge process is actually ~identical* to:

- Apply an EQ filter that lowers the volume of the 0-100Hz band by 6dB (this happened because he halved the amplitude of the 100Hz band)

- Add a slow binary digital signal at around ~4 baud (2Hz fundamental), with slopes smoothed to around 10% of the bit time.

This has nothing to do with dubstep or bass drops - it would work for any song. It's just modulating data in infrasound, at 2Hz, which is well below the threshold of human hearing. The problem here is that he's also needlessly reducing the level of the 0-100Hz band to half the amplitude (6dB), which completely kills the bass feel of the original song. Dubstep fans will not approve (and he needs better speakers if he can't hear the difference).

A much simpler, more sensible process would be to just do this:

- Apply a steep highpass filter at 20Hz (the limit of human hearing), to remove any inaudible low-frequency (infra)sounds.

- Reduce the volume of the overall song by, say, around 1dB, to make a bit of headroom for the modulated digital signal

- Encode whatever you want in those 20Hz in the headroom you created (the amplitude can be quite low, e.g. 5%, it doesn't need to move the whole waveform over).

Then to decode it just lowpass the signal at 20Hz and do your bit detection after that - the filter will remove the audio, leaving only your signal, so it doesn't matter that your signal isn't a whole 50% of the output power. Now the song is only 1dB quieter. You can use as simple or as fancy a modulation technique as you want in that 20Hz band. You could use (normal) ASK as he did, just lowpass it to remove any high frequency components. You could use FSK. You could use QAM. Whatever.

* His process actually also messes up the original 100Hz band by modulating it with a ~4Hz square waveform due to the way he does the modulation by inverting and interpolating, which is going to create harmonics and other ickiness around the transitions, as well as does not guarantee the absence of clipping due to the way he only reduced the amplitude of the low 100Hz band (this process can actually increase peak levels, as can happen any time you use frequency filtering - try his high-pass filter command on this file and watch sox complain of clipping, even though the original file does not clip: https://mrcn.st/t/filtering_clips.wav ), so I would not recommend trying to emulate his approach precisely even if you want to achieve the same actual effect, since it's actually quite a silly way of going about doing it :)

Re:Encoding Data in Dubstep Drops by TheOtherHobbes on Friday January 15, 2021 @07:03PM (#25798339)
It's not even dubstep/brostep related. It's also very inefficient.

The best picture/audio tool is probably Metasynth - as used by Aphex Twin. It's been around since the 90s and seems to be in development limbo at the moment, but with a bit of taming it will make all those classic dubstep/brostep sounds out of carefully selected images. Which can be graphic images of text.

https://uisoftware.com/metasynth/

Re:Encoding Data in Dubstep Drops by dylan604 on Friday January 15, 2021 @02:19PM (#25795009)
Isn't this precisely what some ad tracking people or rights management are doing? Aren't they adding audio that is out of range for human consumption but things like Alexa can hear them so that, or so the broadcaster can tell that a pub is broadcasting a match without paying for it, etc?
Re:Encoding Data in Dubstep Drops by marcan_42 on Friday January 15, 2021 @02:49PM (#25795413)
This kind of modulating data in infrasound or ultrasound is common, yes. It has been used in toys too, e.g. things that respond to certain sounds from a show. chibi-tech stuck some reverse engineered ultrasound triggers for a certain line of toys in some of her songs :)

https://twitter.com/chibitech/status/1237326756672983040

Infrasound only works digitally because no speaker system can reproduce frequencies that low, and many analog systems will corrupt them (e.g. AC coupling). Ultrasound is therefore used most of the time in practice, but I believe infrasound has been used in digital song watermarking for DRM/copyright tracking purposes.

Re:Encoding Data in Dubstep Drops by GuB-42 on Friday January 15, 2021 @05:24PM (#25797338)
Not really, unless you are doing a 1:1 digital copy, frequencies outside the range of human hearing are often removed.

Frequencies outside the range of a speaker are often filtered out as it can create distortion or even damage. And the job of lossy compression is to remove everything that you can't hear in order to save bytes, and limiting the bandwidth to what you can hear is the most basic step.

Instead, DRM systems typically encode data over a wide range of frequencies (spread spectrum), well within the audible range. It is designed in such a way that you could hear it in theory, but don't notice it because it blends with background noise. It is very robust, resisting compression, recording and even deliberate attacks. In fact, it is one of the techniques used by the military radios to resist jamming.

Re:Encoding Data in Dubstep Drops by _underfl0w_ on Friday January 15, 2021 @03:56PM (#25796323)
You can also trigger wake words like "Ok Google" or "Alexa" by using _harmonics_ of normal human voices that are outside the range of audible sound. The key is that the mic can't differentiate between the harmonics and actual speech of normal human pitch and so the trigger is set off, but the sound isn't audible to humans.

I don't have a link to the paper handy (sorry!) but IIRC I found a white paper on ArXiv called "Dolphin Attack" or similar that demonstrated this. It was a fun read.

Re:Encoding Data in Dubstep Drops by dylan604 on Friday January 15, 2021 @04:10PM (#25796547)
While technically that sounds like a cool hack, it sounds like a dumb thing to actually allow to happen. "Okay Google" or "Hey Alexa" outside of the frequencies reproducible by human voices should be filtered out completely. At least, from my comfy chair nit picking someone else's work. Of course, by not filtering the acceptable bands allows them to do all of the ad tracking/rights management things they are allowing to occur. The fact that Alexa/Google is able to do these ad tracking/rights management is just another example showing that the mic is listening 100% of the time.
Re:Encoding Data in Dubstep Drops by namibj on Friday January 15, 2021 @09:36PM (#25799435)
Last I looked, they used non-linear mixing in the analog circuity to down-convert ultrasonic audio into what looks like human speech to the devices.
Re:Encoding Data in Dubstep Drops by blovescoffee on Friday January 15, 2021 @04:20PM (#25796664)
Do you have a link? I assumed a low pass filter was applied to the signal to reduce unnecessary data transmission. I have heard about what you're saying and I'm not dismissing it. One could run their television through a low pass filter to get around such tracking, right?
Re:Encoding Data in Dubstep Drops by dylan604 on Friday January 15, 2021 @04:47PM (#25796979)
That's kind of what I was implying with one of my other replies. This filtering is something that Alexa/Googs should be doing on thier end. Their mics should only be listening in the frequency ranges of what human voices exist.
Re:Encoding Data in Dubstep Drops by IIAOPSW on Friday January 15, 2021 @02:21PM (#25795042)
The limit of human hearing is a bit above around 20KhZ. Emphasis on the K. It is totally possible to hear 20Hz noise. In fact 20KhZ is better for this because you can use a higher bit rate and that band is going to have very little intentional noise to begin with.
Re:Encoding Data in Dubstep Drops by marcan_42 on Friday January 15, 2021 @02:32PM (#25795192)
Wrong side of the spectrum. The lower limit of human hearing is 20Hz. It is not possible to hear <20Hz noise. It is, however, possible to feel it, if the sound pressure is loud enough and you actually have a subwoofer capable of reproducing those frequencies, but that is rather unlikely unless your subwoofer is a cut-out in your room's wall with a fan in it.

https://en.wikipedia.org/wiki/Rotary_woofer

If you feed a 20Hz signal to a typical home subwoofer (or even most club systems) and hear something, you aren't hearing 20Hz. You are hearing a bunch of high frequency rubbing noises as the speaker cone moves at 20Hz, trying and utterly failing to couple any amount of energy at that frequency into the air. This is why many songs these days are produced with "bass maximizers" and why modern laptops can sometimes have "decent bass". It's not bass, it's a filter that purposely distorts the bass, which your speakers can't reproduce, into higher frequencies, which it can and which we've learned to associate with heavy bass played through systems that can't reproduce it but distort instead.

Just for reference, I believe these are the subs we use at Euskal Encounter. I can vouch for the fact that they can make the floor shake in a massive event hall venue. Low end response: down to 28Hz. No more.

https://jblpro.com/en/products/vtx-b18

It is indeed better to modulate data in ultrasound since you have a lot more bandwidth - except for the fact that any lossy compression applied to your file is going to completely destroy your data. This is one thing the author got absolutely right.