SIMISA@@@@@@@@@@JINX0x1t______

Tr_SMS (
	Skip ( ** Sound  by Klaus Kraml  6/2003  ** )
	Skip ( **        Using Components of Werner Spieker and original Acela Sound package  **)
	Skip ( ** Spezial Sound Effects to power up & down the Loco and squeling brakes by Mike Pillwax 12/2002 ** )
	Skip ( *************************************************************** )
	Skip ( ** SL 5 sounds - Five looping audio streams, multiple waves - pitch shifted & Xfaded by current ** )
	Skip ( **             - One Horn audio stream				                                                  ** )
	Skip ( **             - One Sander audio stream				                                            ** )
	Skip ( **             - One Compressor audio stream				                                            ** )
	Skip ( **             - One TBrake audio stream				                                                ** )
	Skip ( **             - One Coupling audio stream				                                              ** )
	ScalabiltyGroup( 5
		Activation (			ExternalCam ()			Distance    	(1000)		)
		Deactivation (		CabCam			()			PassengerCam	()			Distance    	(1000)		)
		Streams ( 8
			Stream (		
				Skip(***  fan noise ***)
				Priority ( 6 )
				Volume ( 0.75 )
				Triggers ( 7
					Skip( **** Power-ON Section **** )
					Initial_Trigger  ( StartLoop   ( 1 File ( "x_OeBB1189_LuefterRun.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 45 ReleaseLoopRelease() )
					Discrete_Trigger ( 45 PlayOneShot ( 1 File ( "x_OeBB1189_LuefterStart.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 45 StartLoop ( 1 File ( "x_OeBB1189_LuefterRun.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )					
					
					Skip( **** Power-OFF Section **** )
					Discrete_Trigger ( 46 ReleaseLoopRelease() )
					Discrete_Trigger ( 46 PlayOneShot ( 1 File ( "x_OeBB1189_LuefterAus.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 46 StartLoop ( 1 File ( "x_OeBB1189_Hintergrund.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-35.0		15000
						-10.0		15000
						0.0		11025
						10.0		15000
						35.0		15000
					)
					Granularity ( 15 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 9
						-50.0 0.5
						-31.0 0.75
						-30.0	1.0
						-10.0	1.0
						0.0	0.75
						10.0	1.0
						30.0	1.0
						31.0	0.75
						50.0	0.5
					)
					Granularity ( 0.01 )
				)				
			)
			Stream (
				Priority ( 6 )
				Triggers ( 5
					
				Skip( **** Power Cruise **** )
				
				Initial_Trigger  ( StartLoop   ( 1 File ( "x_DB_E40_PowerCruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Inc_Past  1.00 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Inc_Past  1.00 StartLoop   ( 1 File ( "x_DB_E40_PowerCruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Dec_Past  1.00 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Dec_Past  1.00 StartLoop   ( 1 File ( "x_DB_E40_PowerCruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-45.0		60000
						0.000		6000
						45.000		60000
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-45.0		0.5
						-20.0		0.6
						-0.5		1.5
						 0.0		0.0
						 0.5		1.5
						 20.0		0.6						 
						 45.0		0.5

					)
					Granularity ( 0.05 )					
				)							
			)

			Stream (
				Skip ( **** This stream allows the Sander to be played at the same time  	**** )
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "..\\..\\acela\\sound\\x_acela_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_OeBB1189_Signalhorn.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 2
					Discrete_Trigger ( 45 PlayOneShot ( 1 File ( "..\\..\\acela\\sound\\x_acela_pantou.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 46 PlayOneShot ( 1 File ( "..\\..\\acela\\sound\\x_acela_pantod.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Skip ( **** This stream allows the Train Brake to be played at the same time  	**** )
				Priority ( 5 )
				Triggers ( 2				
					Skip ( **** Brake Normal Apply	**** )
					Discrete_Trigger (  53	
						PlayOneShot ( 3	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake1.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake2.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake3.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
					Skip ( **** Brake Emergency Apply	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake1.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake2.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake3.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			)

			Stream (
				Skip ( **** Squeling Brakes at stop **** )				
				Priority ( 6 )			
				Triggers ( 7				
					Discrete_Trigger (  14	StartLoopRelease ( 1 File ( "x_OeBB1042_Bremse.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.2	ReleaseLoopRelease ()	)
					Variable_Trigger ( Speed_Inc_Past 7.0	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -7.0		11000
						   0.0		12000
						   7.0		11000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						  -5.0		0.0
						  -3.5		1.0
						  -0.5		1.0
						   0.0		0.0
						   0.5		1.0
						   3.5		1.0
						   5.0		0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Volume ( 0.5 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "..\\..\\acela\\sound\\x_couple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "..\\..\\acela\\sound\\x_couple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "..\\..\\acela\\sound\\x_couple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "..\\..\\acela\\sound\\x_uncouple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "..\\..\\acela\\sound\\x_uncouple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "..\\..\\acela\\sound\\x_uncouple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
		)
	)


	Skip ( ** SL 3 sounds - One looping audio stream, idle wave and moving - pitch shifted by current ** )
	Skip ( **             - One Horn audio stream				                                              ** )
	Skip ( **             - One Sander audio stream				                                            ** )
	Skip ( **             - One Compressor audio stream				                                        ** )
	Skip ( **             - One TBrake audio stream				                                            ** )
	ScalabiltyGroup( 3
		Activation (			ExternalCam ()			Distance    	(1000)		)
		Deactivation (		CabCam			()			PassengerCam	()			Distance    	(1000)		)
		Streams ( 4
			Stream (
				Priority ( 6 )
				Triggers ( 5
					
				Skip( **** Power Cruise **** )
				
				Initial_Trigger  ( StartLoop   ( 1 File ( "x_DB_E40_PowerCruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Inc_Past  1.00 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Inc_Past  1.00 StartLoop   ( 1 File ( "x_DB_E40_PowerCruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Dec_Past  1.00 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Dec_Past  1.00 StartLoop   ( 1 File ( "x_DB_E40_PowerCruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-35.0		60000
						0.000		6000
						35.000		60000
					)
					Granularity ( 25 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-45.0		0.0
						-20.0		0.6
						-0.5		1.5
						 0.0		0.0
						 0.5		1.5
						 20.0		0.6						 
						 45.0		0.0

					)
					Granularity ( 0.05 )					
				)							
			)

			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_OeBB1189_Signalhorn.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)

			Stream (
				Skip ( **** This stream allows the Sander to be played at the same time  	**** )
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "..\\..\\acela\\sound\\x_acela_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)

			Stream (
				Skip ( **** This stream allows the Train Brake to be played at the same time  	**** )
				Priority ( 5 )
				Triggers ( 2				
					Skip ( **** Brake Normal Apply	**** )
					Discrete_Trigger (  53	
						PlayOneShot ( 3	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake1.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake2.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
					Skip ( **** Brake Emergency Apply	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake1.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake2.wav" -1 )	
							File ( "..\\..\\acela\\sound\\x_acela_ibrake2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			)
		)
	)
	
	Skip ( ** SL 1 sounds - One looping audio stream, idle wave and moving - pitch shifted by current ** )
	Skip ( **             - One Horn audio stream				                                              ** )
	ScalabiltyGroup( 1
		Activation (			ExternalCam ()			Distance    	(1000)		)
		Deactivation (		CabCam			()			PassengerCam	()			Distance    	(1000)		)
		Streams ( 1
			Stream (
				Priority ( 6 )
				Triggers ( 5
					Skip( **** The engine/current related sounds **** )
					Initial_Trigger  ( StartLoop   ( 1 File ( "..\\..\\acela\\sound\\x_acela_power_cruise0.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past  1.0 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past  1.0 StartLoop   ( 1 File ( "..\\..\\acela\\sound\\x_acela_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past  1.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past  1.0 StartLoop   ( 1 File ( "..\\..\\acela\\sound\\x_acela_power_cruise0.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.000		10000
						1.00		10000
						100.0		12500
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.5
						 1.00 		1.0
						 100.000		1.0
					)
					Granularity ( 0.05 )
				)				
			)
		)

	)
	
	Skip( **** ******************************************* **** )
	Skip( **** Copy of Generic Electric SMS Used for SL 0  **** )
	Skip( **** ******************************************* **** )

	ScalabiltyGroup( 0
		Activation (	ExternalCam ()	Distance    	(500)	)
		Deactivation (CabCam	()			PassengerCam	()	Distance    	(500)	)
		Streams ( 1
			Stream (
				Priority ( 4 )
				Triggers ( 6
					Variable_Trigger ( Speed_Inc_Past   1.0 StartLoop   ( 1 File ( "..\\..\\acela\\sound\\a_e_comp1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  50.0 StartLoop   ( 1 File ( "..\\..\\acela\\sound\\a_e_comp2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  50.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Speed_Dec_Past  49.0 StartLoop   ( 1 File ( "..\\..\\acela\\sound\\a_e_comp1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  49.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Speed_Dec_Past   1.0 ReleaseLoopRelease () )					
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 3
					 	  0.0		0.0
						 10.0		1.0
						100.0		1.0
					)
					Granularity ( 0.05 )
				)				
			)
		)
	)
)


