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


Tr_SMS (
	Skip ( ** SL 5 sounds - Two looping audio streams, multiple waves - pitch shifted & Xfaded by rpm ** )
	Skip ( **             - One Horn audio stream ** )
	Skip ( **             - One Bell audio stream ** )
	Skip ( **             - One Sander audio stream ** )
	Skip ( **             - One TBrake & IBrake audio stream {as only one shots for apply and off - unkilely to be at same time} ** )
	Skip ( **             - One Coupling audio stream ** )
	Skip ( **             - One Control audio stream with individual Control sounds ** )
	ScalabiltyGroup( 5
		Activation (	CabCam	()	PassengerCam	()	Distance    	(100)		)
		Deactivation (		ExternalCam ()				Distance    	(100)		)
		Stereo ()
		Volume(0.5)
		Streams ( 12
			






			Stream (

				Priority ( 6 )
				Triggers ( 5

					Initial_Trigger  ( StartLoop   ( 1 File ( "2948_rail.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Inc_Past 0.005 StartLoop   ( 1 File ( "2948_rail.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Inc_Past 0.050 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable3_Dec_Past 0.050 StartLoop   ( 1 File ( "2948_rail.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Dec_Past 0.005 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-100.000	40000
						0.000		10000
						100.000	40000
					)
					Granularity ( 100 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 
						 -50			0.0	
						 -6.0			1.0
						 0.000		0.0
						 6.0			1.0
						 50            	0.0
					)
					Granularity ( 0.05 )					
				
					)
						
			

			)












			Stream (
				Priority ( 6 )
				Triggers ( 4
					Skip( **** Engine idle **** )
					Initial_Trigger  ( StartLoop   ( 1 File ( "2948_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.025 ReleaseLoopRelease () )			




					Variable_Trigger ( 
Variable2_Dec_Past 0.027 PlayOneShot ( 1 File ( "2948_szissz.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )






		
					Variable_Trigger ( Variable2_Dec_Past 0.025 StartLoop   ( 1 File ( "2948_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.40
						 0.005		0.40
						 0.150		0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Skip( **** Engine running **** )
					Variable_Trigger ( Variable2_Inc_Past 0.01 StartLoop   ( 1 File ( "2948_power_cruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.01 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
						0.000		10000
						1.000		15400
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		0.0
						 0.005		0.3
						 0.200		0.4
						 0.300		0.45
						 0.350		0.5
						 0.400		0.6
						 0.500		0.7
						 0.550		0.80
						 0.650		0.85
						 0.750		0.90
						 0.850		0.95
						 0.950		1.0
					)
					Granularity ( 0.05 )
				)				
			)



			Stream (
				Priority ( 6 )
				Triggers ( 5

					Initial_Trigger  ( StartLoop   ( 1 File ( "x_2948_turbo.wav" -1 )   SelectionMethod ( SequentialSelection )  ) )	
					Variable_Trigger ( Variable2_Inc_Past 0.010 StartLoop   ( 1 File ( "2948_turbo.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 1.000 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 1.000 StartLoop   ( 1 File ( "2948_turbo.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.010 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
						0.000		6000
						1.000		15000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 2
						 
						 0.300		0.0
						 
						 1.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 ( "2948_horn1.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 ( "2948_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)










			Stream (
				Priority ( 6 )
				Triggers ( 1
					Initial_Trigger  ( StartLoop   ( 1 File ( "2948_szissz2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)			
			)










			Skip ( V/7. Teloc ketyeges )
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Variable_Trigger ( Speed_inc_past 1.0 Startlooprelease   ( 1 File ( "2948_teloc.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_dec_past 1.0 ReleaseLoopRelease () )
				)			
			)

			Stream (
				Skip ( **** This stream allows the Train Brake & Independant Brakes to be played at the same time  	**** )
				Priority ( 5 )
				Triggers ( 5
					Skip ( **** NOTE: Need to check if correct waves used for apply/release  	**** )
					Skip ( ****       Assumes 3 = Release, 1 & 2 = Apply  	                  **** )
				  
				  Skip ( **** Tbrake 	**** )
				  Skip ( **** Release 	**** )
					Discrete_Trigger ( 14 	PlayOneShot ( 1 File ( "2948_airb_auto3.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				  Skip ( **** Apply {normal & emergency}	**** )
					Discrete_Trigger ( 53  	PlayOneShot ( 2 File ( "2948_airb_auto1.wav" -1 ) File ( "2948_airb_auto2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
					Discrete_Trigger ( 54 	PlayOneShot ( 2 File ( "2948_airb_auto1.wav" -1 ) File ( "2948_airb_auto2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
					
				  Skip ( **** Ibrake 	**** )
				  Skip ( **** Release 	**** )
					Discrete_Trigger ( 21 	PlayOneShot ( 1 File ( "2948_airb_ind3.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				  Skip ( **** Apply	**** )
					Discrete_Trigger ( 22  	PlayOneShot ( 2 File ( "2948_airb_ind1.wav" -1 ) File ( "2948_airb_ind2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
				)
			)
			Stream (
				Skip ( **** Brake noise **** )
				Priority ( 6 )
				Triggers ( 8
				Discrete_Trigger (  14   StartLoopRelease ( 1 File ( "2948_brake.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger (  14	DisableTrigger ( 1 ) )
				Discrete_Trigger (  54  ReleaseLoopRelease ()      )
				Discrete_Trigger (  54  EnableTrigger ( 1 ) )
				Variable_Trigger ( Speed_Dec_past 0.5	ReleaseLoopRelease () )
				Variable_Trigger ( Speed_Dec_Past 0.5	EnableTrigger ( 1 ) )
				Variable_Trigger ( Speed_Inc_past 2.0		ReleaseLoopRelease () )
				Variable_Trigger ( Speed_Inc_Past 2.0		EnableTrigger ( 1 ) )
			)
			FrequencyCurve(
					SpeedControlled
					CurvePoints ( 4
						-17.00	16000
						-3.00	  6000
						3.00	  6000
						17.00	16000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 4
						-1.00	1.0
						-0.10	0.0
						0.10	0.0
						1.00	1.0
					)
					Granularity ( 0.05 )
				)
			)
			Stream (
				Priority ( 5 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "2948_couple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "2948_couple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "2948_couple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "2948_uncouple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "2948_uncouple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "2948_uncouple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Skip ( **** This stream plays all the controls samples  	**** )
				Skip ( **** NOTE: Missing AWS Alarm                     	**** )
				Priority ( 6 )
				Volume(0.6)
				Triggers ( 8
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "2948_reverserf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "2948_throttlef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "2948_abrakef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "2948_ibrakef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 26	PlayOneShot ( 1	File ( "2948_sandf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "2948_flightsf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 51	PlayOneShot ( 1	File ( "2948_ebrake.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
		)
	)

	Skip ( ** SL 3 sounds - Two looping audio stream, idle wave and 3 moving waves - pitch shifted & Xfaded by rpm               ** )
	Skip ( **             - One Horn audio stream				                                								                         ** )
	Skip ( **             - One Bell audio stream				                                								                         ** )
	Skip ( **             - One Sander audio stream				                                            	                         ** )
	Skip ( **             - One TBrake & IBrake audio stream {as only one shots for apply and off - unkilely to be at same time} ** )
	Skip ( **             - One Control audio stream with individual Control sounds                                              ** )
	Skip ( **             - One Vigalence alarm audio stream                                                                     ** )
	Skip ( **             - One Wipers audio stream                                              ** )
	ScalabiltyGroup( 3
		Activation (			CabCam			()			Distance    	(100)		)
		Deactivation (		ExternalCam ()			PassengerCam	()			Distance    	(100)		)
		Stereo ()
		Stream (
				Priority ( 6 )
				Triggers ( 3
					Skip( **** Engine idle **** )
					Initial_Trigger  ( StartLoop   ( 1 File ( "2948_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.025 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.025 StartLoop   ( 1 File ( "2948_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.30
						 0.025		0.30
						 0.100		0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Skip( **** Engine running **** )
					Variable_Trigger ( Variable2_Inc_Past 0.01 StartLoop   ( 1 File ( "2948_power_cruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.01 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
						0.000		10000
						1.000		16000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		0.0
						 0.025		0.3
						 0.200		0.4
						 0.300		0.45
						 0.350		0.5
						 0.400		0.6
						 0.500		0.7
						 0.550		0.80
						 0.650		0.85
						 0.750		0.90
						 0.850		0.95
						 0.950		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 ( "2948_horn1.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 ( "2948_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)

			Stream (
				Skip ( **** This stream allows the Train Brake & Independant Brakes to be played at the same time  	**** )
				Priority ( 5 )
				Triggers ( 5
					Skip ( **** NOTE: Need to check if correct waves used for apply/release  	**** )
					Skip ( ****       Assumes 3 = Release, 1 & 2 = Apply  	                  **** )
				  
				  Skip ( **** Tbrake 	**** )
				  Skip ( **** Release 	**** )
					Discrete_Trigger ( 14 	PlayOneShot ( 1 File ( "2948_airb_auto3.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				  Skip ( **** Apply {normal & emergency}	**** )
					Discrete_Trigger ( 53  	PlayOneShot ( 2 File ( "2948_airb_auto1.wav" -1 ) File ( "2948_airb_auto2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
					Discrete_Trigger ( 54 	PlayOneShot ( 2 File ( "2948_airb_auto1.wav" -1 ) File ( "2948_airb_auto2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
					
				  Skip ( **** Ibrake 	**** )
				  Skip ( **** Release 	**** )
					Discrete_Trigger ( 21 	PlayOneShot ( 1 File ( "2948_airb_ind3.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				  Skip ( **** Apply	**** )
					Discrete_Trigger ( 22  	PlayOneShot ( 2 File ( "2948_airb_ind1.wav" -1 ) File ( "2948_airb_ind2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
				)
			)	
			Stream (
				Skip ( **** This stream plays all the controls samples  	**** )
				Priority ( 5 )
				Triggers ( 8
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "2948_reverserf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "2948_throttlef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "2948_abrakef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "2948_ibrakef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 26	PlayOneShot ( 1	File ( "2948_sandf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "2948_flightsf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 51	PlayOneShot ( 1	File ( "2948_ebrake.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
		)
	)

	Skip ( ** SL 1 sounds - One looping audio stream, idle wave and moving - pitch shifted by rpm     ** )
	Skip ( **             - One Horn audio stream				                                              ** )
	Skip ( **             - One Control audio stream with generic control sounds                      ** )
	ScalabiltyGroup( 1
		Activation (			CabCam			()			Distance    	(100)		)
		Deactivation (		ExternalCam ()			PassengerCam	()			Distance    	(100)		)
		Stereo ()
		Streams ( 4
			Stream (
				Priority ( 6 )
				Triggers ( 3
					Skip( **** Engine idle **** )
					Initial_Trigger  ( StartLoop   ( 1 File ( "2948_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.025 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.025 StartLoop   ( 1 File ( "2948_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.30
						 0.025		0.30
						 0.100		0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Triggers ( 2
					Skip( **** Engine running **** )
					Variable_Trigger ( Variable2_Inc_Past 0.01 StartLoop   ( 1 File ( "2948_power_cruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.01 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
						0.000		10000
						1.000		16000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		0.0
						 0.025		0.3
						 0.200		0.4
						 0.300		0.45
						 0.350		0.5
						 0.400		0.6
						 0.500		0.7
						 0.550		0.80
						 0.650		0.85
						 0.750		0.90
						 0.850		0.95
						 0.950		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 ( "2948_horn1.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)
			
			Stream (
				Skip ( **** This stream plays all the controls samples  	**** )
				Priority ( 5 )
				Triggers ( 11
					Discrete_Trigger (  6	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  7	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 20	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 26	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 51	PlayOneShot ( 1	File ( "2948_econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
		)
	)
)

