Page 1 of 1

Inverting the audio spectrum

Posted: Wed Mar 05, 2014 3:56 pm
by svempa46
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

Re: Inverting the audio spectrum

Posted: Wed Mar 05, 2014 6:57 pm
by steve
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)

Re: Inverting the audio spectrum

Posted: Wed Mar 05, 2014 7:08 pm
by svempa46
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

Re: Inverting the audio spectrum

Posted: Wed Mar 05, 2014 7:55 pm
by steve
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

Re: Inverting the audio spectrum

Posted: Thu Mar 06, 2014 6:26 am
by svempa46
I understand the code line except the number "2" after mult. Please explain!

Re: Inverting the audio spectrum

Posted: Thu Mar 06, 2014 1:23 pm
by steve
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.

Re: Inverting the audio spectrum

Posted: Thu Mar 06, 2014 6:43 pm
by svempa46
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.