<?xml version="1.0" ?>
<PropertyList>
    <params>
        <serviceable>/instrumentation/adf[1]/serviceable</serviceable>
        <power>/instrumentation/adf[1]/power-btn</power>
        <right-display>/instrumentation/adf[1]/right-display</right-display>
        <dimming>instrumentation/adf[1]/dimming-norm</dimming>
        <adf>/instrumentation/adf[1]/adf-btn</adf>
        <bfo>/instrumentation/adf[1]/bfo-btn</bfo>
        <flt>/instrumentation/adf[1]/flt-btn</flt>
        <set>/instrumentation/adf[1]/set-btn</set>
        <frq>/instrumentation/adf[1]/frq-btn</frq>
        <display-mode>/instrumentation/adf[1]/display-mode</display-mode>
        <selected>/instrumentation/adf[1]/frequencies/selected-khz</selected>
        <standby>/instrumentation/adf[1]/frequencies/standby-khz</standby>
        <volume>/instrumentation/adf[1]/volume-norm</volume>
    </params>
    
    <path>kr87.ac</path>
    
    <animation>
        <type>select</type>
        <object-name>indicator</object-name>
        <condition>
            <property alias="/params/serviceable"/>
            <property alias="/params/power"/>
        </condition>
    </animation>

    <animation>
        <type>material</type>
        <object-name>knobs.ADF</object-name>
        <object-name>knobs.BFO</object-name>
        <object-name>knobs.FRQ</object-name>
        <object-name>knobs.FLT</object-name>
        <object-name>knobs.SET</object-name>
        <emission>
            <red-prop>/sim/model/instrument-lighting/emission/red</red-prop>
            <green-prop>/sim/model/instrument-lighting/emission/green</green-prop>
            <blue-prop>/sim/model/instrument-lighting/emission/blue</blue-prop>
            <factor-prop>/controls/lighting/instruments-norm</factor-prop>
        </emission>
    </animation>
    
    <animation>
        <type>material</type>
        <object-name>indicator</object-name>
        <emission>
            <red>-1.0</red>
            <green>-1.0</green>
            <blue>-1.0</blue>
            <factor-prop alias="/params/dimming"/>
            <offset>1</offset>
        </emission>
    </animation>

    <animation>
        <type>select</type>
        <object-name>indicator.ANT</object-name>
        <condition>
            <not>
                <property alias="/params/adf"/>
            </not>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>indicator.ADF</object-name>
        <condition>
            <property alias="/params/adf"/>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>indicator.BFO</object-name>
        <condition>
            <property alias="/params/bfo"/>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>indicator.FRQ</object-name>
        <condition>
            <equals>
                <property alias="/params/display-mode"/>
                <value type="int">0</value>
            </equals>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>indicator.FLT</object-name>
        <condition>
            <equals>
                <property alias="/params/display-mode"/>
                <value type="int">1</value>
            </equals>
        </condition>
    </animation>

    <animation>
        <type>select</type>
        <object-name>indicator.ET</object-name>
        <condition>
            <equals>
                <property alias="/params/display-mode"/>
                <value type="int">2</value>
            </equals>
        </condition>
    </animation>

    <!-- Use FREQ -->
    <animation>
        <type>select</type>
        <object-name>indicator.Use.1000</object-name>
        <condition>
            <greater-than-equals>
                <property alias="/params/selected"/>
                <value type="int">1000</value>
            </greater-than-equals>
        </condition>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>indicator.Use.1000</object-name>
        <property alias="/params/selected"/>
        <step>1000</step>
        <factor>0.0001</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>indicator.Use.100</object-name>
        <property alias="/params/selected"/>
        <step>100</step>
        <factor>0.001</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>indicator.Use.10</object-name>
        <property alias="/params/selected"/>
        <step>10</step>
        <factor>0.01</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>indicator.Use.1</object-name>
        <property alias="/params/selected"/>
        <step>1</step>
        <factor>0.1</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <!-- STBY FREQ -->
    <animation>
        <condition>
            <not-equals>
                <property alias="/params/display-mode"/>
                <value type="int">0</value>
            </not-equals>
        </condition>
        <type>select</type>
        <object-name>indicator.dots</object-name>
    </animation>

    <animation>
        <condition>
            <greater-than-equals>
                <property alias="/params/right-display"/>
                <value type="int">1000</value>
            </greater-than-equals>
        </condition>
        <type>select</type>
        <object-name>indicator.Stby.1000</object-name>
    </animation>

    <animation>
        <condition>
            <greater-than-equals>
                <property alias="/params/right-display"/>
                <value type="int">100</value>
            </greater-than-equals>
        </condition>
        <type>select</type>
        <object-name>indicator.Stby.100</object-name>
    </animation>
    
    <animation>
        <type>textranslate</type>
        <object-name>indicator.Stby.1000</object-name>
        <property alias="/params/right-display"/>
        <step>1000</step>
        <factor>0.0001</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>indicator.Stby.100</object-name>
        <property alias="/params/right-display"/>
        <step>100</step>
        <factor>0.001</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>indicator.Stby.10</object-name>
        <property alias="/params/right-display"/>
        <step>10</step>
        <factor>0.01</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>textranslate</type>
        <object-name>indicator.Stby.1</object-name>
        <property alias="/params/right-display"/>
        <step>1</step>
        <factor>0.1</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>


    <!-- knobs and buttons -->
    <animation>
        <type>translate</type>
        <object-name>knobs.ADF</object-name>
        <property alias="/params/adf"/>
        <factor>-0.004</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <visible>true</visible>
        <object-name>knobs.ADF</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-toggle</command>
                <property alias="/params/adf"/>
            </binding>
        </action>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>knobs.BFO</object-name>
        <property alias="/params/bfo"/>
        <factor>-0.004</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <visible>true</visible>
        <object-name>knobs.BFO</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-toggle</command>
                <property alias="/params/bfo"/>
            </binding>
        </action>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>knobs.FRQ</object-name>
        <property alias="/params/frq"/>
        <factor>-0.004</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <visible>true</visible>
        <object-name>knobs.FRQ</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property alias="/params/frq"/>
                <value type="int">1</value>
            </binding>
            <binding>
                <condition>
                    <equals>
                        <property alias="/params/display-mode"/>
                        <value type="int">0</value>
                    </equals>
                </condition>
                <command>property-swap</command>
                <property alias="/params/selected"/>
                <property alias="/params/standby"/>
            </binding>
            <binding>
                <command>property-assign</command>
                <property alias="/params/display-mode"/>
                <value type="int">0</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property alias="/params/frq"/>
                    <value type="int">0</value>
                </binding>
            </mod-up>
        </action>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>knobs.FLT</object-name>
        <property alias="/params/flt"/>
        <factor>-0.004</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <visible>true</visible>
        <object-name>knobs.FLT</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property alias="/params/flt"/>
                <value type="int">1</value>
            </binding>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/display-mode"/>
                <step>1</step>
                <min>1</min>
                <max>3</max>
                <wrap>true</wrap>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property alias="/params/flt"/>
                    <value type="int">0</value>
                </binding>
            </mod-up>
        </action>
    </animation>

    <animation>
        <type>translate</type>
        <object-name>knobs.SET</object-name>
        <property alias="/params/set"/>
        <factor>-0.004</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
    </animation>

    <animation>
        <type>pick</type>
        <visible>true</visible>
        <object-name>knobs.SET</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-assign</command>
                <property alias="/params/set"/>
                <value type="int">1</value>
            </binding>
            <mod-up>
                <binding>
                    <command>property-assign</command>
                    <property alias="/params/set"/>
                    <value type="int">0</value>
                </binding>
            </mod-up>
        </action>
    </animation>

    <animation>
        <type>rotate</type>
        <object-name>Volume</object-name>
        <property alias="/params/volume"/>
        <factor>-270</factor>
        <axis>
            <x>1</x>
            <y>0</y>
            <z>0</z>
        </axis>
        <center>
            <x-m>0.0188946</x-m>
            <y-m>0.03362955</y-m>
            <z-m>-0.00472295</z-m>
        </center>
    </animation>

    <animation>
        <type>pick</type>
        <visible>false</visible>
        <object-name>VolumePickRight</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/volume"/>
                <step>0.1</step>
                <min>0</min>
                <max>1.0</max>
            </binding>
            <binding>
                <condition>
                    <greater-than>
                        <property alias="/params/volume"/>
                        <value>0.0</value>
                    </greater-than>
                </condition>
                <command>property-assign</command>
                <property alias="/params/power"/>
                <value type="bool">1</value>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <visible>false</visible>
        <object-name>VolumePickLeft</object-name>
        <action>
            <button>0</button>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/volume"/>
                <step>-0.1</step>
                <min>0</min>
                <max>1.0</max>
            </binding>
            <binding>
                <condition>
                    <less-than>
                        <property alias="/params/volume"/>
                        <value>0.1</value>
                    </less-than>
                </condition>
                <command>property-assign</command>
                <property alias="/params/power"/>
                <value type="bool">0</value>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <visible>true</visible>
        <object-name>Volume</object-name>
        <action>
            <button>4</button>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/volume"/>
                <step>0.1</step>
                <min>0</min>
                <max>1.0</max>
            </binding>
            <binding>
                <condition>
                    <greater-than>
                        <property alias="/params/volume"/>
                        <value>0.0</value>
                    </greater-than>
                </condition>
                <command>property-assign</command>
                <property alias="/params/power"/>
                <value type="bool">1</value>
            </binding>
        </action>
        <action>
            <button>3</button>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/volume"/>
                <step>-0.1</step>
                <min>0</min>
                <max>1.0</max>
            </binding>
            <binding>
                <condition>
                    <less-than>
                        <property alias="/params/volume"/>
                        <value>0.1</value>
                    </less-than>
                </condition>
                <command>property-assign</command>
                <property alias="/params/power"/>
                <value type="bool">0</value>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>FreqPickLeft</object-name>
        <visible>false</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>-1</step>
                <min>200</min>
                <max>1800</max>
                <resolution>1</resolution>
                <wrap>true</wrap>
            </binding>
        </action>
        <action>
            <button>1</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>-100</step>
                <min>200</min>
                <max>1800</max>
                <wrap>true</wrap>
                <mask>integer</mask>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>FreqPickRight</object-name>
        <visible>false</visible>
        <action>
            <button>0</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>1</step>
                <min>200</min>
                <max>1800</max>
                <resolution>1</resolution>
                <wrap>true</wrap>
            </binding>
        </action>
        <action>
            <button>1</button>
            <repeatable>false</repeatable>
            <binding>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>100</step>
                <min>200</min>
                <max>1800</max>
                <wrap>true</wrap>
                <mask>integer</mask>
            </binding>
        </action>
    </animation>

    <animation>
        <type>pick</type>
        <object-name>FRQOuter</object-name>
        <object-name>FRQInner</object-name>
        <visible>true</visible>
        <action>
            <button>3</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <property>devices/status/keyboard/shift</property>
                </condition>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>-100</step>
                <min>200</min>
                <max>1800</max>
                <resolution>1</resolution>
                <wrap>true</wrap>
            </binding>
            <binding>
                <condition>
                    <not>
                        <property>devices/status/keyboard/shift</property>
                    </not>
                </condition>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>-1</step>
                <min>200</min>
                <max>1800</max>
                <resolution>1</resolution>
                <wrap>true</wrap>
            </binding>
        </action>
        <action>
            <button>4</button>
            <repeatable>false</repeatable>
            <binding>
                <condition>
                    <not>
                        <property>devices/status/keyboard/shift</property>
                    </not>
                </condition>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>1</step>
                <min>200</min>
                <max>1800</max>
                <wrap>true</wrap>
                <mask>integer</mask>
            </binding>
            <binding>
                <condition>
                    <property>devices/status/keyboard/shift</property>
                </condition>
                <command>property-adjust</command>
                <property alias="/params/standby"/>
                <step>100</step>
                <min>200</min>
                <max>1800</max>
                <wrap>true</wrap>
                <mask>integer</mask>
            </binding>
        </action>
    </animation>

</PropertyList>
