New Sound Expression Support?

User avatar
FL2070
Posts: 246
Joined: Tue Sep 22, 2015 4:48 pm
Location: Earth

New Sound Expression Support?

Postby FL2070 » Wed Sep 14, 2016 6:05 pm

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?
Soundpack requests are currently: PERMANENTLY CLOSED
Current WIP: None
See and download all my work: HERE

Richard
Posts: 114
Joined: Sun Sep 11, 2016 5:57 pm

Re: New Sound Expression Support?

Postby Richard » Wed Sep 14, 2016 10:13 pm

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"

Octal450
Posts: 2184
Joined: Sun Oct 18, 2015 2:47 am

Re: New Sound Expression Support?

Postby Octal450 » Tue Oct 04, 2016 4:58 pm

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>


Return to “Sound”

Who is online

Users browsing this forum: No registered users and 20 guests