<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2005, 2006, 2007, 2008 All rights reserved -->
<!-- $Id: MRC_soundbrilliance1637.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- 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 Ulvestad" version="3" lastUpdated="20091011"/>
  <version author="Peter Ulvestad" version="2" lastUpdated="20090904"/>
  <version author="Charles Dearden -charlied@comcen.com.au" version="1" lastUpdated="20080530"/>
<!-- made from the MRC_1639 file by Richard Sauerbrun -->
<!-- Version 2 - Added tooltips -->
<!-- Version 3 - Added missing Consist direction -->
  <decoder>
    <family name="Brilliance Sound Decoders" mfg="MRC" lowVersionID="32" highVersionID="32">
      <model model="Synch Steam Sound 1637" numOuts="2" numFns="12" connector="NMRAmedium" maxTotalCurrent="1.5A" extFnsMRC="yes">
<!-- note only F0 to F12 are NMRA compatible -->
        <size length="33" width="10.5" height="5.0" units="mm"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <variable label="Short Address" CV="1" tooltip="CV1 sets the Short, Primary or 2-digit address [range 1-127]" item="Short Address" default="3">
        <shortAddressVal/>
        <label>Short Address</label>
      </variable>
      <variable label="Start Voltage" CV="2" tooltip="CV2 sets the motor voltage at Speed Step 1 [range 0-32]" item="Vstart" default="0">
        <decVal max="32"/>
        <label>Start Voltage</label>
      </variable>
      <variable label="Acceleration" CV="3" tooltip="CV3 sets the acceleration rate (delay) [range 0-32]" item="Accel" default="0">
        <decVal max="32"/>
        <label>Acceleration</label>
      </variable>
      <variable label="Deceleration" CV="4" tooltip="CV4 sets the deceleration rate (delay) [range 0-32]" item="Decel" default="0">
        <decVal max="32"/>
        <label>Deceleration</label>
      </variable>
      <variable label="Top Voltage" CV="5" tooltip="CV5 sets the motor voltage at the top Speed Step [range 0-32]" item="Vhigh" default="32">
        <decVal max="32"/>
        <label>Top Voltage</label>
      </variable>
      <variable label="Version ID" CV="7" readOnly="yes" tooltip="CV7 is the Decoder ID,  Read Only" item="Decoder Version">
        <decVal/>
        <label>Version ID</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" tooltip="CV8 is the Manufacturer ID, MRC-143, Read Only" item="Manufacturer" default="143">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Long Address" CV="17" tooltip="CVs17 and 18 set the Extended (4 digit) address, [range 128-9999]" item="Extended Address">
        <longAddressVal/>
        <label>Long Address</label>
      </variable>
      <variable label="Advanced Consist Address" CV="19" tooltip="CV19 sets the Advanced Consist address, [range 0-127]" mask="XVVVVVVV" item="Consist Address" default="0">
        <decVal max="127"/>
        <label>Advanced Consist Address</label>
      </variable>
      <variable label="Locomotive Direction In Consist" CV="19" mask="VXXXXXXX" item="Consist Direction">
        <enumVal>
          <enumChoice choice="Normal">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Reversed">
            <choice>Reversed</choice>
          </enumChoice>
        </enumVal>
        <label>Locomotive Direction In Consist</label>
      </variable>
      <variable label="Consist Function" CV="21" tooltip="CV21 selects the address accessory functions will respond to" mask="XXXXXXXV" item="Functions Respond To" default="0">
        <enumVal>
          <enumChoice choice="Locomotive Address Only">
            <choice>Locomotive Address Only</choice>
          </enumChoice>
          <enumChoice choice="Consist Address Only">
            <choice>Consist Address Only</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Function</label>
      </variable>
      <variable label="Normal Direction of Motion" CV="29" tooltip="CV29 [ '1' bit (LSB)] sets the direction of motion" mask="XXXXXXXV" item="Locomotive Direction">
        <enumVal>
          <enumChoice choice="Forward">
            <choice>Forward</choice>
          </enumChoice>
          <enumChoice choice="Reverse">
            <choice>Reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Normal Direction of Motion</label>
      </variable>
      <variable label="Speed Steps" CV="29" tooltip="CV29 ['2' bit] sets the Speed Step resolution" mask="XXXXXXVX" item="Speed Step Mode" default="1">
        <enumVal>
          <enumChoice choice="14">
            <choice>14</choice>
          </enumChoice>
          <enumChoice choice="28/128 (recommended)">
            <choice>28/128 (recommended)</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Steps</label>
      </variable>
      <variable label="Analog Conversion Mode" CV="29" tooltip="CV29 ['4' bit] determines if loco motor will respond to DCC only (OFF) or DC and DCC (ON)" mask="XXXXXVXX" item="Analog (DC) Operation" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Conversion Mode</label>
      </variable>
      <variable label="Use Speed Table" CV="29" tooltip="CV29 ['8' bit] determines if loco will use Speed Table or not" mask="XXXVXXXX" item="Speed Table Definition">
        <enumVal>
          <enumChoice choice="Don't use Speed Table">
            <choice>Don't use Speed Table</choice>
          </enumChoice>
          <enumChoice choice="Use Speed Table">
            <choice>Use Speed Table</choice>
          </enumChoice>
        </enumVal>
        <label>Use Speed Table</label>
      </variable>
      <variable label="Addressing Mode" CV="29" tooltip="CV29 ['32' bit] sets the Addressing Mode" mask="XXVXXXXX" item="Address Format">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      <variable label="Sound On/Off" CV="49" tooltip="CV49 can turn off all sound" mask="XXXXXXXV" item="Sound Option 1" default="1">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Sound On/Off</label>
      </variable>
      <variable label="Whistle Type" CV="50" tooltip="CV50 selects the Whistle Type [range 0-11]" item="Sound Option 2" default="3">
        <decVal max="11"/>
        <label>Whistle Type</label>
      </variable>
      <variable label="Whistle Volume" CV="51" tooltip="CV51 selects the Whistle Volume [range 0-3]" item="Sound Setting 1" default="3">
        <decVal max="3"/>
        <label>Whistle Volume</label>
      </variable>
      <variable label="Bell Type" CV="52" tooltip="CV52 selects the Bell Type [range 0-3]" item="Sound Option 3" default="3">
        <decVal max="3"/>
        <label>Bell Type</label>
      </variable>
      <variable label="Bell Volume" CV="53" tooltip="CV53 selects the Bell Volume [range 0-3]" item="Sound Setting 2" default="3">
        <decVal max="3"/>
        <label>Bell Volume</label>
      </variable>
      <variable label="Bell Ring Rate" CV="54" tooltip="CV54 selects the Bell Ring Rate [range 0-50]" item="Sound Setting 3" default="3">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
      </variable>
      <variable label="Chuff Type" CV="55" tooltip="CV55 selects the Chuff Type (0-5=single chuff, 8-12=double chuff)[range 0-12]" item="Sound Option 4" default="0">
        <decVal max="12"/>
        <label>Chuff Type</label>
      </variable>
      <variable label="Chuff Volume" CV="56" tooltip="CV56 selects the Chuff Volume [range 0-3]" item="Sound Setting 4" default="3">
        <decVal max="3"/>
        <label>Chuff Volume</label>
      </variable>
      <variable label="Brake Squeal Volume" CV="57" tooltip="CV57 sets the Brake Squeal Volume [range 0-3]" item="Sound Setting 5" default="3">
        <decVal max="3"/>
        <label>Brake Squeal Volume</label>
      </variable>
      <variable label="Air Release Volume" CV="58" tooltip="CV58 sets the Air Release Volume [range 0-3]" item="Sound Setting 6" default="3">
        <decVal max="3"/>
        <label>Air Release Volume</label>
      </variable>
      <variable label="Blower Hiss Volume" CV="59" tooltip="CV59 sets the Blower Hiss Volume [range 0-3]" item="Sound Setting 7" default="3">
        <decVal max="3"/>
        <label>Blower Hiss Volume</label>
      </variable>
      <variable label="Random Noise Volume" CV="60" tooltip="CV60 sets the Random Noise Volume [range 0-3]" item="Sound Setting 8" default="3">
        <decVal max="3"/>
        <label>Random Noise Volume</label>
      </variable>
      <variable label="Injector Volume" CV="61" tooltip="CV61 sets the Injector Volume [range 0-3]" item="Sound Setting 11" default="3">
        <decVal max="3"/>
        <label>Injector Volume</label>
      </variable>
      <variable label="Coupling Volume" CV="62" tooltip="CV62 sets the Coupling Volume [range 0-3]" item="Sound Setting 12" default="3">
        <decVal max="3"/>
        <label>Coupling Volume</label>
      </variable>
      <variable label="Air Pump Type" CV="63" tooltip="CV63 selects the Air Pump Type [range 0-3]" item="Sound Option 5" default="0">
        <decVal max="3"/>
        <label>Air Pump Type</label>
      </variable>
      <variable label="Air Pump Volume" CV="64" tooltip="CV64 sets the Air Pump Volume [range 0-3]" item="Sound Setting 13" default="3">
        <decVal max="3"/>
        <label>Air Pump Volume</label>
      </variable>
      <variable label="User ID #1" CV="105" tooltip="CV105 sets the User ID #1 [range 0-255]" item="User Id #1" default="0">
        <decVal max="255"/>
        <label>User ID #1</label>
      </variable>
      <variable label="User ID #2" CV="106" tooltip="CV106 sets the User ID #2 [range 0-255]" item="User Id #2" default="0">
        <decVal max="255"/>
        <label>User ID #2</label>
      </variable>
      <variable label="Conductor Volume" CV="112" tooltip="CV112 sets the Air Pump Volume [range 0-3]" item="Sound Setting 14" default="3">
        <decVal max="3"/>
        <label>Conductor Volume</label>
      </variable>
      <variable label="Auto Brake Squeal Enable/Disable" CV="115" tooltip="CV115 turns Auto Brake Squeal On or Off" item="Sound Option 6" default="1">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Auto Brake Squeal Enable/Disable</label>
      </variable>
      <variable label="Coupling Sound Type" CV="116" tooltip="CV116 selects the Coupling Sound Type [Range 0,2,3]" item="Sound Option 7" default="3">
        <decVal max="3"/>
        <label>Coupling Sound Type</label>
      </variable>
      <variable label="Shoveling Volume" CV="118" tooltip="CV118 sets the Shoveling Volume [range 0-3]" item="Sound Setting 15" default="3">
        <decVal max="3"/>
        <label>Shoveling Volume</label>
      </variable>
      <variable label="Coupling Fire Volume" CV="119" tooltip="CV119 sets the Coupling Fire Volume [range 0-3]" item="Sound Setting 16" default="3">
        <decVal max="3"/>
        <label>Coupling Fire Volume</label>
      </variable>
      <variable label="Chuff Rate" CV="120" tooltip="CV120 sets the Chuff Rate [range 0-30]" item="Sound Setting 17" default="0">
        <decVal max="30"/>
        <label>Chuff Rate</label>
      </variable>
      <variable label="Chuff Start Point" CV="121" tooltip="CV120 sets the Chuff Start Point [range 0-5]" item="Sound Setting 18" default="0">
        <decVal max="5"/>
        <label>Chuff Start Point</label>
      </variable>
      <variable label="Select Speed Curve" item="Speed Table Selection" CV="124" default="0">
        <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>Select Speed Curve</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="125" default="1"/>
    </resets>
  </decoder>
</decoder-config>

