Audio Signal Processing: changing spectrum directly

AI Thread Summary
Directly altering the frequencies in an audio signal's spectrum can lead to significant changes in playback characteristics. Adding zeroes to the end of the spectrum doubles the sample count, resulting in a time-stretched audio signal that plays at half speed. In contrast, interleaving zeroes within the spectrum also doubles the sample count but produces a time-stretched signal that plays normally for the first half and then reverses in the second half. The discussion highlights confusion regarding how these transformations affect frequency resolution, emphasizing that simply increasing sample count in the frequency domain does not alter frequency resolution. Understanding these concepts is crucial for effective audio signal processing.
Evertje
Messages
9
Reaction score
0
Hi all,

I'm having some trouble understanding the consequences of directly changing the frequencies in the spectrum of an audio signal. Let me give you an example:

Let's say I have some audio signal, which I convert to a spectrum (in LabView, using a
direct cosine transform (to avoid explicitly working with phases)). Then, when I have this
spectrum, I add a bunch of zeroes to the end (so that I exactly double the number of
samples). Now, since I've double the number of samples, my audio signal becomes twice
as long (same playback rate), and my sound has changed pitch. The problem with this is,
I don't see how the inverse transform exactly "strechtes'' the time signal.

Now, starting with the original spectrum again, I try to interleave the spectrum with zeroes (i.e. sample1, 0, sample2, 0, etc..). So the spectrum again becomes twice
as long, and so does my audio sample. But, my audio sample now has not changed pitch/speed,
and furthermore, the sample now contains the original twice! The second part is in
reverse, however...

I have been trying for some time to figure it out; In the process i have learned a great deal about phase vocoders etc. and all kinds of techniques to change pitch w/o changing speed and vice versa. Maybe I'm missing a crucial part of 'understanding'. I am also unable to link this to the frequency resolution. Since i know that
Freq.Res = 1/(Num.Samp. * dt),
increasing the number of samples also increases my freq. res.; But this has "no effect" if I increase the number of samples in the frequency domain, right?
 
Last edited:
Engineering news on Phys.org
Interleaving frequency spectra (audio)

Hi,

I have an audio signal, which I have transformed into the frequency domain. Let's say for simplicity that it contains 1024 samples, sampled at 1024 Samples/s. Now, as a first experiment I add 1024 samples (in the frequency domain!), all with zero amplitude. This has doubled the number of samples. When I transform this spectrum back into the time domain, my signal lasts twice as long (I expected this), but my signal is slowed down by a factor of two also. I would've guessed this based on the fact that the time domain signal will not contain zeroes also.. but I do not see how the inverse transform also 'stretches' the time signal so that it exactly fits twice.

The second experiment involves not adding the zeros to the end of the spectrum, but interleaving them. Again, my signal duration doubles, but now something completely different
happens. In the time domain, the signal first plays normally, but the second half of my audio sample now contains the original in reverse!

I have the feeling I'm missing something crucial.. I am not changing the frequency resolution by adding zeroes in the frequency domain, am I?

Thanks for any help in advance!
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top