Board index FlightGear Development Aircraft

Sound of touchdown

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Sound of touchdown

Postby scarymovie » Mon Dec 11, 2017 7:58 am

Hi everyone,

I am wondering how can I have sound of the gears "hitting" the ground when landing the aircraft. The harder the gears hit the ground, the louder the sound is.

Any idea?

Thank you.
scarymovie
 
Posts: 72
Joined: Wed Nov 21, 2007 2:34 pm

Re: Sound of touchdown

Postby Thorsten » Mon Dec 11, 2017 8:18 am

Thorsten
 
Posts: 10598
Joined: Mon Nov 02, 2009 8:33 am

Re: Sound of touchdown

Postby scarymovie » Mon Dec 11, 2017 8:28 am

Thorsten wrote in Mon Dec 11, 2017 8:18 am:http://wiki.flightgear.org/Howto:Add_sound_effects_to_aircraft


Hi Thorstan, this is too difficult for me. Anyway, thank you so much for your response.
scarymovie
 
Posts: 72
Joined: Wed Nov 21, 2007 2:34 pm

Re: Sound of touchdown

Postby agough » Mon Dec 11, 2017 8:50 am

It's not that hard. Here's a snippet from a JSBsim aircraft's *-sound.xml. Thorsten's link should get you the rest of the way!

Code: Select all
<gear>
         <name>Left main gear touchdown</name>
                        <path>/Sounds/squeal.wav</path>
                        <mode>once</mode>
                        <condition>
                                <property>gear/gear[1]/wow</property>
                        </condition>
                        <volume>
                                <offset>-0.75</offset>
                        </volume>
                </gear>
                <gear>
                        <name>Right main gear touchdown</name>
                        <path>/Sounds/squeal.wav</path>
                        <mode>once</mode>
                        <condition>
                                <property>gear/gear[2]/wow</property>
                        </condition>
                        <volume>
                                <offset>-0.75</offset>
                        </volume>
      </gear>
agough
 
Posts: 123
Joined: Thu Oct 23, 2014 9:54 am
Callsign: G-OUGH
Version: 3.7
OS: Windows

Re: Sound of touchdown

Postby scarymovie » Mon Dec 11, 2017 9:20 am

agough wrote in Mon Dec 11, 2017 8:50 am:It's not that hard. Here's a snippet from a JSBsim aircraft's *-sound.xml. Thorsten's link should get you the rest of the way!

Code: Select all
<gear>
         <name>Left main gear touchdown</name>
                        <path>/Sounds/squeal.wav</path>
                        <mode>once</mode>
                        <condition>
                                <property>gear/gear[1]/wow</property>
                        </condition>
                        <volume>
                                <offset>-0.75</offset>
                        </volume>
                </gear>
                <gear>
                        <name>Right main gear touchdown</name>
                        <path>/Sounds/squeal.wav</path>
                        <mode>once</mode>
                        <condition>
                                <property>gear/gear[2]/wow</property>
                        </condition>
                        <volume>
                                <offset>-0.75</offset>
                        </volume>
      </gear>


Thank you agough too, for pointing me to the right direction. What I am trying to achieve here is a "bang" sound when the gears touch the ground.I will explore more on that.
scarymovie
 
Posts: 72
Joined: Wed Nov 21, 2007 2:34 pm

Re: Sound of touchdown

Postby GabrielYV » Mon Dec 11, 2017 6:08 pm

it is very simple to add this type of sound to an airplane, I will leave you my own code to do it, you just have to change the main direction and it is already, of course depending on whether it is a big or small plane .

Code: Select all
    <wow>
       <name>wow 0</name>
       <mode>once</mode>
       <path>Aircraft/737-800YV/Sounds/wow.wav</path>
       <condition>
          <property>gear/gear[0]/wow</property>
       </condition>
       <volume>
          <property>sim/current-view/internal</property>
          <offset>0</offset>
       </volume>
    </wow>
    <wow>
       <name>wow 1</name>
       <mode>once</mode>
       <path>Aircraft/737-800YV/Sounds/wow.wav</path>
       <condition>
          <property>gear/gear[1]/wow</property>
       </condition>
       <volume>
          <property>sim/current-view/internal</property>
          <offset>0</offset>
       </volume>
    </wow>
    <wow>
       <name>wow 2</name>
       <mode>once</mode>
       <path>Aircraft/737-800YV/Sounds/wow.wav</path>
       <condition>
          <property>gear/gear[2]/wow</property>
       </condition>
       <volume>
          <property>sim/current-view/internal</property>
          <offset>0</offset>
       </volume>
    </wow>
   
    <wow>
       <name>wow 3</name>
       <mode>once</mode>
       <path>Aircraft/737-800YV/Sounds/wow.wav</path>
       <condition>
          <property>gears/gear[0]/wow</property>
       </condition>
       <volume>
          <property>sim/current-view/internal</property>
          <offset>0</offset>
       </volume>
    </wow>
    <wow>
       <name>wow 4</name>
       <mode>once</mode>
       <path>Aircraft/737-800YV/Sounds/wow.wav</path>
       <condition>
          <property>gears/gear[1]/wow</property>
       </condition>
       <volume>
          <property>sim/current-view/internal</property>
          <offset>0</offset>
       </volume>
    </wow>
    <wow>
       <name>wow 5</name>
       <mode>once</mode>
       <path>Aircraft/737-800YV/Sounds/wow.wav</path>
       <condition>
          <property>gears/gear[2]/wow</property>
       </condition>
       <volume>
          <property>sim/current-view/internal</property>
          <offset>0</offset>
       </volume>
    </wow>
 


just copy this code and paste it in the corresponding xml, This is the address that you must change(<path>Aircraft/737-800YV/Sounds/wow.wav</path>) depending on which aircraft it is and where the sound you want to add is located. I hope it works.
Regards Gabriel Hernandez(YV3399)
New Boeing 737-800YV (Improved version) https://github.com/YV3399/737-800YV
Programmer at the it0uchpods Design Group
GabrielYV
 
Posts: 210
Joined: Sun Dec 13, 2015 6:06 am
Location: Venezuela
Callsign: YV3399/YV123B
Version: 2017.3.1
OS: Mac OS X 10.10.1

Re: Sound of touchdown

Postby LesterBoffo » Mon Dec 11, 2017 6:15 pm

The only way I could conceive that scarymovie would be able to scale the volume and fierceness of the tire 'chirp' noise would be to add a volume and pitch scaler tied to the compression of each LG leg. This may take some additional coding work.
User avatar
LesterBoffo
 
Posts: 2101
Joined: Sun Oct 02, 2011 4:02 pm
Location: Western USA
Callsign: LesBof
Version: 2016.1
OS: WinXP 32 bit


Return to Aircraft

Who is online

Users browsing this forum: No registered users and 2 guests