PROJECT_ID:		1-013  11/23/26
   ATSF 3751 BLW 2-Cylinder Steam Rod Engine 16-54 1/4 E Heavy Mountain  	
 	ATSF 3751.SPJ Version 8.2.15.10
 Change Note: This base version supports 44ksps WAV samples.
Change Note: This version implements use of sound output balance CVs (CV200-Cv205) for most secondary sounds.
ASM:		S8Yc16x8d4.asm	TEMPLATE
SDF:		Heavy Mountain S8Yc16x8d5 <DATEUP>.SDF
BASE CODE:	S8Yc16x8d4 -- Standard Coal Fired Steam Rod Engine,  16 Channel, SDF Version 5.0
MEMORY:	2-16 Mega bytes required
SDF5.0:	Requires -- 	 #INCLUDE	../SFX5_snd_cmd.INC
					and	 #INCLUDE	../SFX5_snd_macs.inc
 SOUND PROJECT (SPJ) SUPPORTS SDYH168DST DECODER WITH SINGLE OR MULTIPLE SPEAKERS
 SOUND PROJECT (SPJ) REQUIRES SDYH168DST DECODER WITH 16MB FLASH MEMORY
 44ksps PROJECT REQUIRES SOUNDLOADER V4.48 OR NEWER
 44ksps project requires sdyh168dst_8sept26 or newer 
DMF: Requires -- SW Ver 2.4 CV253=4 of Series 8 OR newer CV129 Configuration A =0
DST:    Needs -- SW Ver 2.5 CV253=11 of Series 8 OR newer 
XF:     Needs -- SW Ver 2.5 CV253=5 of Series 8 OR newer 
=====================================================================
 INITIAL INSTALL WILL FORCE_DEFAULT_CVSET	
 NOTE: THIS PROJECT CAN RESET MOST CVs WHEN CV8=8 RESET IS DONE AND CV60 IS CHANGED.
  MANUAL CVreset: Set CV188=0 AND THEN SET CV60=0 TO DO THE ALL SOUND CVS RESET...
  THE SPECIFIC CV AS TESTED VALUES FOR THIS SPJ WILL BE LOADED.
  DCC ADDRESS CVs (1,17,18,19,29) WILL NOT BE CHANGED.
              WARNING =====================================================
 When you install one of the new Series 7, 8 projects into an n-scale model that uses 1/2watt speakers:
 1) Load the project to the decoder
 2) Reset all the CVs including CV58 master volume to the as tested values (CV188=0 then CV60=0)
 3) Prior to testing the sound -- Change the value of CV58=5. The master volume must not be 7,8,or9, or greater.
 4) Then test the sound. 147 Series 7 decoders can output more than 1/2watt to your speaker.
 
 Revised postings will change CV58 to =5 going forward. 
 When you have full sized >1/2watt speakers (HO box, or scale sounds, or railmaster) 
 the project has been tested with CV58=9. G-scale large speakers may use even larger max volumes.
 ADJUST YOUR CV58 MASTER VOLUME DURING TESTING.
 WHEN YOU HAVE SPEAKERS THAT YOU KNOW THAT THEY CAN HANDLE MORE volume
 INCREMENT CV58 BY +1 UNTIL YOU HAVE THE SOUND THAT YOU WANT.
 NOTE: The decoder will overload protect itself when CV58 is increased too much.

=====================================================================
 Author:  John McMasters AnPRR https://groups.io/g/AnPRR/files
 	Custom sound scheme. NOV, 2026 NOT for resale.
	Project contributed to <||> SPJ Maker web site at Digitrax.com
 ----------------------------------------------------------------------------
 Creative Commons:
 PROJECT_ID:  1-013 ATSF 3751 BLW 2-Cylinder Steam Rod Engine Rod Engine 16-54 1/4 E Heavy Mountain 4-8-4 (c) by John McMasters SPJmaker@gmail.com AnPRR
 Original Recording: John McMasters
 PROJECT_ID:  1-013 ATSF 3751 BLW 2-Cylinder Steam Rod Engine Rod Engine 16-54 1/4 E Heavy Mountain 4-8-4 is licensed under a
 Creative Commons Attribution-ShareAlike 4.0 Unported License.
