Inverting the audio spectrum

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
svempa46
Posts: 8
Joined: Wed Mar 05, 2014 3:43 pm
Operating System: Please select

Inverting the audio spectrum

Post by svempa46 » Wed Mar 05, 2014 3:56 pm

I have some very old audio files with Soviet cosmonauts talking in inverted spectrum voice. I used to have an analog device that did the unscrambling but it no longer exists. I understand that by inverting the sign of every second sample the spectrum will be inverted. Has anyone ever developed an add-on to Audacity to do this? If not, are there any similar add-ons whose code can be partly re-used to do this neat trick?

BTW the account of my old analog inversion device can be found here:

http://www.svengrahn.pp.se/trackind/scr ... ramble.htm

Sven

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Inverting the audio spectrum

Post by steve » Wed Mar 05, 2014 6:57 pm

I don't speak Russian so I don't know if this is intelligible or not.
unscrambled.flac
(165.98 KiB) Downloaded 204 times
I applied the following code using the Nyquist Prompt effect (http://manual.audacityteam.org/o/man/ny ... rompt.html)

Code: Select all

(lowpass8 (mult 2 (highpass8 s 300) (hzosc 3763)) 3100)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

svempa46
Posts: 8
Joined: Wed Mar 05, 2014 3:43 pm
Operating System: Please select

Re: Inverting the audio spectrum

Post by svempa46 » Wed Mar 05, 2014 7:08 pm

OK, so you implemenetd my hardware solution in code - clever. It sounds pretty good. One can fiddle around with filter edges and LO fx, but it should be good. I will try te other files I have got. Thanks a million. Have to read up more on the lisp syntax...

Sven

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Inverting the audio spectrum

Post by steve » Wed Mar 05, 2014 7:55 pm

It would be worth playing with the carrier frequency. I seem to be getting clearer speech with a slightly lower carrier frequency (around 3700 Hz).
svempa46 wrote:Have to read up more on the lisp syntax...
There's some reading material here ;) http://forum.audacityteam.org/viewtopic ... 39&t=77214
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

svempa46
Posts: 8
Joined: Wed Mar 05, 2014 3:43 pm
Operating System: Please select

Re: Inverting the audio spectrum

Post by svempa46 » Thu Mar 06, 2014 6:26 am

I understand the code line except the number "2" after mult. Please explain!

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Inverting the audio spectrum

Post by steve » Thu Mar 06, 2014 1:23 pm

svempa46 wrote:I understand the code line except the number "2" after mult. Please explain!
"Multiply by 2"

MULT can act on numbers or sounds.
When the there is (MULT number sound), each sample value of sound is multiplied by number.
In other words, the sound is amplified. In this case, by +6.0206 dB (x 2 on a linear scale).

http://www.cs.cmu.edu/~rbd/doc/nyquist/ ... l#index589
http://www.cs.cmu.edu/~rbd/doc/nyquist/part8.html#index589 wrote:(mult a [b ...]) [LISP]
Returns the product of a, b, ..., allowing mixed multiplication of sounds, multichannel sounds and numbers.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

svempa46
Posts: 8
Joined: Wed Mar 05, 2014 3:43 pm
Operating System: Please select

Re: Inverting the audio spectrum

Post by svempa46 » Thu Mar 06, 2014 6:43 pm

Yes, I understand "2" now. I have tried various settings by modifying your code snippet to make it better. For example 3740 Hz is a Little bit better in my view. 3700 Hz sounds a Little "Donald Duckish". I need to experiment with resampling the audio and filtering it before trying to invert. It is sort of unneccesary to have spectral components above 3.5 kHz or so, I guess. So maybe I should resample at 6000 or 8000 Hz? Many thanks again.

Post Reply