1
0
Fork 0
fgdata/Aircraft/Instruments-3d/glider/vario/ilec-sc7/README_install
Colin Geniet 59b9aeb271 Glider vario: Add nasal controller for sound pitch
Adds a sound frequency controller to glider-instrumentation-sdk.nas,
used for the ilec-sc7. This allows:
- Simpler <sound>.xml files to integrate the glider variometer.
- More accurate frequency scaling (frequency scales exponentially with
vertical speed, so that perceived changes in pitch are linear with
vertical speed).
- Fixes that the variometer sound would not drop at negative vertical
speeds.
2020-02-27 20:05:40 +01:00

63 lines
1.8 KiB
Text

If you wish to implement the ilec-sc7 on your glider,
You will need to :
* call the ilec-sc7.xml file from your model xml file
* call the ilec-sc7.nas script from your [aircraft-name]-set.xml file
* modify your sound.xml, including the following lines :
<variometer-up>
<name>variometer-up</name>
<mode>looped</mode>
<path>Instruments-3d/glider/vario/ilec-sc7/vario.wav</path>
<condition>
<and>
<greater-than>
<property>instrumentation/ilec-sc7/audio</property>
<value>0</value>
</greater-than>
<greater-than>
<property>instrumentation/ilec-sc7/te-reading-mps</property>
<value>0.01</value>
</greater-than>
</and>
</condition>
<pitch>
<property>/instrumentation/ilec-sc7/sound-pitch</property>
<offset>0</offset><!-- Do not remove, default is 1 -->
</pitch>
<volume>
<property>instrumentation/ilec-sc7/volume</property>
<max>1</max>
</volume>
</variometer-up>
<variometer-down>
<name>variometer-down</name>
<mode>looped</mode>
<path>Instruments-3d/glider/vario/ilec-sc7/vario2.wav</path>
<condition>
<and>
<equals>
<property>instrumentation/ilec-sc7/audio</property>
<value>2</value>
</equals>
<greater-than>
<property>instrumentation/ilec-sc7/te-reading-mps</property>
<value>-10.66</value>
</greater-than>
<less-than>
<property>instrumentation/ilec-sc7/te-reading-mps</property>
<value>-0.01</value>
</less-than>
</and>
</condition>
<pitch>
<property>/instrumentation/ilec-sc7/sound-pitch</property>
<offset>0</offset><!-- Do not remove, default is 1 -->
</pitch>
<volume>
<property>instrumentation/ilec-sc7/volume</property>
<max>1</max>
</volume>
</variometer-down>