<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2005, 2006, 2007, 2008, 2009 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.xsd">
  <version author="Alain Le Marchand" version="2.1" lastUpdated="20150501"/>
  <version author="Alain Le Marchand" version="2" lastUpdated="20150427"/>
  <version author="Paul Fraker" version="1.2" lastUpdated="20090921"/>
  <version author="Peter Ulvestad" version="1.1" lastUpdated="200900904"/>
  <version author="Paul Fraker" version="1.0" lastUpdated="20090731"/>
  <!-- used MRC_soundbrilliance1638 file as a starting point-->
  <!-- Version 1.1 Added speed table, corrected CV6-->
  <!-- Version 1.2 Added CV118 & CV119 parameters -->
  <!-- version 2  File MRC_dieselsound1829.xml renamed MRC_sound1829.xml -->
  <!--            Decoder renaming                                       -->
  <!-- version 2.1 Regular CV21 on Consist pane - removed MRC pane       -->
  <!--             Bell Ring Rate (CV54) on Sound pane                   -->
  <decoder>
    <family name="Sound Decoders" mfg="MRC" lowVersionID="29" highVersionID="29" comment="Synchronized Sound Brilliance(TM) Decoders">
      <model show="no" model="Synch Diesel Sound 1829" replacementModel="1829 - HO Scale - Diesel" replacementFamily="Sound Decoders" numOuts="4" numFns="28" maxTotalCurrent="1.5A" extFnsMRC="yes">
        <size length="73.0" width="17.8" height="7.7" units="mm"/>
      </model>
      <model model="1829 - HO Scale - Diesel" numOuts="4" numFns="28" maxTotalCurrent="1.5A" extFnsMRC="yes">
        <size length="73.0" width="17.8" height="7.7" units="mm"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="3" item="Accel" default="0" tooltip="Acceleration" comment="Range 0-32">
        <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>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="4" item="Decel" default="0" tooltip="Deceleration" comment="Range 0-32">
        <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>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="2" item="Vstart" default="12" tooltip="Start Voltage" comment="Range 0-32">
        <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>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="5" item="Vhigh" default="32" tooltip="Maximum Voltage" comment="Range 0-32">
        <decVal max="32"/>
        <label>Top Voltage</label>
        <label xml:lang="it">Volt Massimi (0-32):</label>
        <label xml:lang="de">Höchstgeschwindigkeit</label>
        <comment>Range 0-32</comment>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/kickStart_63.xml"/>
      <variable CV="124" item="EMF Option 1" default="0" tooltip="Back EMF Load Control, on/off, 1=on">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Back EMF Load Control on/off</label>
      </variable>
      <!-- Version 1.1 Modified CV6-->
      <variable CV="6" item="Speed Table/Mid Range Cab Speed Step" tooltip="sets Speed Curve when using CVs 2 and 5 (Set CV2 and CV5 first)">
        <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" default="29" tooltip="Decoder Version">
        <decVal/>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
        <label>Manufacturer Version No: </label>
      </variable>
      <variable CV="8" readOnly="yes" item="Manufacturer" default="143" tooltip="Manufacture">
        <decVal/>
        <label xml:lang="it">ID Costruttore: </label>
        <label xml:lang="fr">ID constructeur: </label>
        <label xml:lang="de">Hersteller ID: </label>
        <label>Manufacturer 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" tooltip="Sound on or off (except horn)">
        <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" default="17" tooltip="range 0-33, F19 also selects horn type" comment="Range 0-33">
        <decVal max="14"/>
        <label>Horn Type</label>
        <comment>Range 0-33</comment>
      </variable>
      <variable CV="52" item="Sound Option 3" default="2" tooltip="Bell Type, Range 0-7" comment="Range 0-7">
        <decVal max="7"/>
        <label>Bell Type</label>
        <comment>Range 0-7</comment>
      </variable>
      <!-- Version 1.1 Added speed table-->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <variable CV="115" item="Sound Option 4" default="1" tooltip="Auto Brake Squeal, range 0-1, 1=enable">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Auto Brake Squeal</label>
      </variable>
      <variable CV="123" item="Sound Option 5" default="3" tooltip="Prime Mover, range 0-4, 4=off">
        <enumVal>
          <enumChoice choice="SD60">
            <choice>SD60</choice>
          </enumChoice>
          <enumChoice choice="F Unit">
            <choice>F Unit</choice>
          </enumChoice>
          <enumChoice choice="Alco">
            <choice>Alco</choice>
          </enumChoice>
          <enumChoice choice="SD70">
            <choice>SD70</choice>
          </enumChoice>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
        </enumVal>
        <label>Prime Mover</label>
      </variable>
      <variable CV="122" item="Sound Option 6" default="0" tooltip="Notch Mode, range 0-3, 0=auto">
        <enumVal>
          <enumChoice choice="Auto">
            <choice>Auto</choice>
          </enumChoice>
          <enumChoice choice="n/a">
            <choice>n/a</choice>
          </enumChoice>
          <enumChoice choice="n/a">
            <choice>n/a</choice>
          </enumChoice>
          <enumChoice choice="Manual">
            <choice>Manual</choice>
          </enumChoice>
        </enumVal>
        <label>Notch Mode</label>
      </variable>
      <!-- Version 1.2 Changed "Sound Group 3 Option 3" to "Sound Setting 15" -->
      <!-- Version 2.1 Revert to "Sound Group 3 Option 2"                     -->
      <variable CV="54" item="Sound Group 3 Option 2" default="3" tooltip="Bell Ring Rate, Range 0-50, lower is faster" comment="Range 0-50">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
        <comment>Range 0-50</comment>
      </variable>
      <variable CV="51" item="Sound Setting 1" default="3" tooltip="Horn Volume, Range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Horn Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="53" item="Sound Setting 2" default="3" tooltip="Bell Volume, Range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Bell Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="55" item="Sound Setting 3" default="3" tooltip="Diesel Rumble Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Diesel Rumble Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="56" item="Sound Setting 4" default="3" tooltip="Brake Squeal Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake Squeal Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="57" item="Sound Setting 5" default="3" tooltip="Dynamic Brake Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Dynamic Brake Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="58" item="Sound Setting 6" default="3" tooltip="Air Release Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Release Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="59" item="Sound Setting 7" default="3" tooltip="Air Pump Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Pump Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="60" item="Sound Setting 8" default="3" tooltip="Safety Pop Valve Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Safety Pop Valve Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="61" item="Sound Setting 9" default="3" tooltip="Engine Cooling Fan Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Engine Cooling Fan Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="62" item="Sound Setting 10" default="3" tooltip="Coupling Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="64" item="Sound Setting 12" default="3" tooltip="Rail Wheel Clack Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Rail Wheel Clack Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="113" item="Sound Setting 13" default="3" tooltip="Coupling Fire Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling Fire Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="114" item="Sound Setting 14" default="0" tooltip="Brake Release Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake Release Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="63" item="Global lighting option 1" default="1" tooltip="Ditch lights will automatically flash with horn">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Auto Ditch Lights Flash With Horn</label>
      </variable>
      <variable CV="117" item="Global lighting option 2" default="0" tooltip="Light Mode">
        <enumVal>
          <enumChoice choice="Normal Headlight">
            <choice>Normal Headlight</choice>
          </enumChoice>
          <enumChoice choice="Off, Dim, Bright Cycle">
            <choice>Off, Dim, Bright Cycle</choice>
          </enumChoice>
          <enumChoice choice="Rule 17">
            <choice>Rule 17</choice>
          </enumChoice>
        </enumVal>
        <label>Light Mode</label>
      </variable>
      <variable CV="121" item="Global lighting option 3" default="0" tooltip="Ditch Lights Flash (=1) or Stay On (=0)">
        <enumVal>
          <enumChoice choice="Stay On">
            <choice>Stay On</choice>
          </enumChoice>
          <enumChoice choice="Flash">
            <choice>Flash</choice>
          </enumChoice>
        </enumVal>
        <label>Ditch Lights</label>
      </variable>
      <!-- Version 1.2  Added CV118 -->
      <variable CV="118" item="Global lighting option 4" default="0" tooltip="Lighting effects for ACC #1">
        <enumVal>
          <enumChoice choice="Ditch Light">
            <choice>Ditch Light</choice>
          </enumChoice>
          <enumChoice choice="Gyra Light">
            <choice>Gyra Light</choice>
          </enumChoice>
          <enumChoice choice="Mars Light">
            <choice>Mars Light</choice>
          </enumChoice>
          <enumChoice choice="Prime Strato Light">
            <choice>Prime Strato Light</choice>
          </enumChoice>
          <enumChoice choice="Single Strobe Light">
            <choice>Single Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="Double Strobe Light">
            <choice>Double Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="on/off">
            <choice>on/off</choice>
          </enumChoice>
        </enumVal>
        <label>ACC#1 Light Effect</label>
      </variable>
      <!-- Version 1.2  Added CV119 -->
      <variable CV="119" item="Global lighting option 5" default="0" tooltip="Lighting effects for ACC #2">
        <enumVal>
          <enumChoice choice="Ditch Light">
            <choice>Ditch Light</choice>
          </enumChoice>
          <enumChoice choice="Gyra Light">
            <choice>Gyra Light</choice>
          </enumChoice>
          <enumChoice choice="Mars Light">
            <choice>Mars Light</choice>
          </enumChoice>
          <enumChoice choice="Prime Strato Light">
            <choice>Prime Strato Light</choice>
          </enumChoice>
          <enumChoice choice="Single Strobe Light">
            <choice>Single Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="Double Strobe Light">
            <choice>Double Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="on/off">
            <choice>on/off</choice>
          </enumChoice>
        </enumVal>
        <label>ACC#2 Light Effect</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs To Factory Specs" CV="125" default="1"/>
    </resets>
  </decoder>
</decoder-config>
