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 8: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: 214
Joined: Wed Nov 21, 2007 3:34 pm
Location: Singapore

Re: Sound of touchdown

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

Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Sound of touchdown

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

Thorsten wrote in Mon Dec 11, 2017 9: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: 214
Joined: Wed Nov 21, 2007 3:34 pm
Location: Singapore

Re: Sound of touchdown

Postby agough » Mon Dec 11, 2017 9: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 10:54 am
Callsign: G-OUGH
Version: 3.7
OS: Windows

Re: Sound of touchdown

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

agough wrote in Mon Dec 11, 2017 9: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: 214
Joined: Wed Nov 21, 2007 3:34 pm
Location: Singapore

Re: Sound of touchdown

Postby GabrielYV » Mon Dec 11, 2017 7: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

Gabriel Hernandez.
GabrielYV
 
Posts: 215
Joined: Sun Dec 13, 2015 7:06 am
Location: Venezuela/Mexico
Callsign: YV3399/YV123B
Version: 2020.3.13
OS: Mac OS

Re: Sound of touchdown

Postby LesterBoffo » Mon Dec 11, 2017 7: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: 2171
Joined: Sun Oct 02, 2011 5:02 pm
Location: Oregon, USA
Callsign: LesBof
Version: 2018.3.2
OS: Win10 Pro


Return to Aircraft

Who is online

Users browsing this forum: No registered users and 14 guests