<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2006, 2007,2008 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.                    -->
<!--                                                                         -->
<!-- MRC _soundbrillance1806.xml is my first decoder file and is based       -->
<!-- primarily on the MRC _soundbrillance1636.xml file as well as others     -->
<!-- such as the the MRC_soundbrillance1645.xml file                         -->
<!--                     LDEHAYES@COMCAST.NET                                -->
<!--                                                                                                                                           -->
<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.xsd">
  <version author="Alain Le Marchand" version="2.1" lastUpdated="20150501"/>
  <version author="Alain Le Marchand" version="2.0" lastUpdated="20150427"/>
  <version author="John Crellin" version="1.9" lastUpdated="20120706"/>
  <version author="John Crellin" version="1.8" lastUpdated="20110512"/>
  <version author="Peter Ulvestad" version="1.7" lastUpdated="20091228"/>
  <version author="Peter Ulvestad" version="1.6" lastUpdated="20091011"/>
  <version author="Peter Ulvestad" version="1.5" lastUpdated="20090826"/>
  <version author="Peter Ulvestad" version="1.4" lastUpdated="20090624"/>
  <version author="Lou DeHayes" version="1.3" lastUpdated="20090308"/>
  <!--   version 621: Bell Ring Rate (CV54) on Sound pane                      -->
  <!--   version 2.0 File MRC_soundbrilliance1804.xml renamed MRC_sound1802to1805.xml -->
  <!--               Removed definitions for 1806 and 1811, now in a dedicated file for N Scale -->
  <!--               Merged 1803 into this file     -->
  <!--   version 1.9 Includes MRC 1804 -->
  <!--   version 1.8 Included MRC 1805 in definition 1811 is no longer sold by MRC-->
  <!--   version 1.7 Included MRC 1802 and 1811 in difinition-->
  <!--   version 1.6 Corrected Reset, modified CV 6 and MRC pane-->
  <!--   version 1.5 Corrected CV 67-94 (Speed Table)  -->
  <!--   version 1.4 Modified model name to match others in series and make easier to locate  -->
  <!--   version 1.3 moved Consisting Configuration CV19 and CV21 to MRC Pane  -->
  <!--   version 1.2 clarified CV122 with MRC and added all the tooltips -->
  <!--   version 1.1 changed CV7 to "45" - MRC datasheet says "32"  but decoders say "45" -->
  <decoder>
    <family name="Sound Decoders" mfg="MRC" lowVersionID="32" highVersionID="45" comment="Synchronized Sound Brilliance(TM) Decoders">
      <model model="1802 - HO Scale - Kato SD40-2" numOuts="2" numFns="28" maxTotalCurrent="0.75A" productID="1802" extFnsMRC="yes" formFactor="HO" connector="DropIn" comment="HO-Scale, Drop-In">
        <size length="83" width="16" height="7.5" units="mm"/>
      </model>
      <model model="1803 - HO Scale - Proto 2000 PA/PB" numOuts="2" numFns="28" maxTotalCurrent="0.75A" productID="1803" extFnsMRC="yes" formFactor="HO" connector="DropIn" comment="HO-Scale, Drop-In">
        <size length="" width="" height="" units="mm"/>
        <functionlabels>
          <functionlabel num="3" lockable="true">Mars Light/Air Release</functionlabel>
          <functionlabel num="24" lockable="true">Air Release</functionlabel>
          <functionlabel num="25" lockable="true">Flange Noise 2</functionlabel>
          <functionlabel num="27" lockable="true">Sand Drop</functionlabel>
          <functionlabel num="28" lockable="true">Mars Light Flash</functionlabel>
        </functionlabels>
      </model>
      <model model="1804 - HO Scale - Athearn MP15" numOuts="2" numFns="28" maxTotalCurrent="0.75A" productID="1804" extFnsMRC="yes" formFactor="HO" connector="DropIn" comment="HO-Scale, Drop-In">
        <size length="83" width="16" height="7.5" units="mm"/>
        <functionlabels>
          <functionlabel num="3" lockable="true">Gyra Light/Air Release</functionlabel>
          <functionlabel num="4" lockable="true">Red Mars light</functionlabel>
          <functionlabel num="6" lockable="true">Loco Sound</functionlabel>
          <functionlabel num="12" lockable="true">Diesel Sound On/Off</functionlabel>
          <functionlabel num="18" lockable="true">Loco Sound</functionlabel>
          <functionlabel num="20" lockable="true">Reverse</functionlabel>
          <functionlabel num="21" lockable="true">Loco Sound</functionlabel>
          <functionlabel num="23" lockable="true">Loco Sound</functionlabel>
          <functionlabel num="25" lockable="true">Flange Noise 2</functionlabel>
          <functionlabel num="27" lockable="true">Sand Drop</functionlabel>
          <functionlabel num="28" lockable="true">Air Release</functionlabel>
        </functionlabels>
      </model>
      <model model="1805 - HO Scale - Atlas GE U23B" numOuts="4" numFns="28" maxTotalCurrent="1.5A" productID="1805" extFnsMRC="yes" formFactor="HO" connector="NMRAmedium" comment="HO-Scale, with NMRA 8 pin plug and 9 pin JST connector">
        <output name="3" label="Green" connection="wire"/>
        <output name="4" label="Pink" connection="wire"/>
        <size length="48" width="17" height="6.5" units="mm"/>
        <functionlabels>
          <functionlabel num="3" lockable="true">Air Release/Acc1 On/Off</functionlabel>
          <functionlabel num="11" lockable="true">Loco Sound</functionlabel>
          <functionlabel num="13" lockable="true">Air release/Acc2 On/Off</functionlabel>
          <functionlabel num="24" lockable="true">Air Release</functionlabel>
          <functionlabel num="25" lockable="true">Flange Noise 2</functionlabel>
          <functionlabel num="26" lockable="true">Safety Valve Pop</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">Ditch light</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</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">Prime Mover Type</functionlabel>
        <functionlabel num="13" lockable="true">Short Air Release</functionlabel>
        <functionlabel num="14" lockable="true">Coupling 2</functionlabel>
        <functionlabel num="15" lockable="true">Air Pump</functionlabel>
        <functionlabel num="16" lockable="true">Loco Sound</functionlabel>
        <functionlabel num="17" lockable="true">Flange Noise 1</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 3</functionlabel>
        <functionlabel num="25" lockable="true">Long Air Release</functionlabel>
        <functionlabel num="26" lockable="true">Flange Noise 3</functionlabel>
        <functionlabel num="27" lockable="true">Loco Sound</functionlabel>
        <functionlabel num="28" lockable="true">Ditch Lights Flash</functionlabel>
      </functionlabels>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" item="Vstart" tooltip="sets the motor voltage at Speed Step 1 [range 0-32]" default="0">
        <decVal max="32"/>
        <label>Start Voltage</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Anfahrspannung</label>
      </variable>
      <variable CV="3" item="Accel" tooltip="sets the acceleration rate (delay)  [range 0-32]" 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" item="Decel" tooltip="sets the deceleration rate (delay) [range 0-32]" 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" item="Vhigh" tooltip="sets the motor voltage at top Speed Step [range 0-32]," 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" item="Speed Table/Mid Range Cab Speed Step" tooltip="sets Speed Curve">
        <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>Manufacturer Version Number</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" item="Manufacturer" tooltip="is the Manufacturer ID, MRC-143, Read Only">
        <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" mask="XXXXXXXV" item="Sound Option 1" tooltip="can turn off all sound except the Horn" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Sound on/off</label>
      </variable>
      <variable CV="50" item="Sound Option 2" tooltip="selects the Horn Type [range 0-15]" default="4" include="1802">
        <decVal max="15"/>
        <label>Horn Type</label>
      </variable>
      <variable CV="50" item="Sound Option 2" tooltip="selects the Horn Type [range 0-33]" default="4" include="1803,1805">
        <decVal max="33"/>
        <label>Horn Type</label>
      </variable>
      <variable CV="50" item="Sound Option 2" tooltip="selects the Horn Type [range 0-14]" default="4" include="1804">
        <decVal max="14"/>
        <label>Horn Type</label>
      </variable>
      <variable CV="51" item="Sound Setting 1" tooltip="selects the Horn Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Horn Volume</label>
      </variable>
      <variable CV="52" item="Sound Option 3" tooltip="selects the Bell Type [range 0-7]" default="3">
        <decVal max="7"/>
        <label>Bell Type</label>
      </variable>
      <variable CV="53" item="Sound Setting 2" tooltip="selects the Bell Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Bell Volume</label>
      </variable>
      <variable CV="54" item="Sound Group 3 Option 2" tooltip="selects the Bell Ring Rate [range 0-50]" default="3">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
      </variable>
      <variable CV="55" item="Sound Setting 4" tooltip="sets the Diesel Rumble Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Diesel rumble volume</label>
      </variable>
      <variable CV="56" item="Sound Setting 5" tooltip="sets the Brake Squeal Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Brake squeal volume</label>
      </variable>
      <variable CV="57" item="Sound Setting 6" tooltip="sets the Dynamic Brake Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Dynamic brake volume</label>
      </variable>
      <variable CV="58" item="Sound Setting 7" tooltip="sets the Air Release Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Air Release Volume</label>
      </variable>
      <variable CV="59" item="Sound Setting 11" tooltip="sets the Air Pump Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Air Pump Volume</label>
      </variable>
      <variable CV="60" item="Sound Setting 12" tooltip="sets the Safety Pop Valve Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Safety pop valve volume</label>
      </variable>
      <variable CV="61" item="Sound Setting 13" tooltip="sets the Engine Cooling Fan Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Engine Cooling Fan Volume</label>
      </variable>
      <variable CV="62" item="Sound Setting 14" tooltip="sets the Coupling Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Coupling Volume</label>
      </variable>
      <variable CV="63" item="Global lighting option 1" tooltip="" default="1" include="1802,1805">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-DisableEnable_01.xml"/>
        <label>Auto Ditchlight flash with horn</label>
      </variable>
      <variable CV="64" item="Sound Setting 15" tooltip="sets the Rail Clack Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Rail clack volume</label>
      </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 16" tooltip="sets the Coupling Fire Volume [range 0-3]" default="3">
        <decVal max="3"/>
        <label>Coupling fire volume</label>
      </variable>
      <variable CV="114" item="Sound Setting 17" tooltip="sets the Brake Release Volume [range 0-3]" default="0" include="1802,1804">
        <decVal max="3"/>
        <label>Brake Release volume</label>
      </variable>
      <variable CV="114" item="Sound Setting 17" tooltip="sets the Brake Release Volume [range 0-3]" default="3" include="1803,1805">
        <decVal max="3"/>
        <label>Brake Release volume</label>
      </variable>
      <variable CV="115" item="Sound Option 5" tooltip="sets the Auto Brake Squeal [Enable/Disable]" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-DisableEnable_01.xml"/>
        <label>Auto Brake squeal</label>
      </variable>
      <variable CV="116" item="Sound Option 6" tooltip="selects Bell start with horn , [0=disables, 1=enables]" default="0" include="1803,1805">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-DisableEnable_01.xml"/>
        <label>Auto Bell with Horn</label>
      </variable>
      <variable CV="117" item="Global lighting option 2" tooltip="selects the Light Mode" default="0">
        <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="118" item="Global lighting option 3" tooltip="selects the Front Gyra Light Mode" default="0" include="1804">
        <xi:include href="http://jmri.org/xml/decoders/mrc/enum-LightEffect5.xml"/>
        <label>Front Gyra Light Mode</label>
      </variable>
      <variable CV="118" item="Global lighting option 3" tooltip="selects the Accessory 1 Light Mode" default="0" include="1805">
        <xi:include href="http://jmri.org/xml/decoders/mrc/enum-LightEffect6.xml"/>
        <label>ACC1 Light Mode</label>
      </variable>
      <variable CV="119" item="Global lighting option 4" tooltip="selects the Rear Gyra Light Mode" default="0" include="1804">
        <xi:include href="http://jmri.org/xml/decoders/mrc/enum-LightEffect5.xml"/>
        <label>Rear Gyra Light Mode</label>
      </variable>
      <variable CV="119" item="Global lighting option 4" tooltip="selects the Accessory 2 Light Mode" default="0" include="1805">
        <xi:include href="http://jmri.org/xml/decoders/mrc/enum-LightEffect6.xml"/>
        <label>ACC2 Light Mode</label>
      </variable>
      <variable CV="121" item="Global lighting option 5" tooltip="Ditch flash (=1) or stay on (=0)" default="0" include="1802">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Ditch light flashing</label>
      </variable>
      <variable CV="121" item="Global lighting option 5" tooltip="Mars light flashing on/off (F28)" default="1" include="1803">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Mars light flashing</label>
      </variable>
      <variable CV="121" item="Global lighting option 5" tooltip="Red mars light controls all lights on/off" default="0" include="1804">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Red Mars On/Off</label>
      </variable>
      <variable CV="122" item="Sound Option 7" tooltip="can only have values of 0 or 3" 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 down/up with F8/F9" value="3">
            <choice>Manual notch - notch down/up with F8/F9</choice>
          </enumChoice>
        </enumVal>
        <label>Diesel notch mode</label>
      </variable>
      <variable CV="123" item="Sound Option 8" tooltip="selects the Prime Mover Type" default="1" include="1802">
        <enumVal>
          <enumChoice choice="Type 1">
            <choice>Type 1</choice>
          </enumChoice>
          <enumChoice choice="Type 2">
            <choice>Type 2</choice>
          </enumChoice>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
        </enumVal>
        <tooltip>Range 0-2 (2 types - 2=diesel sound off)</tooltip>
        <label>Prime Mover</label>
      </variable>
      <variable CV="123" item="Sound Option 8" tooltip="selects the Prime Mover Type" default="2" include="1803">
        <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="Off">
            <choice>Off</choice>
          </enumChoice>
        </enumVal>
        <label>Prime Mover</label>
      </variable>
      <variable CV="123" item="Sound Option 8" tooltip="Diesel sound on/off with all other sounds on" default="1" include="1804">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Diesel On/Off</label>
      </variable>
      <variable CV="123" item="Sound Option 8" tooltip="selects the Prime Mover Type" default="0" include="1805">
        <enumVal>
          <enumChoice choice="Type 1">
            <choice>GE</choice>
          </enumChoice>
          <enumChoice choice="Type 2">
            <choice>Type 2</choice>
          </enumChoice>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
        </enumVal>
        <tooltip>Range 0-2 (2 types - 2=diesel sound off)</tooltip>
        <label>Prime Mover</label>
      </variable>
      <variable CV="124" item="EMF Option 1" default="0" tooltip="Back EMF Load Control, on/off, 1=on" include="1805">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Back EMF Load Control on/off</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: 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 available</text>
      </label>
      <label>
        <text>from aftermarket DCC suppliers.</text>
      </label>
      <label>
        <text> </text>
      </label>
    </column>
    <name>MRC</name>
  </pane>
</decoder-config>
