John Wojnaroski wrote:
Looking at the xmlsound structure...

Wondering if it would be useful to extend the structure and methods to add a
second property and then define a set of additonal macro operators to
combine the two properties with an arithmetic/logical operation to produce a
result.

One example; interior jet engine noise is a function of thrust and airspeed.
It's at a max at takeoff and decreases during climbout as TAS increases;
it's probably the loudest on landing when reverse thrust is applied. So one
could take the rumble.wav sound file, increase volume/pitch for higher power
settings and subtract some amount as a function of airspeed to arrive at a
final value. Or is there a set of xml constructs to do the same?

All volume related subsections have one thing in common, the actual volume. So it already is possible to to that.


For example, the wind noise decreases as the aircraft gets higher, but also increases when the aircraft gains speed:

<wind>
   <name>wind</name>
   <mode>looped</mode>
   <path>Sounds/wind.wav</path>
   <property>/velocities/airspeed-kt</property>

<!-- starts here -->
   <volume>
    <property>/position/altitude-ft</property>
    <factor>-0.000015</factor>
    <offset>1.0</offset>
    <min>0.1</min>
    <max>1.0</max>
   </volume>
   <volume>
     <property>/velocities/airspeed-kt</property>
     <factor>0.0015</factor>
     <min>0.03</min>
     <max>0.25</max>
   </volume>
<!-- ends here -->

   <pitch>
    <property>/velocities/airspeed-kt</property>
    <factor>0.0035</factor>
    <offset>1.25</offset>
   </pitch>
  </wind>

Erik

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

Reply via email to