Is this wave interference? Sound mixing problem.

In summary: I guess you could say.It seems like when you have a very large number of very small waves mixed together, you can get a sort of pulsing or beating effect. I'm not sure if that's what you were expecting, but it's definitely there.I couldn't find any way to avoid it - it's just something that happens. I think the only solution would be to reduce the number of waves being mixed together.I've uploaded the files so you can see for yourself.In summary, this person's friend is helping with an art project and is using sound synthesis software. They have 400 channels of different frequencies and generate samples for each channel. They mix all the samples
  • #1
mmphs
2
0
This is my first post here, so hello to all.

I came here looking for advice. I am far for considering myself even a newbie regarding physics, I have huge gaps in knowledge. However, as I happen to "know my way around computers", I am helping my friend in her art project. Sparing you the details, my task is to synthesize sound basing on some numeric data.

I have 400 channels of deifferent frequencies (with equal interval between them), and I generate samples of say, 1 second sine wave for each channel. Then I mix all these samples to a "master sample" of one second, and concatenate all "master samples" I get to make a wave file. I am using sox (http://sox.sourceforge.net/) for sound synthesis. It all works pretty well up to the point of mixing. All the samples played separately sound just as sine waves would :). But while mixing even few of them, a strange (to me) phenomenon happens, sound starts to seem muffed/surpressed and a kind of vibrating effect happens.

Again, my lack of knowledge is a shame, but I tried to find an answer and from what I undestood, it might be a destructive wave interference. Am I right? If so, would you be able to suggest any way of avoiding this? I was expecting to receive a kind of noise as a result, but did not predict this to happen. I am attaching some samples so you could hear it for yourself.

Thanks in advance.
 

Attachments

  • sine_wave_samples.zip
    408.9 KB · Views: 193
  • mixed_sample.wav.zip
    170.6 KB · Views: 194
Science news on Phys.org
  • #3
DrClaude said:
Most probably due to beats:...
Have you looked at the waveforms?
The stuff I downloaded was so small amplitude I had to apply 100dB amplification to see the shape.
The 6, 135 and 295 files do seem sine waves of about 107 Hz, 485 Hz and 961 Hz give or take about 10%.
Obviously they will produce beats, but I don't think the waveform in file 1 looks like beats nor even beats of beats, etc. That would take more than 3 components I think.

What I suspect is rounding errors and word size limit effects. When you add numbers (digitised sounds) where one number is very much smaller than the other, the small number simply gets lost. At points where the larger sound wave is very close to zero and the smaller waves are near their maximum, then the result could be a real addition of all waves. In between, where the larger wave is much larger or the smaller waves are also near their zero, then only the larger wave appears in the mix. To be honest I still can't quite see how this gives the waveform of file 1, but that is the sort of thing I'd expect to see.

I haven't actually managed to recreate your 1 file yet, as I immediately amplified them and now need to download the originals again.. If I add the three original files after amplification, I get various results depending on the relative levels of each sine wave, but the mixtures are all sensible waves that you'd expect - nothing odd like your 1 file.

I would suggest you check the levels before adding them again.

PS. I've done the remix with originals and I don't get 1.wav, just what you'd expect. I'm still trying to work out how you upload such a file to show you. Maybe I'll have to send a screenshot of the wave.
 
Last edited:
  • #4
I see you zipped them, so I've followed suit.
 

Attachments

  • My1.zip
    76.8 KB · Views: 150
  • #5
Thank you for the replies!

I guess I was not specific enough - that's probably due to my English, I'm not used to speak about such topics. The three samples I've posted are only three random examples that are part of the mixed whole. Now I am uploading all 399 samples that got mixed to one file, so you can recreate this effect. The amplitudes are so low to avoid sox complaining about clipping. Frequencies are 80 - 1274hz (roughly 3hz interval). It really seems like beats, I've never heard about them though (I knew "beat" as in rhythm, a term used in music). I need to spend some time figuring this out :).

Here are the files (too big to uplad directly):

https://drive.google.com/file/d/0B8wABVTfnjYUS0Y0c3JMTEphVEU/view?usp=sharing
https://drive.google.com/file/d/0B8wABVTfnjYUNXBaQXh6a3ozTDA/view?usp=sharing
 
  • #6
Well, after a lot of investigation adding lots of sine waves together, I'm afraid I have to eat my words - it IS beats! I didn't think you could get such widely spaced and very large pulses, but you can. I have tried mixing sets of signals both in Audacity and numerically in Excel (sorry, I've no Matlab or other more suitable software handy at the moment) and found similar results with only a few closely spaced waves mixing. And deliberately adding rounding errors makes little difference to the pattern of the graphs, just makes them a bit ragged.

Because all the waves start at the same time, they are all in phase at 0 time and all add to produce a large wave. Quickly they move out of phase, no longer add so constructively, start to add destructively and stay that way for many cycles. But of course at the end of 1 sec they have all completed a whole number of cycles and are back in phase again. That explains the peak at the start and end of the second.
I was a bit surprised by the two peaks in between at 1/3 and 2/3 seconds. I thought there might be a smaller peak at 1/2, smaller yet at the thirds and so on. I think the big peaks at the thirds must be related to the 3Hz steps, but so far mathematical analysis has defeated me (but I am old and very out of practice with maths.) So I'm just cheating and doing lots of numerical experiments. If anyone is interested, I'll post some results later.
 

Attachments

  • 8wave_sum.docx
    316 KB · Views: 153
  • Like
Likes mmphs
  • #7
Thanks for the like.
I've dug out the other work I did. It's in the form of a .docx. Let me know if that's not good for you and I'll convert it to some other document format.
I've put a brief commentary with it, but very brief! (I did not know if anyone would be interested.)
NB. beats between two frequencies are actually produced by an average frequency, modulated at half the difference frequency. So 80Hz and 84Hz produces 82Hz modulated at 2Hz. BUT we hear this as 82Hz pulsing at twice this rate, 4Hz, because each cycle of modulation contains a positive and a negative 'bump'. In the document I refer to the pulse rate as the beat frequency, except for the very first example where I make a comment about this. So I talk as if 80Hz and 84Hz produce a 4Hz beat. (Don't worry about this, as it will make sense to most people, as written! I only comment on it to prepare for the uptight PF physicists taking me to task!)

(I can only get the first part to upload, so far. Perhaps the files are too big. I'll send the second part in another post if you want to see it.)
 

Attachments

  • BeatAnalysis.docx
    1.9 MB · Views: 212

Related to Is this wave interference? Sound mixing problem.

1. What is wave interference?

Wave interference is the phenomenon where two or more waves combine to form a new wave. This can result in either constructive interference, where the waves add up to create a larger amplitude, or destructive interference, where the waves cancel each other out.

2. How can I tell if I am experiencing wave interference?

If you observe two or more waves overlapping or interacting with each other, it is likely that you are experiencing wave interference. This can be visually seen as the waves creating a pattern of peaks and valleys, or audibly heard as a change in the perceived loudness or pitch of the sound.

3. Can wave interference occur with sound mixing?

Yes, wave interference can occur with sound mixing. When multiple sound waves are combined, they can interfere with each other and create a new, resulting sound. This can be intentional in music production, but can also cause unwanted effects if not carefully controlled.

4. How can I differentiate between wave interference and other sound problems?

Wave interference has a distinct pattern and can be identified by observing the interaction of two or more waves. Other sound problems, such as distortion or clipping, may have different characteristics and can be identified by analyzing the waveform or frequency spectrum of the sound.

5. How can I fix a sound mixing problem caused by wave interference?

The best way to fix a sound mixing problem caused by wave interference is to adjust the levels or frequencies of the individual sounds to minimize the interference. This can also be achieved by using equalization or other audio effects to control the frequencies of the sounds and prevent them from interfering with each other.

Similar threads

Replies
10
Views
927
Replies
53
Views
7K
  • Introductory Physics Homework Help
Replies
20
Views
2K
Replies
4
Views
936
Replies
31
Views
757
  • Biology and Medical
Replies
6
Views
443
  • Science Fiction and Fantasy Media
Replies
4
Views
1K
Replies
3
Views
2K
Back
Top