Re: [Flightgear-devel] New Wind Sound

2001-11-26 Thread Erik Hofman

Julian Foad wrote:


> As for the difference between your wind.wav and the one from CVS, I think your one 
>does sound better (ignoring the high pitched whine), but I'm really not sure.  It has 
>stronger low frequency components, and I feel that they better represent the wind 
>turbulence and buffeting.


I've uploaded (yet another ...) wind.wav file at 
http://www.a1.nl/~ehofman/fgfs/download and I have the feeling this one 
addresses all the subjects discussed here.

I would appreciate it if anybody want's to try it and give their opinion.

Erik






___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] New Wind Sound

2001-11-21 Thread Mally

Erik

> Do you think it sounds okay otherwise (like the real thing?).

I'm not really qualified to say if it sounds like the real thing or not.  I can
give you my subjective opinion, which is that yes, it does sound OK, but I
haven't listened to it in fgfs because I haven't done a build in over the past
few weeks.

Mally



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] New Wind Sound

2001-11-21 Thread Erik Hofman

Mally wrote:

> Erik wrote:
> 
>>I've uploaded a renewed wind.wav file and a patch to FlightGear at:
>>http://www.a1.nl/~ehofman/fgfs/download/
>>
>>I'm quite pleased with this one.
>>Could you please tell me what you think about it?
>>
> 
> The first thing I noticed when I played the wave file was an audible
> high-pitched whistle in the mix. In my wave file editor, it shows up strongly as
> a straight line at around 8kHz on a frequency vs time graph.  You could remove
> it with a notch filter at around that frequency, but it would be better to
> remove it at source if possible.


Ok, I will check this and see if i can remove it.
Do you think it sounds okay otherwise (like the real thing?).

Erik






___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] New Wind Sound

2001-11-20 Thread Mally

Erik wrote:
> I've uploaded a renewed wind.wav file and a patch to FlightGear at:
> http://www.a1.nl/~ehofman/fgfs/download/
>
> I'm quite pleased with this one.
> Could you please tell me what you think about it?

The first thing I noticed when I played the wave file was an audible
high-pitched whistle in the mix. In my wave file editor, it shows up strongly as
a straight line at around 8kHz on a frequency vs time graph.  You could remove
it with a notch filter at around that frequency, but it would be better to
remove it at source if possible.

Mally



___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] New Wind Sound

2001-11-20 Thread Erik Hofman


Alright,

I've uploaded a renewed wind.wav file and a patch to FlightGear at: 
http://www.a1.nl/~ehofman/fgfs/download/


I'm quite pleased with this one.
Could you please tell me what you think about it?

Erik


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] New Wind Sound

2001-11-19 Thread Erik Hofman

Andy Ross wrote:

