<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2007 All rights reserved -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->
<decoder-config xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jmri.org/xml/schema/decoder-4-15-2.xsd">
  <version author="Alain Le Marchand" version="3.1" lastUpdated="20150501"/>
  <version author="Alain Le Marchand" version="3" lastUpdated="20150427"/>
  <version author="Peter Ulvestad" version="2" lastUpdated="20091003"/>
  <version author="Michael Dunn" version="1" lastUpdated="20070421"/>
  <!-- made from the MRC_1636 file by Richard Sauerbrun -->
  <!-- Version 2 - Updated, moved consist info to consist tab, added speed table and lots of tooltips -->
  <!-- Version 3  New family for all MRC N scale: "Sound Decoders - N scale"     -->
  <!--            File MRC_soundbrilliance1658.xml renamed MRC_sound1658.xml     -->
  <!--            Added function labels                                          -->
  <!-- Version 3.1 Added 0001660 and changed file name accordingly               -->
  <decoder>
    <family name="Sound Decoders - N Scale" mfg="MRC" lowVersionID="32" highVersionID="32">
      <model model="1658 - N Scale - Kato EMD F3" numOuts="2" numFns="12" maxTotalCurrent="1.5A" productID="1658" extFnsMRC="yes" formFactor="N" connector="DropIn" comment="N-Scale, Drop-In - replaced by 0001957">
        <!-- note only F0 to F12 are NMRA compatible -->
        <size length="90" width="14" height="4.2" units="mm"/>
      </model>
      <model model="1660 - N Scale - Life-Like C Liner" numOuts="2" numFns="12" maxTotalCurrent="0.75A" productID="1660" extFnsMRC="yes" formFactor="N" connector="DropIn" comment="N-Scale, Drop-In">
        <size length="50.5" width="14.8" height="6.5" units="mm"/>
        <functionlabels>
          <functionlabel num="4" lockable="true">Uncoupling lever</functionlabel>
          <functionlabel num="12" lockable="true">Prime Mover Type</functionlabel>
          <functionlabel num="13" lockable="true">Air Release</functionlabel>
          <functionlabel num="14" lockable="true">Coupling</functionlabel>
          <functionlabel num="24" lockable="true">Air Release</functionlabel>
          <functionlabel num="25" lockable="true">Flange Noise 2</functionlabel>
          <functionlabel num="26" lockable="true">Loco Sound</functionlabel>
          <functionlabel num="27" lockable="true">Sand Drop</functionlabel>
        </functionlabels>
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Light</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="false">Horn</functionlabel>
        <functionlabel num="3" lockable="true">Air Release</functionlabel>
        <functionlabel num="4" lockable="true">Coupling 1</functionlabel>
        <functionlabel num="5" lockable="true">Brake release/Squeal</functionlabel>
        <functionlabel num="6" lockable="true">Dynamic Brake/Squeal</functionlabel>
        <functionlabel num="7" lockable="true">Air Hose/Uncoupling Lever</functionlabel>
        <functionlabel num="8" lockable="true">Shut Down/Notch Down</functionlabel>
        <functionlabel num="9" lockable="true">Fan/Notch Up</functionlabel>
        <functionlabel num="10" lockable="true">Rail Clack</functionlabel>
        <functionlabel num="11" lockable="true">Traction Air Compressor</functionlabel>
        <functionlabel num="12" lockable="true">Diesel Rumble Type</functionlabel>
        <functionlabel num="13" lockable="true">Short Air Release</functionlabel>
        <functionlabel num="14" lockable="true">Flange Noise</functionlabel>
        <functionlabel num="15" lockable="true">Air Pump</functionlabel>
        <functionlabel num="16" lockable="true">Loco Sound</functionlabel>
        <functionlabel num="17" lockable="true">Flange Noise</functionlabel>
        <functionlabel num="18" lockable="true">Bell Type</functionlabel>
        <functionlabel num="19" lockable="true">Horn Type</functionlabel>
        <functionlabel num="20" lockable="true">Loco Sound</functionlabel>
        <functionlabel num="21" lockable="true">Bell Volume</functionlabel>
        <functionlabel num="22" lockable="true">Horn Volume</functionlabel>
        <functionlabel num="23" lockable="true">Diesel Rumble Volume</functionlabel>
        <functionlabel num="24" lockable="true">Coupling</functionlabel>
        <functionlabel num="25" lockable="true">Air Release</functionlabel>
        <functionlabel num="26" lockable="true">Flange Noise</functionlabel>
        <functionlabel num="27" lockable="true">Air Hose Firing</functionlabel>
        <functionlabel num="28" lockable="true">Air Release</functionlabel>
      </functionlabels>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <!-- Note Mfg. recognizes CV read back is not 100% correct -->
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" tooltip="sets the motor voltage at Speed Step 1 [range 0-32]" item="Vstart" default="0">
        <decVal max="32"/>
        <label>Start Voltage</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.v</label>
        <label xml:lang="de">Startspannung</label>
      </variable>
      <variable CV="3" tooltip="sets the acceleration rate (delay) [range 0-32]" item="Accel" default="0">
        <decVal max="32"/>
        <label>Acceleration</label>
        <label xml:lang="it">Accellerazione (0-32)</label>
        <label xml:lang="fr">Accelération (0-32)</label>
        <label xml:lang="de">Anfahrverzögerung (0-32)</label>
      </variable>
      <variable CV="4" tooltip="sets the deceleration rate (delay) [range 0-32]" item="Decel" default="0">
        <decVal max="32"/>
        <label>Deceleration</label>
        <label xml:lang="it">Decellerazione (1-32)</label>
        <label xml:lang="fr">Décélération (1-32)</label>
        <label xml:lang="de">Bremszeit (1-32)</label>
      </variable>
      <variable CV="5" tooltip="sets the motor voltage at the top Speed Step [range 0-32]" item="Vhigh" default="32">
        <decVal max="32"/>
        <label>Top Voltage</label>
        <label xml:lang="it">Volt Massimi (0-32):</label>
        <label xml:lang="de">Höchstgeschwindigkeit</label>
      </variable>
      <variable CV="6" tooltip="sets Speed Curve" item="Speed Table/Mid Range Cab Speed Step">
        <enumVal>
          <enumChoice choice="Linear">
            <choice>Linear</choice>
          </enumChoice>
          <enumChoice choice="Slow increase at slow speed">
            <choice>Slow increase at slow speed</choice>
          </enumChoice>
          <enumChoice choice="Fast increase at slow speed">
            <choice>Fast increase at slow speed</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Curve Select</label>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes" tooltip="is the Decoder ID, Read Only">
        <decVal/>
        <label>Version ID</label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
      </variable>
      <variable CV="8" readOnly="yes" tooltip="is the Manufacturer ID, MRC=143, Read Only" item="Manufacturer" default="143">
        <decVal/>
        <label>Manufacturer ID</label>
        <label xml:lang="it">ID Costruttore: </label>
        <label xml:lang="fr">ID constructeur: </label>
        <label xml:lang="de">Hersteller ID: </label>
      </variable>
      <!-- CV=19 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <!-- CV=21 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv21_lsb.xml"/>
      <!-- CV=29 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29direction.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29speedSteps.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29analog.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29table1-28.xml"/>
      <variable CV="49" item="Sound Option 1" default="1" include="1660">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Sound On/Off</label>
        <tooltip>Sound on/off except horn that is alw ays on</tooltip>
      </variable>
      <variable CV="50" item="Sound Option 2" default="4" comment="Range 0-16" include="1658">
        <decVal max="16"/>
        <label>Horn type</label>
        <tooltip>Range 0-16</tooltip>
      </variable>
      <variable CV="50" item="Sound Option 2" default="4" comment="Range 0-33" include="1660">
        <decVal max="33"/>
        <label>Horn type</label>
        <tooltip>Range 0-33</tooltip>
      </variable>
      <variable CV="51" item="Sound Setting 1" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Horn volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="52" item="Sound Option 3" default="3" comment="Range 0-6" include="1658">
        <decVal max="6"/>
        <label>Bell type</label>
        <tooltip>Range 0-6</tooltip>
      </variable>
      <variable CV="52" item="Sound Option 3" default="3" comment="Range 0-7" include="1660">
        <decVal max="7"/>
        <label>Bell type</label>
        <tooltip>Range 0-7</tooltip>
      </variable>
      <variable CV="53" item="Sound Setting 2" default="3" comment="Range 0-7">
        <decVal max="7"/>
        <label>Bell volume</label>
        <tooltip>Range 0-7</tooltip>
      </variable>
      <variable CV="54" item="Sound Group 3 Option 2" default="3" comment="Range 0-50">
        <decVal max="50"/>
        <label>Bell ring rate</label>
        <tooltip>Range 0-50</tooltip>
      </variable>
      <variable CV="55" item="Sound Setting 4" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Diesel rumble volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="56" item="Sound Setting 5" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake squeal volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="57" item="Sound Setting 6" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Dynamic brake volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="58" item="Sound Setting 7" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air release volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="59" item="Sound Setting 8" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air pump volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="60" item="Sound Setting 9" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Safety pop value volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="61" item="Sound Setting 10" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Engine cooling fan volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="62" item="Sound Setting 11" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="63" item="Sound Setting 12" default="3" comment="Range 0-3" include="1658">
        <decVal max="3"/>
        <label>Random noise volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="64" item="Sound Setting 13" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Rail wheel clack</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/kickStart_63.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <!-- CV 105-106 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <variable CV="113" item="Sound Setting 14" default="3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling fire volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="114" item="Sound Setting 15" default="3" comment="Range 0-3" include="1658">
        <decVal max="3"/>
        <label>Brake release volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="114" item="Sound Setting 15" default="0" comment="Range 0-3" include="1660">
        <decVal max="3"/>
        <label>Brake release volume</label>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="115" item="Sound Option 4" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-DisableEnable_01.xml"/>
        <label>Auto Brake squeal enable</label>
        <tooltip>sets the Auto Brake Squeal [1=Enable/0=Disable]</tooltip>
      </variable>
      <variable CV="116" item="Sound Option 5" default="1" include="1658">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="Type 1">
            <choice>Type 1</choice>
          </enumChoice>
          <enumChoice choice="Type 2">
            <choice>Type 2</choice>
          </enumChoice>
        </enumVal>
        <label>Coupling Sound Type</label>
      </variable>
      <variable CV="117" item="Global lighting option 1" tooltip="selects the Light Mode" default="0" include="1660">
        <enumVal>
          <enumChoice choice="Normal Headlights" value="0">
            <choice>Normal Headlights</choice>
          </enumChoice>
          <enumChoice choice="Off / Dim /  Bright Cycle" value="1">
            <choice>Off / Dim /  Bright Cycle</choice>
          </enumChoice>
          <enumChoice choice="Rule 17" value="2">
            <choice>Rule 17</choice>
          </enumChoice>
        </enumVal>
        <label>Light Mode</label>
      </variable>
      <variable CV="122" item="Sound Option 6" default="0">
        <enumVal>
          <enumChoice choice="Auto notch - RPM and notch synchro to speed" value="0">
            <choice>Auto notch - RPM and notch synchro to speed</choice>
          </enumChoice>
          <enumChoice choice="Manual notch - notch up/down with F8/F9" value="3">
            <choice>Manual notch - notch up/down with F8/F9</choice>
          </enumChoice>
        </enumVal>
        <label>Diesel notch mode</label>
      </variable>
      <variable CV="123" item="Sound Option 7" default="1" include="1658">
        <enumVal>
          <enumChoice choice="SD" value="0">
            <choice>SD</choice>
          </enumChoice>
          <enumChoice choice="EMD" value="1">
            <choice>EMD</choice>
          </enumChoice>
          <enumChoice choice="GP" value="2">
            <choice>GP</choice>
          </enumChoice>
          <enumChoice choice="Other" value="3">
            <choice>Other</choice>
          </enumChoice>
          <!-- Note per Mfg. recorded sounds ARE NOT for GE P42 or EMD E8! -->
        </enumVal>
        <label>Diesel rumble type</label>
      </variable>
      <variable CV="123" item="Sound Option 7" default="2" include="1660">
        <enumVal>
          <enumChoice choice="Type 1">
            <choice>Type 1</choice>
          </enumChoice>
          <enumChoice choice="Type 2">
            <choice>Type 2</choice>
          </enumChoice>
          <enumChoice choice="Type 3">
            <choice>Type 3</choice>
          </enumChoice>
          <enumChoice choice="Type 4">
            <choice>Type 4</choice>
          </enumChoice>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
        </enumVal>
        <label>Prime Mover type</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="125" default="1">
         <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
  <pane>
    <column>
      <label>
        <text>MRC NOTE: Mfg. recognizes CV read back is not 100% correct.</text>
      </label>
      <label>
        <text> </text>
      </label>
      <separator/>
      <label>
        <text> </text>
      </label>
      <label>
        <text>MRC NOTE: Some DCC systems do not have enough power on the program track for programming</text>
      </label>
      <label>
        <text>sound decoders. If your system is one of these, There are Program Track Boosters availlable</text>
      </label>
      <label>
        <text>from aftermarket DCC suppliers.</text>
      </label>
    </column>
    <name>MRC</name>
  </pane>
</decoder-config>
