<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2002, 2005, 2006, 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-4-15-2.xsd">
  <version author="Michael Mosher" version="1" lastUpdated="20070824"/>
  <version author="Michael Mosher" version="2" lastUpdated="20080204"/>
  <version author="Michael Mosher" version="3" lastUpdated="20080222"/>
  <version author="Alain Le Marchand" version="3" lastUpdated="20140830"/>
  <!-- V1: Created from version 3 of the Digitrax_0SFX file -->
  <!-- V2: Update versions, bug fix, add SFX0416 -->
  <!-- V3: Add CV 133 & 134 -->
  <!-- V3: Add SFX006
            + re-factoring using Xinclude files
            + alignement on 0SFX_Series6            -->
  <decoder>
    <family name="SFX Sound Only Decoders" mfg="Digitrax" lowVersionID="16" highVersionID="16">
      <model model="SFX004" numOuts="0" numFns="0" formFactor="HO" productID="SFX004" comment="8-bit Soundbug(TM) for DH165xx decoders &amp; others">
        <size length=".807" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="SFX0416" numOuts="6" numFns="8" formFactor="HO" productID="SFX0416" comment="Wired Mobile Decoder with SoundFX(R) &amp; FX3 Function">
        <output name="1" label="wht" connection="solder">
           <label xml:lang="it">"Bian"</label>
        </output>
        <output name="2" label="yel" connection="solder">
           <label xml:lang="it">"Gial"</label>
        </output>
        <output name="3" label="grn" connection="solder">
           <label xml:lang="it">"Verd"</label>
        </output>
        <output name="4" label="vlt" connection="solder">
           <label xml:lang="it">"Viol"</label>
        </output>
        <size length="1.2" width="0.42" height="0.21" units="inches"/>
      </model>
      <model model="SFX064" numOuts="6" numFns="8" formFactor="HO" productID="SFX064" comment="Wired Mobile Decoder with SoundFX(R) &amp; FX3 Function">
        <output name="1" label="wht" connection="solder">
           <label xml:lang="it">"Gial"</label>
        </output>
        <output name="2" label="yel" connection="solder">
           <label xml:lang="it">"Gial"</label>
        </output>
        <output name="3" label="grn" connection="solder">
            <label xml:lang="it">"Verd"</label>
        </output>
        <output name="4" label="vlt" connection="solder">
           <label xml:lang="it">"Viol"</label>
        </output>
        <output name="5" label="org" connection="solder">
           <label xml:lang="it">"Aran"</label>
        </output>
        <output name="6" label="gry" connection="solder">
           <label xml:lang="it">"Grig"</label>
        </output>
        <size length="1.22" width="0.66" height="0.25" units="inches"/>
      </model>
      <model model="SFX006" numOuts="0" numFns="0" formFactor="HO" productID="SFX006" comment="8, 12, 16-bit Soundbug(TM) for DH165xx decoders &amp; others">
        <size length=".807" width="0.67" height="0.25" units="inches"/>
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Lights</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="true">Horn/Whistle</functionlabel>
        <functionlabel num="3" lockable="false">Coupler</functionlabel>
        <functionlabel num="4" lockable="true">Air feat. disabled</functionlabel>
        <functionlabel num="5" lockable="true">Dyn. Brakes Fans/Water Pump</functionlabel>
        <functionlabel num="6" lockable="false">Notch UP/Blowdown</functionlabel>
        <functionlabel num="7" lockable="false">Xing Gate Airhorn/Notch DOWN/Wheel Slip</functionlabel>
        <functionlabel num="8" lockable="true">Mute</functionlabel>
        <functionlabel num="9" lockable="false">Brake squeal</functionlabel>
        <functionlabel num="10" lockable="false">Xing Gate Airhorn</functionlabel>
        <functionlabel num="11" lockable="false">Greaser</functionlabel>
        <functionlabel num="12" lockable="false">Safety Blowoff</functionlabel>
      </functionlabels>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes" transpRead="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <!-- CV 7-8 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/mfgVersionId.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/digitrax/cv21.22.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/digitrax/fxCVs.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/digitrax/cv62.63LightingOptions.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/digitrax/functionmap.xml"/>
      <!-- Sound options -->
      <variable CV="11" tooltip="Sound stays on after loco is de-selected" item="Sound Option 7" default="6">
        <enumVal>
          <enumChoice choice="Yes" value="0">
            <choice>Yes</choice>
            <choice xml:lang="it">Si</choice>
          </enumChoice>
          <enumChoice choice="No" value="6">
            <choice>No</choice>
          </enumChoice>
        </enumVal>
        <label>Sound Time Out</label>
        <label xml:lang="it">Durata Suono</label>
      </variable>
      <variable CV="58" item="Sound Setting 1" comment="0-15" default="9">
        <decVal max="15"/>
        <label>Master Volume</label>
        <label xml:lang="it">Volume principale</label>
        <comment>0-15</comment>
      </variable>
      <variable CV="60" item="Sound Option 1" include="SFX006">
        <enumVal>
          <enumChoice choice="GP38 Diesel"/>
          <enumChoice choice="GE Evo Diesel"/>
          <enumChoice choice="SD70 Diesel"/>
          <enumChoice choice="GP10 Diesel"/>
          <enumChoice choice="RS1 Diesel"/>
          <enumChoice choice="C420 Diesel"/>
          <enumChoice choice="Steam 1 (UP3985)"/>
          <enumChoice choice="Steam 2 (K27)"/>
        </enumVal>
        <label>Locomotive Sound Scheme</label>
        <label xml:lang="it">Schema Suoni Loco</label>
      </variable>
      <variable CV="60" item="Sound Option 1" exclude="SFX006">
        <enumVal>
          <enumChoice choice="Steam">
            <choice xml:lang="it">Vapore</choice>
          </enumChoice>
          <enumChoice choice="GP38 Diesel">
            <choice xml:lang="it">GP38 Diesel</choice>
          </enumChoice>
        </enumVal>
        <label>Steam/Diesel Option</label>
        <label xml:lang="it">Opzioni Vapore-Diesel</label>
      </variable>
      <variable CV="132" item="Sound Setting 2" default="127">
        <decVal/>
        <label>Notch Rate</label>
        <label xml:lang="it">Tasso di Notch</label>
      </variable>
      <variable CV="133" item="Sound Setting 15" default="63" tooltip=" 128=&gt;EXT cam, 1-127=&gt;DRIVER dia in inches">
        <decVal max="128"/>
        <label>Steam Chuff/CAM Config</label>
        <label xml:lang="it">Configura Chuff-CAM</label>
      </variable>
      <variable CV="134" item="Sound Setting 16" default="32" tooltip="32=100% ratio">
        <decVal/>
        <label>Steam Gear Ratio</label>
        <label xml:lang="it">Rapporto marcia Vapore</label>
      </variable>
      <variable CV="135" item="Sound Setting 3" default="0">
        <decVal max="64"/>
        <label>Volume When Muted</label>
        <label xml:lang="it">Volume quando silenziato</label>
      </variable>
      <variable CV="140" item="Sound Setting 4" default="60">
        <decVal max="64"/>
        <label>Prime Mover Volume</label>
        <label xml:lang="it">Volume motore principale</label>
      </variable>
      <variable CV="141" item="Sound Setting 5" default="25">
        <decVal max="64"/>
        <label>Bell Volume</label>
        <label xml:lang="it">Volume Campana</label>
      </variable>
      <variable CV="142" item="Sound Setting 6" default="60">
        <decVal max="64"/>
        <label>Horn/Whistle Volume</label>
        <label xml:lang="it">Volume Tromba/Fischietto</label>
      </variable>
      <variable CV="143" item="Sound Setting 7" default="30">
        <decVal max="64"/>
        <label>Air Features Volume</label>
        <label xml:lang="it">Volume Aria Compressa</label>
      </variable>
      <variable CV="145" item="Sound Setting 9" default="40">
        <decVal max="64"/>
        <label>Misc Volumes (reserved)</label>
        <label xml:lang="it">Volume vari (riservata)</label>
      </variable>
      <variable CV="146" item="Sound Setting 10" comment="24msec counts" default="7">
        <decVal max="100"/>
        <label>Bell Rate</label>
        <label xml:lang="it">Frequenza Campana</label>
        <comment>24msec counts</comment>
        <comment xml:lang="it">in passi da 24msec</comment>
      </variable>
      <variable CV="147" item="Sound Setting 11" default="2" tooltip="1= approx. 2 sec">
        <decVal max="64"/>
        <label>Air Drier Rate</label>
        <label xml:lang="it">Frequenza Compressore</label>
      </variable>
      <variable CV="148" item="Sound Setting 12" default="30">
        <decVal/>
        <label>Compressor Run/Popoff Rate</label>
        <label xml:lang="it">Frequenza compressore Run/Popoff</label>
      </variable>
      <variable CV="149" item="Sound Setting 13" default="20">
        <decVal/>
        <label>Compressor On Time</label>
        <label xml:lang="it">Tempo accensione Compressore</label>
      </variable>
      <!-- Horn Selector for Series 4 Soundbugs(TM) -->
      <variable CV="150" item="Sound Option 2" default="0" exclude="SFX006">
        <enumVal>
          <enumChoice choice="Standard Horn">
            <choice>Standard Horn</choice>
            <choice xml:lang="it">Tromba standard</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn">
            <choice>Playable Horn</choice>
            <choice xml:lang="it">Tromba modulabile</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn">
            <choice>Alternate Horn</choice>
            <choice xml:lang="it">Tromba alternativa</choice>
          </enumChoice>
        </enumVal>
        <label>Horn Selector</label>
        <label xml:lang="it">Selettore Tromba</label>
      </variable>
      <!-- Horn Selector for Series 6 Soundbugs(TM) - Diesel -->
      <variable CV="150" item="Sound Option 2" include="SFX006">
        <qualifier>
          <variableref>Sound Option 1</variableref>
          <relation>le</relation>
          <value>5</value>
        </qualifier>
        <enumVal>
          <enumChoice choice="Default Horn">
            <choice>Standard Horn</choice>
            <choice xml:lang="it">Tromba Standard</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 1">
            <choice>Alternate Horn 1</choice>
            <choice xml:lang="it">Tromba alternativa 1</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 2">
            <choice>Alternate Horn 2</choice>
            <choice xml:lang="it">Tromba alternativa 2</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 3">
            <choice>Alternate Horn 3</choice>
            <choice xml:lang="it">Tromba alternativa 3</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 4">
            <choice>Alternate Horn 4</choice>
            <choice xml:lang="it">Tromba alternativa 1</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 5">
            <choice>Alternate Horn 5</choice>
            <choice xml:lang="it">Tromba alternativa 2</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 6">
            <choice>Alternate Horn 6</choice>
            <choice xml:lang="it">Tromba alternativa 3</choice>
          </enumChoice>
          <enumChoice choice="Alternate Horn 7">
            <choice>Alternate Horn 7</choice>
            <choice xml:lang="it">Tromba alternativa 3</choice>
          </enumChoice>
          <enumChoice choice="Playable Default Horn" value="128">
            <choice>Playable Default Horn</choice>
            <choice xml:lang="it">Tromba alternativa 128</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 1">
            <choice>Playable Horn 1</choice>
            <choice xml:lang="it">Tromba alternativa 129</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 2">
            <choice>Playable Horn 2</choice>
            <choice xml:lang="it">Tromba alternativa 130</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 3">
            <choice>Playable Horn 3</choice>
            <choice xml:lang="it">Tromba alternativa 131</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 4">
            <choice>Playable Horn 4</choice>
            <choice xml:lang="it">Tromba alternativa 132</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 5">
            <choice>Playable Horn 5</choice>
            <choice xml:lang="it">Tromba alternativa 133</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 6">
            <choice>Playable Horn 6</choice>
            <choice xml:lang="it">Tromba alternativa 134</choice>
          </enumChoice>
          <enumChoice choice="Playable Horn 7">
            <choice>Playable Horn 7</choice>
            <choice xml:lang="it">Tromba alternativa 135</choice>
          </enumChoice>
        </enumVal><label>Horn Selector</label><label xml:lang="it">Selettore Tromba</label></variable>
      <!-- Whistle Selector for Series 6 Soundbugs(TM) - Steam -->
      <variable CV="150" item="Sound Option 3" include="SFX006">
        <qualifier>
          <variableref>Sound Option 1</variableref>
          <relation>gt</relation>
          <value>5</value>
        </qualifier>
        <enumVal>
          <enumChoice choice="Default Whistle">
            <choice>Standard Whistle</choice>
            <choice xml:lang="it">Fischietto Standard</choice>
          </enumChoice>
          <enumChoice choice="Alternate Whistle 1">
            <choice>Alternate Whistle 1</choice>
            <choice xml:lang="it">Fischietto alternativa 1</choice>
          </enumChoice>
          <enumChoice choice="Alternate Whistle 2">
            <choice>Alternate Whistle 2</choice>
            <choice xml:lang="it">Fischietto alternativa 2</choice>
          </enumChoice>
          <enumChoice choice="Playable Default Whistle" value="128">
            <choice>Playable Default Whistle</choice>
            <choice xml:lang="it">Fischietto alternativa 128</choice>
          </enumChoice>
          <enumChoice choice="Playable Whistle 1">
            <choice>Playable Whistle 1</choice>
            <choice xml:lang="it">Fischietto alternativa 129</choice>
          </enumChoice>
          <enumChoice choice="Playable Whistle 2">
            <choice>Playable Whistle 2</choice>
            <choice xml:lang="it">Fischietto alternativa 130</choice>
          </enumChoice>
        </enumVal><label>Whistle Selector</label><label xml:lang="it">Selettore Fischietto</label></variable>
      <variable CV="151" item="Sound Option 5" default="48">
        <decVal max="64"/>
        <label>Peak Speed for Auto coupler/brake on dir change</label>
        <label xml:lang="it">Velocità picco per freni/aggancio automatico per cambio direzione</label>
      </variable>
      <variable item="Sound Project Author ID" CV="152" default="221" readOnly="yes" tooltip="0xDD(221) = Digitrax">
        <decVal/>
        <label>Sound Project Author ID</label>
        <label xml:lang="it">ID autore progetto Suono</label>
      </variable>
      <variable item="Sound Project ID" CV="153" default="2" readOnly="yes" exclude="SFX006">
        <decVal/>
        <label>Sound Project ID</label>
        <label xml:lang="it">ID progetto Suono</label>
      </variable>
      <variable item="Sound Project ID" CV="153" default="168" readOnly="yes" include="SFX006">
        <decVal/>
        <label>Sound Project ID</label>
        <label xml:lang="it">ID progetto Suono</label>
      </variable>
      <variable CV="154" item="Sound Setting 14" default="60">
        <decVal max="64"/>
        <label>Steam Blowdown/Safety Volume</label>
        <label xml:lang="it">Volume Spegnimento/Sicurezza Vapore</label>
      </variable>
      <variable CV="155" item="Sound Option 6" default="0" tooltip="Not supported on early EVO">
        <enumVal>
          <enumChoice choice="Automatic">
            <choice>Automatic</choice>
            <choice xml:lang="it">&gt;Automatic</choice>
          </enumChoice>
          <enumChoice choice="Semi-Automatic">
            <choice>Semi-Automatic</choice>
            <choice xml:lang="it">&gt;Semi-Automatic</choice>
          </enumChoice>
          <enumChoice choice="Manual">
            <choice>Manual</choice>
            <choice xml:lang="it">&gt;Manuale</choice>
          </enumChoice>
        </enumVal>
        <label>Notching Mode</label>
        <label xml:lang="it">Modalità Notch</label>
        <comment>Not supported on early EVO</comment>
        <comment xml:lang="it">Non supportato dai primi EVO</comment>
      </variable>
      <variable CV="157" item="Sound Option 4" include="SFX006">
        <enumVal>
          <enumChoice choice="Default Bell">
            <choice>Standard Bell</choice>
            <choice xml:lang="it">Campana Standard</choice>
          </enumChoice>
          <enumChoice choice="Alternate Bell 1">
            <choice>Alternate Bell 1</choice>
            <choice xml:lang="it">Campana alternativa 1</choice>
          </enumChoice>
          <enumChoice choice="Alternate Bell 2">
            <choice>Alternate Bell 2</choice>
            <choice xml:lang="it">Campana alternativa 2</choice>
          </enumChoice>
          <enumChoice choice="Alternate Bell 3">
            <choice>Alternate Bell 3</choice>
            <choice xml:lang="it">Campana alternativa 3</choice>
          </enumChoice>
        </enumVal>
        <label>Bell Selector</label>
        <label xml:lang="it">Selettore Campana</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="8">
        <label>Reset All CVs</label>
        <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
      <factReset label="Reset All CVs except speed table" CV="8" default="9">
        <label>Reset All CVs except speed table</label>
        <label xml:lang="it">Reset delle CV salvo Tabella Velocità ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
  <pane>
    <column>
      <display item="Sound Project Author ID"/>
      <display item="Sound Project ID"/>
    </column>
    <name>Digitrax</name>
  </pane>
</decoder-config>