=====================================================================
 You should have received a copy of the license along with this
 work.  If not, see https://creativecommons.org/licenses/by/4.0/legalcode.txt
 ----------------------------------------------------------------------------
CHANNELS:	16
SERIES:	8
CV60=<0>=STEAM SOUND SCHEME <Enter Scheme 2 digits for Multi SPJ>
See Demo Sound Sample
https://www.youtube.com/watch?v=<video>
at:
https://www.youtube.com/channel/UCo03Fs3_U43yz_hLkZUUyOA
DO NOT use hyphens in replacement arguments (above) or file names. Use underscores instead.
see <ENTER HERE> in ASM file -- Modify these constants for your custom model 
----------------------------------------------------------------------------
    ATSF 3751   16-54 1/4 E Heavy Mountain 4-8-4	Steam Rod 

Specifications:
 Type and origin
 Power type	Steam
 Builder	Baldwin Locomotive Works
 Serial number	60004
 Model	16-54 1/4 E
 Build date	May 1927
 Rebuild date	1987–1991
 Configuration: • Whyte	4-8-4
 Gauge	4 ft 81⁄2 in (1,435 mm) standard gauge
 Driver dia.	80 in (2,032 mm)
 Axle load	73,000 lb (33,100 kg) (Originally 70,500 lb (32,000 kg))
 Adhesive weight	287,000 lb (130,000 kg) (Originally 270,000 lb (122,000 kg)
 Loco weight	478,100 lb (216,900 kg)
 Tender weight	396,246 lb (179,730 kg)
 Total weight	874,346 lb (396,600 kg)
 Fuel type	Coal (1927-1936), later converted to oil
 Fuel capacity	7,101 US gal (26,880 l  5,913 imp gal)
 Water cap.	20,000 US gal (76,000 l  17,000 imp gal)
 Boiler pressure	230 lbf/in2 (1.59 MPa)
 Originally 210 lbf/in2 (1.45 MPa)
 Cylinders	2
 Cylinder size	30 in × 30 in (762 mm × 762 mm)
 Performance figures
 Maximum speed	Over 100 mph (160 km/h)
 Power output	As built: 3,220 hp (2,400 kW)
 Tractive effort	65,981 lbf (293.50 kN)
 Factor of adh.	4.35
 Career
 Operators	Santa Fe (1927 to 1957)→(1991 to 1995)→BNSF (1995-present)
 			San Bernardino Railroad Historical Society
 Numbers	   • ATSF 3751
 Retired	1953
 Preserved	1958
 Restored	August 13, 1991
 Current owner	San Bernardino Railroad Historical Society
 Disposition	Undergoing 15 year boiler inspection/overhaul based at Redondo Junction, California

----------------------------------------------------------------------------
	INTRODUCTION
----------------------------------------------------------------------------
  This is the Sound Definition Language (SDL) file for a project that can be
  used for a 16bit LARGE FLASH MEMORY sound decoder for a typical locomotive. 
  MULTIPLE SOUND PROJECTS MAY BE STACKED INTO A "Y" Series 8 DECODER.
  EACH INDIVIDUAL SCHEME SPJ HAS ITS OWN SET OF CV VALUES, WAV FILES, SDL CODE.
  A GIVEN PROJECT WILL BE RUN BY SELECTING A 2 DECIMAL DIGIT CV60:
		CV60=10,11,12,13,14,15,16,17,18,19
		...
		CV60=70,71,72,73,74,75,76,77,78,79
  CV60=00,01,02,03,04,05,06,07,08,09 SELECT OLDER (X) Series 8 PROJECTS.
----------------------------------------------------------------------------

Features:
	Bells -- bells may be chained to play for simulation of rope pulls, bell 5 is 3 part sound.
	Estop -- F12 will trigger shutdown
 	BR Option User Sounds	--	motor sounds vary: idle blip, load sensing
 			Requires re-assembly with DEFINEd (BR_OPTION) = 0x01	for F1 bell ring (CANNOT DO SINGLE BR WHISTLE UNLESS COMPILED FLAT)
	Horns/Whistles -- Selectable, playable, signal toots
		Grade crossing horn plays rear horn sounds going backwards
		Analog Playable Horn/whistle/horn (horn runs that had the transition to higher pressure/ very loud modes)
	Brake Interlock	--F10 will lock motor at standstill until released
		Integrated automatic braking sounds on SF3
		All brakes are controlled by SF10 (formerly SF3) so that servo motor decoder braking could be syncronized
		EStop  on F12 On 	(disables motor movement until F12 OFF)
	16 Channels (1 primary/motor, 3 high priority/whistle/horn, 3 braking bell/air/fan/misc, secondary motor/articulated, auxilary/road/blowers/pumps, CLANKS,SNIFTER,SLIPS/road, blowers/pumps)
 	Auto rod clank cyl blow down (steam cocks open)
 	Coast after deceleration for variable cycles depending on speed
 	Coal grate,  Coal chute,
 	Water Tank Fill, Stoker, shovel, Steam Greaser, Oil Pump, Empty Ash Pan
	Function-activated cylinder cocks sound effect at any speed step
	Manual chuff mode (equivalent to setting the steam throttle i.e. Jonson Bar
	with F26+ and F27- as well as automatic...)

 RESET ALL CVs EXCLUDING DCC ADDR TO DESIGN DEFAULTS:
  	WHILE NOT MOVING (AT REST): F15 ON. F17 ON. THEN  F19 ON. 
  	AFTER ALL ANNOUNCEMENTS RESTART PROJECT F12.
  CVRESET EVENT WILL ALSO BE TRIGGERED BY CV8=8 BUT RESET WILL NOT BE ALLOWED EXCEPT AS ABOVE.
  BIT7 OF CV188 WILL DISABLE FUTURE RESETS >>>
  TOGGLE OFF FOR FUTURE RESET::::::::::::
  
COLD STARTUP FUNCTIONS:
	Play Startup Sounds: F10 (set brake) 
	Toggle F12 On/Off	
 ----------------------------------------------------------------------------
	DESIGN NOTES 
 ----------------------------------------------------------------------------
 NOTE: Make sure that the model CV133 Steam Chuff/CAM config, 128=>EXT cam, 
 	1-200=>DRIVER dia in inches[63]
 	and CV134 Gear ratio are adjusted so that THERE ARE 4 STANDARD NON-ARTICULATED
 	CHUFFS PER REVOLUTION.
 
 CV9 sets the motor frequency in Khz from 4-50KHz. CV9=0 /dflt sets 16KHz. 
 CV10 trims motor tach gain for BEMF, 
 CV10:127 doubles tachometer sensitivity and will slow 1% step (CV19:0 /64) from 
 about 1 scale mph to around 0.5mph. 
 
 The range of CV134/gear ratio is increaased so you can go from 10/32 to 96/32 ratio
 	 (96=3:1 chuff rate/per driver rev)
 
 The new autochuff uses the actual motor speed directly (BEMF) instead of the S6 method 
 	that uses inferred pwm_SOUND speed as chuff source number for rate. 
 	This means the chuffs follow motor speed as the loco loads up and slows down.  
 	To get most effect on a grade/high load, you would lower CV57 so the motor slows 
 	under load, since the BEMF will not stabilize as much.
 	When BEMF is OFF [CV57 =0] or if CV129.1 = 1 then the old default S6 type pwm value 
 	will be used
 
 BEMF (Motor Controls)
 	CV65=2 KICK START
 	CV3=8 ACCELERATION MOMENTUM (How long it takes to speed up to selected throttle value)
 	CV4=6 DECELERATION MOMENTUM (How long it takes to slow down to selected throttle value)
 	CV9=0 DRIVE FREQ.
 	CV55=128 EMF STATIC
 	CV56=80 EMF DYNAMIC
 	CV57=8 (bits 0-3) BEMF (EMF DROOP) (How quick does decoder make the motor react to load)
 	CV129=0 (1=PW6, 0=PW7) POWER (Selects logic to follow changes in motor speed)
	
SET -- SCALE_MIN,2,0	Range Volume Scale 1-14 to a value between 2-15
						Drifting volume will diminish to this level.

Limits:
	One SPJ project SDF of multiple schemes can run up to 64Kbytes of code.
	A single scheme has a 4Kbyte GOTO instruction branch range. (e.g. 2K 2-byte or 1K 4-byte instructions)
	That means that a BRANCH_TO an address beyond the range limit will not execute...

Function Key Mapping:
 DECODERS WITH XF MAPPING CAN REMAP FUNCTION KEYS WITHOUT CODE CHANGES.
 
 This version (v7) includes CODE sections for mapping functions to default to other manufactures F0-F28 keys. 
 Or you can edit the TRIG include file, re-assemble and make your own custom function mapping.
 
 HOW LEGACY FUNCTION KEY MAPPING WORKS
 Mapping functions to default to other manufactures F0-F28 keys:
 Mapping is done by using symbolic constants to define the hex value for each function key. 
 For example TRIG_WHISTLES_ON is a value of 0x09. 
 The hex value 0x09 is the physical decoder function key (F2 in this case). 
 This is the same as the standard include for TRIG_SF2	 EQU  0x09     byte 1, bit1.  
 And the new symbolic constant is TRIG_WHISTLES_ON	 EQU  0x09     2-F2: byte 1, bit1. 
 The base code CAN use the remapped symbolic name for all functions. 
So any change to the physical assignment is masked.
Whereas TRIG_SF4	 EQU 0x0B now has a symbolic value of TRIG_OPENCYLS_ON EQU 0x0B 4-F4: CYL COCKS
One of the re-mapped values is TRIG_SAFETY_ON	 EQU  0x24 25-F25: BLOWOFF
This means that when F25 is toggled the SAFETY BLOWOFF sound function will play.
I have annotated eac EQU statement with the physical decoder button number 
for example: 2-F2: byte 1, bit1
See S8YTrig.INC for F-Key values. The ASM code has the INCLUDE for this file name.							

----------------------------------
NOTES:
 	

----------------------------------
     FUNCTION KEYS DEFINED:   
----------------------------------
(A) Function Key Usage: 
F0- Lights  [disables start-up sounds when on during initialization]
F1- Bell (Bells1-4 may be chained)	/ BR Short W
F2- Whistle CV150 selects Horn/Whistle type	(Playable when bit7 of CV150 is on)	-- Shorter sounds when F3 ON
F3- Coupler / Shorter Whistle
F4- Blowdown / Safety Blowoff / BR Guards W / Air Snd disable
F5- Open Cyl Cocks 
F6- Light function / BR User S2
F7-	Alt Grade Crossing	/ BR User S3
F8- Mute control 
F9- UnCouple / Coupler disconnect	[Auto-coupler/brake set by  CV151 max spd]
		Lift ring and connect plays with F9 when F9 is ON
		Steam Wheel Slip on start-up (Enable) /auto coupler
F10- BRAKE TO STOP Independent Brake/Train Brake	[Leave F3 OFF for auto brakes] 
			[F10 on will enable servo motor stop.]
			Toggle OFF plays directional toots WHEN F3 ON
		1) Slow servo motor to stop using CV3,CV4 momentum values (where
			larger value (50) takes longer to slow/accelerate)
		2) Lock motor at standstill to simulate engine brake set. Servo
			will not resume until F10 is toggled off.
		3) While brake is set toggle F3 on to begin uncoupling. SF3 will play 
			lift ring noise in preparation for disconnect. 
		4) Releasing the brake and advancing the throttle will play coupler
			disconnect when F3 is already on.
		Brake rate is determined by BEMF and CV3,4
	 	Auto Coupler coupler clank and BRAKE if F3 is ON,  is dir chng and last PK spd below e.g. CV151
			[Auto-coupler/brake set by  CV151 max spd] SF3 ON for un-coupler
			[Leave F3 on for auto coupler]	
 	F10 OFF -- Release Brake [not F10 Apply else Release] 
