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

Tr_SMS (

	Skip ( ** SL 5 sounds - Two 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)		)
		Volume(0.25)
		Streams ( 8
			Stream (
				Priority ( 6 )
				Triggers ( 11
					Skip( **** The engine/current related sounds - Stream 1 {Xfade}                    **** )
					Skip( **** Right... this cross fade differs from that of the dash 9, for example,  **** )
					Skip( **** since I was getting significant problems where the previous loop in a   **** )
					Skip( **** stram has not finished playing the silence streamed into it after the   **** )
					Skip( **** loop was finished before the next loop started.                         **** )
					Skip( **** To avoid this I start the next loop imediatly after I release the first.**** )
					Skip( **** {although this will not be heard as the volume curve is set to zero at  **** )
					Skip( **** this point.}.I also Increased the size of the volume 1.0 plateaus, to   **** )
					Skip( **** create a shorter crossfade, as the volume drop was noticable.           **** )
					Initial_Trigger  ( 							            StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise0.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 5.00 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past 5.00 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 45.0 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past 45.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 55.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 55.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 15.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 15.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise0.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 8
						0.000		12025
						15.0		12025
						45.0		13000
						50.0		13000
						50.1		12025
						55.0		12025
						85.0		13000
						100.0		13000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		1.0
						 3.00 		1.0
						 5.00 		0.0
						 15.0 		0.0
						 21.0 		1.0
						 39.0 		1.0
						 45.0 		0.0
						 55.0 		0.0
						 61.0 		1.0
						 79.0 		1.0
						 85.0 		0.0
						 100.0		0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Triggers ( 10
					Skip( **** The engine/current related sounds - Stream 2 {Xfade}         **** )
					Variable_Trigger ( Variable2_Inc_Past 1.00 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 25.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Inc_Past 25.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise3.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 65.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Inc_Past 65.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise5.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 75.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 75.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise3.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 35.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 35.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 1.00 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 11
						0.000		12025
						1.000		12025
						25.0		13000
						30.0		13000
						30.1		12025
						35.0		12025
						65.0		13000
						70.0		13000
						70.1		12025
						75.0		12025
						100.0		13000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.00		0.0
						 1.00		0.0
						 2.00		1.0
						 18.0		1.0
						 25.0		0.0
						 35.0		0.0
						 42.0		1.0
						 58.0		1.0
						 65.0		0.0
						 75.0		0.0
						 82.0		1.0
						 100.0	1.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 ( "..\\..\\380\\SOUND\\x_a380_whistle1.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 ( "../../SERIES7000/sound/x_7k_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the Compressor to be played at the same time  	**** )				
				Priority ( 6 )			
				Triggers ( 2				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "../../GP38/sound/x_gp_compressor.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	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 ( "../../SERIES7000/sound/x_7k_ibrake1.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake2.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake3.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
					Skip ( **** Brake Emergency Apply	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "../../SERIES7000/sound/x_7k_ibrake1.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake2.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake3.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			)
			Stream (
				Priority ( 6 )
				Volume ( 0.5 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_couple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_couple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_couple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_uncouple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_uncouple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_uncouple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 2
					Discrete_Trigger ( 45 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_7k_pantou.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 46 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_7k_pantod.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 ( 6
			Stream (
				Priority ( 6 )
				Triggers ( 5
					Skip( **** The engine/current related sounds **** )
					Initial_Trigger  ( 							            StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise0.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past  1.00 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past  1.00 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past  1.00 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past  1.00 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise0.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.00		10000
						1.00		10000
						100.0		12500
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.00		0.5
						 1.00		1.0
						 100.0	1.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 ( "..\\..\\380\\SOUND\\x_a380_whistle1.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 ( "../../SERIES7000/sound/x_7k_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the Compressor to be played at the same time  	**** )				
				Priority ( 6 )			
				Triggers ( 2				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "../../GP38/sound/x_gp_compressor.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	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 ( "../../SERIES7000/sound/x_7k_ibrake1.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake2.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
					Skip ( **** Brake Emergency Apply	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "../../SERIES7000/sound/x_7k_ibrake1.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake2.wav" -1 )	
							File ( "../../SERIES7000/sound/x_7k_ibrake2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			)
			Stream (
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 2
					Discrete_Trigger ( 45 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_7k_pantou.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 46 PlayOneShot ( 1 	File ( "../../SERIES7000/sound/x_7k_pantod.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
		)
	)
	
	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 ( 2
			Stream (
				Priority ( 6 )
				Triggers ( 5
					Skip( **** The engine/current related sounds **** )
					Initial_Trigger  ( 							            StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise0.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past  1.0 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past  1.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past  1.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past  1.0 StartLoop   ( 1 File ( "../../SERIES7000/sound/x_7k_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 )
				)				
			)
			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "..\\..\\380\\SOUND\\x_a380_whistle1.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)
		)
	)
	
	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 ( "../../SERIES7000/sound/a_e_comp1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  50.0 StartLoop   ( 1 File ( "../../SERIES7000/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 ( "../../SERIES7000/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 )
				)				
			)
		)
	)
)


