Results 1 to 8 of 8

Thread: Help assigning sounds to keys

  1. Default Help assigning sounds to keys

    Hi everyone,

    I really love the sound that the PMDG 737 makes when the spoilers are deployed, more importantly it makes the Butt-Kicker work rather well and you know when the spoilers are down. Is there any way I can take the PMDG spoiler .wav file and assign it to spoiler action in other aircraft. I have found the .wav file but don't see any reference to it in the sound.cfg files. It must be linked to a .gauge file or something?

    Maybe there is a program that can simply play a sound file when / key is pushed.

    Any ideas?

    Thannks,

    Max

  2. #2

    Default RE: Help assigning sounds to keys

    You could do it with a pretty basic XML gauge and DSD_Sound. Of course, you'd have to code the gauge to do this, but yes, it is possible. I'm not aware of any program that you can use to just set this up - you'd have to custom build it.

  3. Default RE: Help assigning sounds to keys

    >You could do it with a pretty basic XML gauge and DSD_Sound.
    >Of course, you'd have to code the gauge to do this, but yes,
    >it is possible. I'm not aware of any program that you can use
    >to just set this up - you'd have to custom build it.


    Thanks for the insight. Maybe I will spend the next few days figuring out how to do what you say. Any advice on programs to help with gauge coding?

    Max

  4. Default RE: Help assigning sounds to keys

    >>You could do it with a pretty basic XML gauge and
    >DSD_Sound.
    >>Of course, you'd have to code the gauge to do this, but yes,
    >>it is possible. I'm not aware of any program that you can
    >use
    >>to just set this up - you'd have to custom build it.
    >
    >
    >Thanks for the insight. Maybe I will spend the next few days
    >figuring out how to do what you say. Any advice on programs to
    >help with gauge coding?
    >
    >Max
    >


    Never mind, I got off my lazy butt and did a Google. I think I found something, I will try it. Just in case someone else wants to try the same thing..link for you.

    http://www.ascendant-online.net/en/d.../flightsim.php


  5. #5

    Default RE: Help assigning sounds to keys

    Yes, DSD XML Sound is what you want. This assumes the gauge is Spoilersound:spoilersound and that the config file for DSD XML Sound is Gauges/spoilersound.ini

    Your gauge XML should look something like this (not tested, but should work). Note: the 2 makes the sound play in a loop rather than just one time.

    ****

    <Gauge Name="spoilersound" Version="1.0">
    <Element>
    <Select>
    <Value>
    (A:SPOILERS HANDLE POSITION,percent) 0 &gt;
    if{ 2 (>L:spoilersound, number) }
    els{ 0 (>L:spoilersound, number) }
    </Value>
    </Select>
    </Element>
    </Gauge>

    ****

    Your config file for DXD XML Sound:

    [Config]
    MaxSounds=5
    LvarStop=dsd_stop_sounds

    [LVars]
    Lvar00=spoilersound

    [Sounds]
    Sound00=./Sound/spoilersound.wav

    ****

    And your panel.cfg:

    gaugeXX=Spoilersound!spoilersound, 1,1,2,2
    gaugeXX=dsd_xml_sound3!dsd_xml_sound3, 2,2,5,5,.\Gauges\spoilersound.ini

    ****

    Hopefully that's enough that you can fill in the blanks. It took me quite a while to figure out how all of this works. Once you get the hang of it, you can do some cool things like set volume based on the spoiler position, add graphic indicators, etc. I'm not an expert, but will help if I can. I created one similar to this, but it plays an overspeed alarm - I can send the whole thing to you if you'd like.

    Jared

  6. Default RE: Help assigning sounds to keys

    >Yes, DSD XML Sound is what you want. This assumes the gauge
    >is Spoilersound:spoilersound and that the config file for DSD
    >XML Sound is Gauges/spoilersound.ini
    >
    >Your gauge XML should look something like this (not tested,
    >but should work). Note: the 2 makes the sound play in a loop
    >rather than just one time.
    >
    >****
    >
    ><Gauge Name="spoilersound" Version="1.0">
    ><Element>
    ><Select>
    ><Value>
    >(A:SPOILERS HANDLE POSITION,percent) 0 >
    >if{ 2 (>L:spoilersound, number) }
    >els{ 0 (>L:spoilersound, number) }
    ></Value>
    ></Select>
    ></Element>
    ></Gauge>
    >
    >****
    >
    >Your config file for DXD XML Sound:
    >
    >[Config]
    >MaxSounds=5
    >LvarStop=dsd_stop_sounds
    >
    >[LVars]
    >Lvar00=spoilersound
    >
    >[Sounds]
    >Sound00=./Sound/spoilersound.wav
    >
    >****
    >
    >And your panel.cfg:
    >
    >gaugeXX=Spoilersound!spoilersound, 1,1,2,2
    >gaugeXX=dsd_xml_sound3!dsd_xml_sound3,
    >2,2,5,5,.\Gauges\spoilersound.ini
    >
    >****
    >
    >Hopefully that's enough that you can fill in the blanks. It
    >took me quite a while to figure out how all of this works.
    >Once you get the hang of it, you can do some cool things like
    >set volume based on the spoiler position, add graphic
    >indicators, etc. I'm not an expert, but will help if I can. I
    >created one similar to this, but it plays an overspeed alarm -
    >I can send the whole thing to you if you'd like.
    >
    >Jared

    WOW!!! That's a lot of info to digest!! I love a challenge, so I will get at it tonight and let you know if I can figure it out. Here goes nothing.

    Max

  7. Default RE: Help assigning sounds to keys

    Hi Jared,

    I think I am getting there, slowly.

    The spoiler gauge I made must be the "trigger" that tells XML_sound3.gau to play the wav file..



    (A:SPOILERS HANDLE POSITION,percent) 0 >
    if{ 2 (>L:spoilersound, number) }
    els{ 0 (>L:spoilersound, number) }


    Do I need to put some values in here? Do I need to put FS event ID or something?

    I would love to see your .xml file to disect it. Maybe you can emial it to me?

    Thnaks again,

    Max

  8. Default RE: Help assigning sounds to keys

    >Hi Jared,
    >
    >I think I am getting there, slowly.
    >
    >The spoiler gauge I made must be the "trigger" that tells
    >XML_sound3.gau to play the wav file..
    >
    >
    >
    >(A:SPOILERS HANDLE POSITION,percent) 0 >
    >if{ 2 (>L:spoilersound, number) }
    >els{ 0 (>L:spoilersound, number) }
    >
    >
    >Do I need to put some values in here? Do I need to put FS
    >event ID or something?
    >
    >I would love to see your .xml file to disect it. Maybe you can
    >emial it to me?
    >
    >Thnaks again,
    >
    >Max

    I always seem to answer my own questions... it is working now!!!

    Thanks Jared!!!!

    What else can I do with this file?

    Max

Similar Threads

  1. Assigning sounds to keystrokes
    By richiemonahan in forum FS2004
    Replies: 6
    Last Post: 10-03-2009, 10:49 PM
  2. Assigning Buttons and Keys?
    By stephenhawk2 in forum FSX
    Replies: 2
    Last Post: 12-13-2006, 07:06 PM
  3. Assigning Flightplans
    By mrmaestrom in forum FS2004
    Replies: 1
    Last Post: 05-06-2006, 10:53 AM
  4. Assigning spotview sounds to VC Cockpit?
    By chrisoz in forum FS2002
    Replies: 0
    Last Post: 01-12-2006, 08:21 AM
  5. Replies: 0
    Last Post: 02-08-2002, 07:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •