Page 1 of 1

New Sound Expression Support?

Posted: Wed Sep 14, 2016 6:05 pm
by FL2070
http://wiki.flightgear.org/Changelog_2016.3#Core

In this article about 2016.3 it is stated that support for new XML sound expression has been added. What does this mean?

Re: New Sound Expression Support?

Posted: Wed Sep 14, 2016 10:13 pm
by Richard
FL2070 wrote:http://wiki.flightgear.org/Changelog_2016.3#Core

In this article about 2016.3 it is stated that support for new XML sound expression has been added. What does this mean?


I think it's this commit: ce0cdcdcb0f6185af49e6ac339ca3f3fc59846dd

"Add the option to define volume and pitch using an expression"

Re: New Sound Expression Support?

Posted: Tue Oct 04, 2016 4:58 pm
by Octal450
Expressions quite usefull.

I use them here with the table function to convert wrong YASIM EGT to better EGT.
You could use them to take N1, and put them into a pitch value. :D

Code: Select all

    <filter>
        <name>EGT L</name>
        <type>gain</type>
        <gain>1</gain>
        <update-interval-secs type="double">0.05</update-interval-secs>
        <input>
            <expression>
                <table>
                    <property>/engines/engine[0]/egt-degf</property>
                    <entry><ind>55</ind><dep>302</dep></entry>
                    <entry><ind>725</ind><dep>665</dep></entry>
                </table>
            </expression>
        </input>
      <output>/engines/engine[0]/egt-actual</output>
    </filter>