First of all, like Cal-linux mention in their comment, I would strongly suggest intermodulation distortion for the frequencies that are not multiple integers of the fundamental.
Now, regarding the sweep tone artefacts. Since you are talking about high frequencies we are talking about a high-frequency driver. Nowadays, most high-frequency drivers are domes ...
Both files play in the VLC media player. Looking at the coder information, the first "I downloaded one .wav format from internet" gets this (in French for the tags, sorry)
and the second one you created:
So likely, one in PCM encoded, the other is referred to as MPEG audio.
What is the best practice (and code solution) for detecting the onset of an impulse?
The waveforms for these pulses do not necessarily go to zero between impulses, in fact, they rarely do. The signal goes close to zero, but not precisely. (I expect this has something to do with ambient noise around the signal, but am not certain . . .)
Both of these ...
Yes. You can choose the µ parameter freely in µ-law encoding. So, there's as many different µ-law encodings as there are possible µ; of course, only very few are standardized.
The same applies to the A in A-law.
You might want to read the wikipedia articles on µ-law and A-law, instead of just the G.711 article.
The OP is trying to do what we would refer to as channel estimation. I am linking two posts below where this is all worked out in greater detail but do want to make the point first that the choice of "sounding pattern" is important. The channel can only be estimated where there is signal energy in the frequency domain, so the sine sweep is an ...
A couple of guesses
Your bandpass has about 20 dB of gain at the resonance frequency, so it's quite possible that you are clipping something downstream
You do block based processing: that means you need to carry the values of the state variable over from one block to the next. You only initialize on the first block
You will also get artifacts each time when ...