<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2005, 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.                                                      -->
<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="Peter Osborne" version="1" lastUpdated="20090101"/>
  <version author="Bill Chown" version="2" lastUpdated="20090111"/>
  <version author="Peter Ulvestad" version="3" lastUpdated="20091011"/>
  <version author="Alain Le Marchand" version="4" lastUpdated="20150427"/>
  <version author="Alain Le Marchand" version="4.1" lastUpdated="20150501"/>
  <!-- Ver. 1 - made from the MRC_Athearn Big Boy or Challenger file (Peter Osborne) prosborne@sbcglobal.net-->
  <!-- heavily rebuilt for N Big Boy and Challenger Bill Chown orrrbrit2004@yahoo.com -->
  <!-- works for both loco types, despite apparent differences in the documentation -->
  <!-- Ver. 2 - reset default values, small errors corrected -->
  <!-- Ver. 3 - Moved Consist functions to Consist pane, Cleaned up sound level pane -->
  <!-- Ver. 4 - New family for all MRC G scale: "Sound Decoders - G Scale"     -->
  <!--          File MRC_soundbrilliance1819.xml renamed MRC_sound1819.xml     -->
  <!--          Added function labels                                          -->
  <!-- Ver 4.1  Regular CV21 on Consist pane                                   -->
  <!--          Bell Ring Rate (CV54) on Sound pane                            -->
  <decoder>
    <family name="Sound Decoders - G Scale" mfg="MRC" lowVersionID="32" highVersionID="32" comment="Synchronized Sound Brilliance(TM) Decoders">
      <model model="1819 - G Scale - Steam" maxTotalCurrent="5A" extFnsMRC="yes">
        <!-- note All 28 functions are NMRA compatible -->
        <size length="70.5" width="34" height="11.4" units="mm"/>
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Lights</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="true">Whistle</functionlabel>
        <functionlabel num="3" lockable="false">Air Release/Mars light</functionlabel>
        <functionlabel num="4" lockable="false">Coupler</functionlabel>
        <functionlabel num="5" lockable="false">Brake Release/Squeal</functionlabel>
        <functionlabel num="6" lockable="false">Conductor/Rail Clack</functionlabel>
        <functionlabel num="7" lockable="false">Fire Box</functionlabel>
        <functionlabel num="8" lockable="false">Injector</functionlabel>
        <functionlabel num="9" lockable="false">Metal Crank</functionlabel>
        <functionlabel num="10" lockable="false">Water</functionlabel>
        <functionlabel num="11" lockable="false">Blower Hiss</functionlabel>
        <functionlabel num="12" lockable="false">Master Volume</functionlabel>
        <functionlabel num="13" lockable="false">Short Air Release</functionlabel>
        <functionlabel num="14" lockable="false">Air Hose Firing</functionlabel>
        <functionlabel num="15" lockable="false">Flange Noise</functionlabel>
        <functionlabel num="16" lockable="false">Shoveling</functionlabel>
        <functionlabel num="17" lockable="false">Coal Auger</functionlabel>
        <functionlabel num="18" lockable="false">Bell Select</functionlabel>
        <functionlabel num="19" lockable="false">Whistle Select</functionlabel>
        <functionlabel num="20" lockable="false">Bell Ring Rate</functionlabel>
        <functionlabel num="21" lockable="false">Bell Volume</functionlabel>
        <functionlabel num="22" lockable="false">Whistle Volume</functionlabel>
        <functionlabel num="23" lockable="false">Chuff Volume</functionlabel>
        <functionlabel num="24" lockable="false">Chuff Select</functionlabel>
        <functionlabel num="25" lockable="false">Air Release</functionlabel>
        <functionlabel num="26" lockable="false">Sand Dropping</functionlabel>
        <functionlabel num="27" lockable="false">Loco Sounds</functionlabel>
        <functionlabel num="28" lockable="false">Loco Sounds</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" default="0" tooltip="sets the motor voltage at Speed Step 1, range 0(default)-32" 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">Startspannung</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="3" item="Accel" default="8" tooltip="Sets the acceleration rate (delay or momentum), range 0(default)-32" 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="8" tooltip="Sets the deceleration rate (delay or momentum), range 0(default)-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Deceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="5" item="Vhigh" default="32" tooltip="sets the motor voltage at top Speed Step, range 0-32(default)" 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>
      <variable CV="7" item="Decoder Version" readOnly="yes" tooltip="=32 for G Gauge Steam Sound, Read Only" default="32">
        <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" tooltip="=143 for MRC, 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/cv29table3-28.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29analog.xml"/>
      <variable CV="49" default="2" item="Sound Setting 1" tooltip="O=Off, 1=Low, 2=Mid(default), 3=High" comment="Range 0-3">
        <decVal max="3"/>
        <label>Master Volume Control</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="50" item="Sound Option 2" default="4" tooltip="range 0-33" comment="MRC datasheet Range 0-33">
        <decVal max="33"/>
        <label>Whistle Type</label>
        <comment>MRC datasheet Range 0-33</comment>
      </variable>
      <variable CV="51" item="Sound Setting 2" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Whistle Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="52" item="Sound Group 1 Option 3" default="0" tooltip="8 bell versions, range 0-7" comment="Range 0-7">
        <decVal max="7"/>
        <label>Bell Type</label>
        <comment>Range 0-7</comment>
      </variable>
      <variable CV="53" item="Sound Setting 3" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Bell Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="54" item="Sound Group 3 Option 2" default="10" tooltip="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 item="Sound Group 1 Option 4" CV="55" default="0" tooltip="12 chuff versions, range 0-11" comment="Range 0-11">
        <decVal max="11"/>
        <label>Chuff type</label>
        <comment>Range 0-11</comment>
      </variable>
      <variable CV="56" item="Sound Setting 4" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Chuff volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="57" item="Sound Setting 5" default="1" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake Squeal Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable item="Sound Setting 6" CV="58" default="3" tooltip="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="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Blower Hiss Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="60" item="Sound Setting 8" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Fire box door volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="61" item="Sound Setting 11" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Injector Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="62" item="Sound Setting 12" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="63" item="Sound Setting 13" default="0" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Pump Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="64" item="Sound Setting 14" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Rail Clack Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <variable CV="105" item="User Id #1" default="0" tooltip="range 0-255, code your own ID">
        <decVal max="255"/>
        <label>User ID #1</label>
        <label xml:lang="it">Id Utente #1</label>
        <label xml:lang="fr">CV Utilisateur #1</label>
        <label xml:lang="de">Benutzer-CV #1</label>
      </variable>
      <variable CV="106" item="User Id #2" default="0" tooltip="range 0-255, code your own ID">
        <decVal max="255"/>
        <label>User ID #2</label>
        <label xml:lang="it">Id Utente #2</label>
        <label xml:lang="fr">CV Utilisateur #2</label>
        <label xml:lang="de">Benutzer-CV #2</label>
      </variable>
      <variable CV="112" item="Sound Setting 15" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Conductor volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="114" item="Sound Option 6" default="1" tooltip="range 0-3, default 3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Pump Type</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable item="Sound Option 7" CV="115" default="1" tooltip="range 0(off) or 1(enable)(Default)" comment="Air brake squeal">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Air brake squeal enable/disable</label>
        <comment>Air brake squeal</comment>
      </variable>
      <variable CV="118" item="Sound Setting 16" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Shoveling volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="119" item="Sound Setting 17" default="3" tooltip="range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling Fire Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable CV="120" item="Sound Group 3 Option 5" default="12" tooltip="range 0-30, default 12" comment="Range 0-30">
        <decVal max="30"/>
        <label>Chuff Rate</label>
        <comment>Range 0-30</comment>
      </variable>
      <variable CV="121" item="Sound Group 3 Option 6" default="3" tooltip="range 0-7" comment="Range 0-7">
        <decVal max="7"/>
        <label>Chuff Start Point</label>
        <comment>Range 0-7</comment>
      </variable>
      <variable CV="122" item="Sound Group 1 Option 6" default="1" tooltip="range 0(single) or 1(double)(Default)" comment="MRC docs, use for articulated locomotives">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Double chuff enable</label>
        <comment>MRC docs, use for articulated locomotives</comment>
      </variable>
      <variable CV="123" item="EMF Static Config" default="0" tooltip="range 0(off)(Default) or 1(enable)">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Load Control Back EMF</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>
</decoder-config>