> Erik Hofman wrote:
> 
>> I'v uploaded a new wind.wav file 
>> at:http://www.a1.nl/~ehofman/fgfs/download/
>> Before you can use it you have to aplly a small patch.
>>
>> > +  _crank->set_pitch(1.9);
>> > > [...]
>> > > +  float airspeed_kt = cur_fdm_state->get_V_equiv_kts();
>> >if (rel_wind > 60.0) {// a little off 30kt
>> > -float volume = rel_wind/1200.0;// FIXME!!!
>> > +float volume = rel_wind/300.0;// FIXME!!!
>> > +double pitch = 1.9*(airspeed_kt/67.0);
>> >  _wind->set_volume(volume);
>> > +_wind->set_pitch(pitch);
> 
> 
> These patches simply look like you're changing unit conventions.  The
> default pitch of the sample is different, and the volume is scaled
> differently.  Why not just fix that in the sample instead?  Even


Can't be done. The audio energy of the default sound is much higher than 

the one i have suplied (and remember this is a logarthmic scale ...)


> better would be coming up with a "standard" for sound samples, so that
> they can all work identically with pitch shifting.  Or better still
> would be a soft-coded XML description that tells the engine when and
> how to play each sound.  But replacing one set of magic numbers (1 and
> 300) with another (1.9 and 1200) is probably not the right way to go.


I know. There is even another problem. The wind sound is caused by the 
aircrafts haul. Imagine the differences between the X-15 and the Cessna 
172. This requires formula translation from XML code ...


> 
> Also, I suspect that you want the rel_wind parameter, and not V_equiv.


As far as I knw the pitch is relative to the aircrafts air-speed (and 
maybe the wind speed, but since it would normally be far less than the 
aircrafts speeds this can be neglegtet IMHO).


> The rel_wind is direction-independant, while V is the forward airspeed
> only (it's for display on the airspeed gauge, etc...).  Think of a
> gusting crosswind while sitting on the runway during a storm.



Erik


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] New Wind Sound

2001-11-18 Thread Andy Ross

Erik Hofman wrote:

> I'v uploaded a new wind.wav file at:http://www.a1.nl/~ehofman/fgfs/download/
> Before you can use it you have to aplly a small patch.
> 
> > +  _crank->set_pitch(1.9);
> > 
> > [...]
> > 
> > +  float airspeed_kt = cur_fdm_state->get_V_equiv_kts();
> >if (rel_wind > 60.0) {   // a little off 30kt
> > -float volume = rel_wind/1200.0;// FIXME!!!
> > +float volume = rel_wind/300.0; // FIXME!!!
> > +double pitch = 1.9*(airspeed_kt/67.0);
> >  _wind->set_volume(volume);
> > +_wind->set_pitch(pitch);

These patches simply look like you're changing unit conventions.  The
default pitch of the sample is different, and the volume is scaled
differently.  Why not just fix that in the sample instead?  Even
better would be coming up with a "standard" for sound samples, so that
they can all work identically with pitch shifting.  Or better still
would be a soft-coded XML description that tells the engine when and
how to play each sound.  But replacing one set of magic numbers (1 and
300) with another (1.9 and 1200) is probably not the right way to go.

Also, I suspect that you want the rel_wind parameter, and not V_equiv.
The rel_wind is direction-independant, while V is the forward airspeed
only (it's for display on the airspeed gauge, etc...).  Think of a
gusting crosswind while sitting on the runway during a storm.

Andy


-- 
Andrew J. RossNextBus Information Systems
Senior Software Engineer  Emeryville, CA
[EMAIL PROTECTED]  http://www.nextbus.com
"Men go crazy in conflagrations.  They only get better one by one."
  - Sting (misquoted)


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



Re: [Flightgear-devel] New Wind Sound

2001-11-18 Thread Erik Hofman

Erik Hofman wrote:


> 
> --- /home/erik/src/CVS/fgfs/FlightGear/src/Sound/fg_fx.cxxTue Nov 13 10:41:25 
>2001
> +++ FlightGear/src/Sound/fg_fx.cxxSun Nov 18 10:58:36 2001
> @@ -88,6 +88,7 @@
>//
>_wind = new FGSimpleSound(fgGetString("/sim/sounds/wind",
>   "Sounds/wind.wav"));
> +  _crank->set_pitch(1.9);


Err, make that _wind->set_pitch(1.9) ...

There is a new diff at:

http://www.a1.nl/~ehofman/fgfs/download

Erik





___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel



[Flightgear-devel] New Wind Sound

2001-11-18 Thread Erik Hofman



Hi,

I'v uploaded a new wind.wav file at:http://www.a1.nl/~ehofman/fgfs/download/

Before you can use it you have to aplly a small patch.

Erik


--- /home/erik/src/CVS/fgfs/FlightGear/src/Sound/fg_fx.cxx  Tue Nov 13 10:41:25 
2001
+++ FlightGear/src/Sound/fg_fx.cxx  Sun Nov 18 10:58:36 2001
@@ -88,6 +88,7 @@
   //
   _wind = new FGSimpleSound(fgGetString("/sim/sounds/wind",
"Sounds/wind.wav"));
+  _crank->set_pitch(1.9);
   mgr->add(_wind, "wind");
 
 
@@ -210,9 +211,12 @@
   
 
   float rel_wind = cur_fdm_state->get_V_rel_wind(); // FPS
+  float airspeed_kt = cur_fdm_state->get_V_equiv_kts();
   if (rel_wind > 60.0) {   // a little off 30kt
-float volume = rel_wind/1200.0;// FIXME!!!
+float volume = rel_wind/300.0; // FIXME!!!
+double pitch = 1.9*(airspeed_kt/67.0);
 _wind->set_volume(volume);
+_wind->set_pitch(pitch);
 set_playing("wind", true);
   } else {
 set_playing("wind", false);