F11- Train Brake (moving) / Hand Brake 
F12- EStop when moving and shut-down (disables motor movement until OFF)
F13- Coal Fill, Oil Fill     
F14- Air Compressor Pump 
F15- User Sound / Option / Hand Brake
F16- Water Fill
F17- Shovel Coal, Pump Oil / About / Reset
F18- Sanding
F19- Short Air Let Off / Replace Whistle with Horn 
F20- Coal Grate Shaker, Empty Ash Pan
F21- Greaser
F22- Blower	
F23- Flanges
F24- Reverser -- Jonson Bar --/ Wheel Slip (moving 
F25- Safety Blowdown
F26- Notch UP 	Leave on for increased load
		Leave F26 OFF to use run trim option: [will increment 
		notches on acceleration events 
		F27 will decrement run trim.
F27- Notch down	-- Leave ON for decreased load
		Toggle F27 ON Is notch down for EVENT, 
			integrate -VE in SPEED_DELTA
		F27 will decrement run trim (i.e., use to select lower trim value).
		Steam=Wheel-slip, when CV155 is not 0 and F3 ON
F28- Heavy Load  (press for increased load)


	==================================  
(B) Sound FX defined CV's: 	[decoder CV8=8  reset value in brackets]
FOR INFO ONLY -- DO NOT SET YOUR DECODER TO THESE DEFAULT VALUES. USE THE CVreset ROUTINE ABOVE.
CV1   2 Digit DCC Address 1 3-127, [3]
CV3   Momentum acceleration rate, 0-31, 31=max, (F10 uses after braking to stop) [30]
CV4   Momentum deceleration rate, 0-31, 31=max, (F10 uses for braking to stop) [30]
CV7   Version ID 51=Older decoders, 16=Newer SFX2 decoders
CV8   SCV_RESET  Reset Decoder values to factory =129=Digitrax
CV9   Drive Freq 0-16 [0]
CV10  TACH 0,127 Ver3 default0= Normal 1/1, 127= Half 1/2
CV19  Advanced Consist [0]
CV21  Advanced Consist F0-F8 [248] 
CV22  Advanced Consist F3-F12 [52] 
CV23  Acceleration Mass 0-255 [30] 
CV24  Deceleration Mass 0-255 [30] 
CV29  Configuration Register  Speed steps, 2 /4 digit addressing, Analog Mode, Normal direction of travel, speed tables [6] 
CV49  FX effect: Forward Light (FOF) [0]
CV50  FX effect: Reverse Light (FOR) [0]
CV51  FX effect: Function 1 lead [0]
CV52  FX effect: Function 2 lead [0]
CV54  Road or Switching Mode [64,0,1]
CV55  EMF STATIC 0-255 [128]
CV56  EMF DYNAMIC 0-127 [80]
CV57  BEMF (bits 0-3)(EMF DROOP) [8] (How quick does decoder make the motor react to load)
CV58  Master Volume, 0-15, 0= max, (F8 used for Mute) [11] 
CV60  Scheme select CV, 0=Steam	[0]
CV64  Logic select CV, 0=Aux Logic output 64=Normal LED outputs	[64]
CV65  Kick Start 0-16 (special SDF Ver3 101)
CV105 SCV_USER_SDF_SUB_ID		CV105 	[xx] Sub ID is SUB id or project version
CV106 SCV_USER_SDF_FIX_ID		CV106 	[xx] FIX ID is change id or project release
CV129 SNDCV_CONFIGA POWER (1=PW6, 0=PW7)  [0](Selects logic to follow changes in motor speed)
CV132 Engine Notch rate						64-192	[128]
CV133 DRIVER Chuff/CAM config, 128=>EXT cam, 1-200=>DRIVER dia in inches [60]
CV134 Gear ratio trim, 32=100% ratio,	[41]  Range of CV134/gear ratio is increaased so you can go from 10/32 to 96/32 ratio (96=3:1 chuff rate/per driver rev)
CV135 vol level when MUTE action is triggered, e.g. F8=ON	[30]
CV139 Set to trigger distance event			0-64	[30]
CV140 PRIME mover Diesel/chuff exhaust vol	0-64	[50]
CV141 Bell Volume							0-64	[36]
CV142 WHISTLE/HORN vol						0-64	[42]
CV143 POPOFF AIR feature volume, DRYER, compressor, brake release Air sounds Volume 0-64 [49]
CV144 Engine brake volume 					0-64	[55]
CV145 Miscellaneous volume 					0-64	[51] 
CV146 Delay (24mS counts) between Bells 1-100	[01] 
CV147 Time between DRYER cycles Users normally reset DRYER rate to 10 or more[27] 
CV148 Time between Airpump/Compressor cycles	[30] 
CV149 Airpump/Compressor run time				[52] 
CV150 Horn/Whistle Selector,0=std ,  1/7 =Alternate, +128 for Playable volume [0]
			HORN SELECTED CV150:
						Decimal	HEX			Bit
											7654 3210
				1		0		0x00		0000 0000
				2		1		0x01		0000 0001
				3		2		0x02		0000 0010
				4		3		0x03		0000 0011
				5		4		0x04		0000 0100
				6		5		0x05		0000 0101
				7		6		0x06		0000 0110
				PLAYABLE:
				1		128		0x80		1000 0000
				2		129		0x81		1000 0001
				3		130		0x82		1000 0010
				4		131		0x83		1000 0011
				5		132		0x84		1000 0100
						Decimal	HEX			Bit
CV151 speed limit FOR AUTOMATIC COUPLER/BRAKE on DIR chng. about 1/2MPH per unit
CV152 defines USER code for this SDF
CV153 is SUB id
CV154 Steam Blow down / Safety Volume 0-60 [49]
CV155 Notching mode 0=AUTO	[01] /STEAM Slip Mode: 0=AUTO	[00]
CV156 delay for HORN start in 27mS VALUES
CV157 is FOR bell selection 
	BELL SELECTED CV157:
						Decimal	HEX			Bit
											7654 3210
				1		0		0x00		0000 0000
				2		1		0x01		0000 0001
				3		2		0x02		0000 0010
				4		3		0x03		0000 0011
				5		4		0x04		0000 0100
CV158 DIGITRAX RESERVED
CV159 Grate Shaker Volume							0-64	[64]
CV160 VARIANT id or project version					0-254	[000]
CV161 Coal Stoker run time							0-254	[20]							
CV162 Water Injector Volume							0-64	[25]
CV163 Safety Run Time/ how often to check boiler pressure		0-64	[32]
CV164 Level in the guage/ Water Pump Cycle Time, percent full	0-64	 [19]
CV165 add fuel to firebox at 150lbs/ Stoker/oil pump run time	0-254	[20]	
CV166 Cutoff Speed for wheel slip chuffs			4-9	[9]
CV167 Cutoff Speed for Auto Cyl. Close Speed		0-64	[7]
CV168 Stoker Shovel / Oil Pump Volume				0-64	[32]
CV169 Cutoff Speed for high speed chuffs			40-99	[48]	
CV170 Cutoff Speed LOW	skips brake sounds			4-39	[12]
CV171 AUX GEN VOLUME								0-64	[40]
CV172 FAN MOTOR VOLUME								0-64	[30]
CV173 STEAM blowdown volume							0-64	[50]
CV174 POPOFF DRYER Air sounds Volume 				0-64	[49] 
CV175 Air PUMP / COMPRESSOR VOLUME					0-64	[40]
CV176 Rod Drive Volume								0-64	[30]			
CV177 Coupler Slack Volume							0-64	[31]
CV178 Steam Boiler Volume							0-64	[40]
CV179 Dynamic brake / Dynamo volume 				0-64	[55]
CV180 Delay brake apply / speed at which brake sounds begin to play	1-100 [12] 
CV181 Power Reverser volume							0-64	[40]
CV182 brake release Air sounds Volume 				0-64 	[32] 
CV183 Water fill / Coal Fill Volume					0-64	[54]
CV184 Steam Cocks Open Threshold Speed 				1-64	[24]
         NOTE: BIT VALUES IN CV185-188 ARE REQUIRED FOR SOUND OPTIONS             
CV185 bit values to disable features1:				0-128	[0]
		bit0 disable  HEP diesel =0 AUX GEN	=1			=1		
		bit1 disable hard automatic braking 			=2
		bit2 disable start up sounds					=4
		bit3 disable Fans								=8
		bit4 disable toots on direction change			=16
		bit5 disable grade crossing random play 		=32
		bit6 disable bell								=64
		bit7 Gen1-Gen2 Startup Sounds Opt				=128
CV186 bit values to disable additional features2 	0-128	[0]
		bit0 enable Diesel Low Idle=1		Disabled=0	=1=Enabled
		bit1 disable Chain bells 						1-4	=2
		bit2 disable Coal Stoker change to SHOVEL			=4
		bit3 disable BR Option User Sounds				=8=enabled
		bit4 disable Shaft Driven Compressor 			=16
		bit5 disable ALCO Idle Stumble=32 Disable=0		=32
		bit6 disable Builtin Idle Hunt	 0=Off, 1=On	=64
		bit7 disable Dual Engine / rear articulated	0 = Off =128 = Dual On
CV187 bit values to disable additional features3 	0-128 [0]
		bit0 disable Short Opt Horn/whistle	 Enabled=0,   =1=disabled
		bit1 disable Sync 4cyl			 Enabled=on=0,=2=disabled=NON-Articulated
		bit2 disable Bell on Idle Exit				=4
		bit3 disable Motor Lock  					=8
 		bit4 force startup sounds					=16
		bit5 disable Dynamic BRAKES					=32
		bit6 disable Inverse Backup Direction		=64
		bit7 disable Auto Wheel Slip				=128
CV188	BIT values to disable additional features4	0-254 [0] 
		bit0 disable Traction Motor 		= 1 Disabled
		bit1 disable HILO HORN				= 2 Disabled
		bit2 disable Horn Delay 0=Disabled	= 4 Enabled
 		bit3 disable Disable Articulated DE-SYNC	=8
 		bit4 disable Enable 3rd Cyl Chuffs			=16=Enabled
 		bit5 disable ROD CLANKS						=32
		bit6 disable Disable/Enable Gen1 Transition	=64	=on=Disable
		bit7 disable Disable/ENABLE CV RESET ALL	=128 BIT OFF WILL ALLOW RESET
------- BIT7 OF CV188 WILL DISABLE FUTURE RESETS >>>
------- TOGGLE OFF FOR FUTURE RESET::::::::::::
 CV189	0-254 [0]  BIT values to disable additional features5
		bit0 disable compressor 		= 1 Disabled
		bit1 disable front air pump 0=front mid side=2
 		bit2 disable NOTUSED						=4 
 		bit3 disable NOTUSED						=8
 		bit4 disable NOTUSED						=16
 		bit5 disable NOTUSED						=32
 		bit6 disable NOTUSED						=64	
 		bit7 disable NOTUSED						=128 
CV190 Cutoff Speed for high speed chuffs / Minimum Speed Slip	40-99	[48]	
CV191 Drift Volume	PRIME MOVER COASTING 			0-64 [32]
CV192 Cutoff Speed for BRAKING						4-9	[9]	
CV193 REAR ENGINE Volume	 						0-64	[50]
CV194 Water Alarm Volume							0-64	[45]
CV195 Stoker Volume									0-64	[32]
CV196 Cutoff Speed for articulated chuffs			40-99	[48]	
CV197 Time between articulated chuffs CHG			40-128	[100]	
CV198 OFFSET DEGREES 3CYL 0,7,15,30,45,60,90	
CV198 OFFSET VALUES  3CYL 0,3, 5,10,15,20,30	r=0-30	[15]	
CV200-255 RESERVED FOR OEM USE
 	Speaker Balance CVs
SCV200_DTRX_BALA,61,0	 CV200 Front Horn 				vol 0-255	[61]
SCV201_DTRX_BALB,76,0	 CV201 Mid-front Reverser, Bell vol 0-255	[76]
SCV202_DTRX_BALC,204,0	 CV202 Center Prime mover, Train brake, Traction vol  0-255	[204]
SCV203_DTRX_BALD,196,0	 CV203 Mid-rear Sander, Drier, Compressor 		 vol  0-255	[196]
SCV204_DTRX_BALE,211,0	 CV204 Rear Fans, AUX gen, Dynamics 			 vol  0-255	[211]
SCV205_DTRX_BALF,210,0	 CV205 Tender 					 vol 0-255	[210]

 Balance-CV values for preset level % for Front and Rear are defined in following table:
 Balance % level	Front Speaker value term	Rear Speaker value term 	Note
 	No change				0							0					Keeps last volume
 	0% 						1							16					0% is muted 
 	8 %						2							32				
 	16%						3							48					
 	25%						4							64					
 	33%						5							80					
 	42%						6							96					
 	50% 					7							112					
 	58% 					8							128					
 	68%						9							144					
 	75%						10							160					
 	84%						11							176					
 	92%						12							192					
 	100%					13							208					
 
 Full volume % Front and Rear would be (13+208) or 221 value, and would image as a ‘centered’ value at the full channel volume in 
 effect for that wav sound(s). 
 A zero Front and/or Rear contribution allows the last level settings for that speaker to remain in effect, 
 so the CV only affects the levels of a non-zero% entry. 
 Using the 0% speaker setting will allow the sound to only appear in the other speaker that has 8% to 100% level. 
 For example set CV201, typically for Bell/Reverser to (1+208) = 209 to ‘move’ these sounds from Mid-front to a 100% Rear setting, 
 making these sounds appear to now emanate only from the ‘rear’ location. 
 A value of 255 in a Balance-CV will also put both channels to 100% volume. 
 Steam SPJ’s have predefined Balance settings, fixed to place the near- and far-cylinder chuffs of both simple and 
 articulated engines to provide image separation of sounds when using two speaker output decoders. 
 All the speaker outputs are differential power driven so you cannot connect any of the + or- leads together, or 
 connect a speaker lead to ground/common. 
 
 
	 CV228 through CV237 are Digitrax reserved and defined for Series7 decoders that implement XF. Ignored in Series3 and 6.
	 CV229 -Function Number Function Number/Index, or XF Page value.
	 CV236 -XFSnd Sound Remapping
	 CV234 -XfType code
	 CV235 -XfQualify
	 CV228 -XF Disable
	 CV230 -XF Control
	 CV231 & CV232 -Function key to output line mapping

	 LOAD_MODIFIER	MTYPE_SNDCV,SCV_CV248,100,0	 CV248 degree Fahrenheit temperature number in range of 100 to 194,
 	to set the maximum decoder temperature for Series7 and Series8 decoders with current ratings of 4 Amps or more.
 	100-194	[0]

(C) General Notes
Project sounds are amplified to the limit. When lower power is supplied while on
a test bench using SoundLoader louder sounds will exceed the speaker output range (see formula). 
Running at full power on the main track in real use, sound levels may be increase significantly.
This project was tested at Master Volume CV58=11. Horn Volume was tested at CV142>50. 
Prime mover Volume was tested at CV140>50. However,
Default Master Volume CV58=9 THIS SHOULD BE 7 OR LESS FOR TESTING WITH SOUNDLOADER - JohnM 3/23/17

Set CV60 to 0 for this project.
The SDXH168 16bit Series 8 SFX decoders allow downloading of 8,12 and 16 bit wave files and up to 4 
voices defined in the SDF project definition embedded in SPJ file. 

For CV155=00 ["Automatic Notching"] when CV60=0 to 5 (Diesel),  the Prime mover lowest Notch setting is set by
the current throttle speed setting. F26 (ON) can increase the Notch and F27 (ON) will decrease the Prime mover
to the minimum notch set by current throttle setting.

Cam triggered exhaust sounds (e.g. steam) are only configured for 8 or 16 bit wav file downloads.
			 notes:
 The last 24mar23? dmf has the first CAM trig as A pos polarity immediately as digital speed goes from 0 to moving code. 
 This will be the first chuff in positive trig sense, and following chuffs will then modulate based on motor BEMF voltage reading, unless you make cv[129] bit1 value 1.
 This means the phase will always start at chuff 1...is that a problem? I don’t think so...
 
 You can use the normalization of gear ratio cv[134]/32 or driver diameter cv[133]/60 to adjust the "correct" chuff rate. I did a 1mph (1x5280'x12" per 3600 secs) , calculation of a 60" driver with 4 chuffs, but may not have enuf Kentucky windage....
 
 The driver is assumed as 60" and gear ratio is [0 or 32] for 100% or 1:1 gear rate.
 I can trim the values behind this.
 Once you get above about 45% throttle even if we pitch bend up (shorten) the chuffs, they merge and center-pack on both channels.
