All right - I needed to figure this out - otherwise I would have gone crazy slowly..
Distance attenuation of external sounds for aircraft and their strange behavior to just to cut off at a certain distance and it sounds like shit.
This is how I did it and it works:
Take your external sound loop as a WAV file that represents your full frequency spectrum as if you were standing right in front of the aircraft.
Then two copies of that file.
Rename them as for instance loop_high.wav, loop_mid.wav and loop_low.wav
Take your preferred audio editor that is capable of applying a filter (bell and cutoff - standard stuff)
File 1: loop_low.wav
Apply the following filter to it.
Fix the start and end of the sound so that it does not click.
This is done ramping up the first samples of the curve from zero dB to whatever dB you have at the end of your ramp and doing exactly the same at the end if the file, only that you need to ramp down there.
Scroll to the beginning of the file and zoom in
You can see that the firs sample is above 0 dB and we need to fix that. The curve needs to start at 0 dB and ramp up to the next high point, lets say - so we want to interpolate between 0 and whatever decibel we have at the end of the range.
Applying such a filter will give us a nice volume ramp.
The same thing needs to happen at the end of the file, just in the opposite order by ramping down if the last samples are above zero or up if they are below.
like that..
File 1: loop_mid.wav
Apply two filters this time.
A low high pass and a higher low pass or an equivalent bell filter. You need to select only the mid range and you should make sure, that you choose the same filter frequencies across all three files, otherwise you will loose frequency bands.
You need to make sure, that the loop does not click again by working on the starting and ending sample curves of the file.
File 1: loop_high.wav
This time we need to apply a high pass filter to only get the high frequencies of the file.

Here you most likely will not need to work on the ends of the file as the high frequency content does change so rapidly - the chances of a high difference in volume at both ends is really low and if it most likely is not audible. But check...
Applying those three files as mp_sound definitions.
What we now want to do is taking those three files, that represent the low, mid and high frequency components of our sound loop and use them according to the distance of the model to the listener.
If you are close to the model, you will hear a lot of high frequency components of the sound and as you move further away from the mode, the received sound will contain less and less of high frequency content and more of remaining low frequency content as low frequencies need less energy to be preserved along their translation through space.
We are creating three sound definitions:
<close>
<name>close</name>
<reference-dist>12</reference-dist>
<max-dist>3000</max-dist>
<mode>looped</mode>
<path>high_loop.wav</path>
...
</close>
<mid>
<name>mid</name>
<reference-dist>17</reference-dist>
<max-dist>8000</max-dist>
<mode>looped</mode>
<path>mid_loop.wav</path>
...
</mid>
<far>
<name>far</name>
<reference-dist>100</reference-dist>
<max-dist>14000</max-dist>
<mode>looped</mode>
<path>far_loop.wav</path>
...
</far>
Here the three loops are applied as the same sound type (the values are taken from my CH-47 models main external rotor sound loop)
The distance attenuation values are working well for loud aircrafts like a helicopter or a jet.
In the simgear code, the attenuation_factor is 0.3 and everything that I calculated, using the OpenAL inverse clamped distance model came to different attenuation curves so I needed to fiddle with the values but this seems to make sense in Flightgear.
If you try it out, you will hear all three components (all three files) when you are close to the aircraft.
As soon as you move away from it, those high frequencies will quickly fade out and you will only hear the mid and low range mixed together.
Moving away even further will fade out the mid
range sound and only the low end will remain as the only file, which is audible, will be the low_loop.wav.
You have to give all three definitions the same volume and pitch calculations of course and the conditions need to be the same.
If you have more than one external file that needs to fade out like this, you need to create three files and three sound definitions like above for them.
By this, we can create realistic audio for at least the major external audio component of an aircraft although admittedly it is a bit more work ;)
Cheers