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


Tr_SMS (
	Skip ( ** Sound 2M62U DIESEL ENGINE TYPE 1-5D49** )
	
	ScalabiltyGroup( 5
		Activation (			CabCam			()			Distance    	(20)		)
		Deactivation (		ExternalCam ()			PassengerCam	()			Distance    	(20)		)
		Stereo ()
		Streams ( 23

Stream (		
			Priority ( 3 )
			Triggers ( 2
               	 		Variable_Trigger ( Variable2_Inc_Past 0.08 StartLoopRelease ( 1 File ( "tsrSound-14d40u-porsh2.wav" -1 )  SelectionMethod ( RandomSelection ) ) )
                		Variable_Trigger ( Variable2_Dec_Past 0.08 ReleaseLoopRelease () )
			)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
					0.0        20500
                                    	1.00        33000
					)
					Granularity ( 0.01 )
				)
			VolumeCurve(
				Variable2Controlled
					CurvePoints ( 3
						0.00		0.0
						0.16		0.0
		 		 		1.0		0.8
					)
					Granularity ( 0.001 )
				)
			)
Stream (
			Skip ( ** TURBINE ** )
			Priority ( 2 )
			Triggers ( 2
               	 	Variable_Trigger ( Variable2_Inc_Past 0.08 StartLoopRelease ( 1 File ( "tsrsound-14d40u-turbo1.wav" -1 )  SelectionMethod ( RandomSelection ) ) )
                		Variable_Trigger ( Variable2_Dec_Past 0.08 ReleaseLoopRelease () )
			)
                	VolumeCurve(	
                		Variable2Controlled  
                			CurvePoints ( 5
		 				 0.00		0.00
		 				 0.04		0.00
		 				 0.08		0.0
		 				 0.48		0.2
		 				 1.00		0.4
					)  
                			Granularity  ( 0.001 )
               		)
                	FrequencyCurve(
                		Variable2Controlled	 
                			CurvePoints ( 3
                        			 0.00	        17250
						 0.72		22000
                        			 1.00	        26550
					)
                			Granularity  ( 20 )
                		          ) 
			)
Stream (
			Skip ( ** DIESEL ** )
			Priority ( 2 )
			Triggers ( 1
				Initial_Trigger ( StartLoopRelease ( 1 File ( "tsrsound-14d40-xx.wav" -1 )  SelectionMethod ( RandomSelection ) ) )
			)
			FrequencyCurve(
				Variable2Controlled
					CurvePoints ( 2
		 				 0.00		22025
						 1.00		35525
					)
					Granularity ( 45 )
			)
			VolumeCurve(
				Variable2Controlled
					CurvePoints ( 5
						 0.00		0.80
						 0.04		0.75
						0.08		0.4
						0.16		0.2
						 1.00		1.0
					)
					Granularity ( 0.01 )
				)
			)
Stream (
				Priority ( 2 )
				Triggers ( 2
					
					Variable_Trigger ( Variable2_Inc_Past 0.010 StartLoopRelease   ( 1 File ( "tsrsound-14d40-2.wav" -1 )  SelectionMethod ( RandomSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.010 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
						0.080		22625
						1.0		38155
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 4
						 0.04		0.2
						 0.08		0.8
						 0.45		0.3
						 1.0		0.9

					)
					Granularity ( 0.05 )
				)				
			)
Stream (
				Priority ( 2 )
				Triggers ( 2
					
					Variable_Trigger ( Variable2_Inc_Past 0.010 StartLoopRelease   ( 1 File ( "tsrSound-2d49-lowfon.wav" -1 )   SelectionMethod ( RandomSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.010 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.020		15625
						0.48		22050
						1.0		33155
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.04		0.0
						 0.80		0.8
						 1.0		1.0

					)
					Granularity ( 0.05 )
				)				
			)
Stream (
				Priority ( 2 )
				Triggers ( 2
					
					Variable_Trigger ( Variable2_Inc_Past 0.010 StartLoopRelease   ( 1 File ( "tsrsound-14d40-81.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.010 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 4
						0.020		15625
						0.200		19055
						0.48		22050
						1.0		27155
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 4
						 0.08		0.0
						 0.12		0.3
						 0.48		1.0
						 1.0		1.0

					)
					Granularity ( 0.05 )
				)				
			)
Stream (
				Priority ( 2 )
					Triggers ( 23
	  	 				Initial_Trigger ( SetStreamVolume ( 0.00 ) )
						Variable_Trigger ( Speed_Inc_Past 0.400 SetStreamVolume ( 0.10 ) )
						Variable_Trigger ( Speed_Inc_Past 1.000 SetStreamVolume ( 0.40 ) )
						Variable_Trigger ( Speed_Inc_Past 1.200 SetStreamVolume ( 0.50 ) )
						Variable_Trigger ( Speed_Inc_Past 1.600 SetStreamVolume ( 0.60 ) )
      						Variable_Trigger ( Speed_Inc_Past 2.000 SetStreamVolume ( 0.70 ) )
						Variable_Trigger ( Speed_Inc_Past 2.400 SetStreamVolume ( 0.80 ) )
						Variable_Trigger ( Speed_Inc_Past 4.800 SetStreamVolume ( 1.00 ) )
						Variable_Trigger ( Speed_Inc_Past 6.200 SetStreamVolume ( 1.00 ) )
						Variable_Trigger ( Speed_Inc_Past 8.600 SetStreamVolume ( 0.70 ) )
						Variable_Trigger ( Speed_Inc_Past 20.000 SetStreamVolume ( 0.40 ) )
						Variable_Trigger ( Speed_Dec_Past 20.000 SetStreamVolume ( 0.40 ) )
						Variable_Trigger ( Speed_Dec_Past 8.600 SetStreamVolume ( 0.70 ) )
						Variable_Trigger ( Speed_Dec_Past 6.200 SetStreamVolume ( 1.0 ) )
						Variable_Trigger ( Speed_Dec_Past 4.800 SetStreamVolume ( 1.00 ) )
						Variable_Trigger ( Speed_Dec_Past 2.400 SetStreamVolume ( 0.80 ) )
						Variable_Trigger ( Speed_Dec_Past 2.000 SetStreamVolume ( 0.70 ) )
						Variable_Trigger ( Speed_Dec_Past 1.600 SetStreamVolume ( 0.60 ) )
						Variable_Trigger ( Speed_Dec_Past 1.200 SetStreamVolume ( 0.50 ) )
						Variable_Trigger ( Speed_Dec_Past 1.000 SetStreamVolume ( 0.40 ) )
						Variable_Trigger ( Speed_Dec_Past 0.400 SetStreamVolume ( 0.00 ) )
	  	 				Variable_Trigger ( Variable2_Inc_Past   0.08  StartLoopRelease ( 1 File ( "tsrsound-ed118a.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
         					Variable_Trigger ( Variable2_Dec_Past  0.08  ReleaseLoopReleaseWithJump ()	 )
					)
				FrequencyCurve(
				            SpeedControlled
				            CurvePoints ( 7
			                            -38.89    20000
							-9.0	12000
							-5.0	5000
                        			       0.00       100
							5.0	5000
							9.0	12000
			                             38.89    20000
                        					     )
				            Granularity  ( 5 )
					)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 4
						0.000     	0.0
						0.08		0.0
						0.20		0.45
						1.00		0.7
					)
					Granularity ( 0.001 )
				)
			)
Stream (
				Priority ( 6 )
				Triggers ( 5
				Initial_Trigger  ( StartLoop   ( 1 File ( "2M62U_clack.wav" -1 )   SelectionMethod ( SequentialSelection )  ) )	
				Variable_Trigger ( Variable2_Inc_Past  0.050 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Inc_Past  0.050 StartLoop   ( 1 File ( "2M62U_d49_clack.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Dec_Past  0.150 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Dec_Past  0.150 StartLoop   ( 1 File ( "2M62U_d49_clack.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-100.000	40000
						0.000		10000
						100.000	40000
					)
					Granularity ( 100 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 
						 -100.0		1.0	
						 -30.0		1.0
						 0.000		0.0
						 30.0			1.0
						 100.0            1.0
					)
					Granularity ( 0.05 )					
				)				
			)
Stream (
				Skip Skip ( **** Sound of speed-meter **** )
				Priority ( 5 )
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past  1.4	StartLoop ( 1	File ( "2M62U_d49_skorostemer.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  40	ReleaseLoopRelease () )	
					Variable_Trigger ( Speed_Dec_Past 40	StartLoop ( 1	File ( "2M62U_d49_skorostemer.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  1.4	ReleaseLoopRelease () )							
				)

				FrequencyCurve(
					SpeedControlled				
					CurvePoints ( 2			
						0.000 22020
						100.0 22020
					)
				Granularity ( 0 )
				)

				VolumeCurve ( 
					SpeedControlled				
					CurvePoints ( 3
						1.0,		1.0
						0.0,		1.0
						1.0,		1.0
					)				
					Granularity (0.01)
				)
			)
Stream (
				Skip ( sprężarka )
				Priority ( 8 )
				Volume ( 0.5 )
				Triggers ( 4
					Discrete_Trigger ( 12	SetStreamVolume ( 10.6 )	)
					Discrete_Trigger ( 12
						StartLoopRelease ( 1
							File ( "sp45_sprezarka.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
				Discrete_Trigger ( 13	SetStreamVolume ( 0 )	)
				Discrete_Trigger ( 13	ReleaseLoopRelease ()	)
				)
			)
Stream (
				Skip ( sprężarka - stop )
				Priority ( 8 )
				Volume ( 8.6 )
				Triggers ( 1
					Discrete_Trigger ( 13
						PlayOneShot ( 1
							File ( "sp45_spr-stop.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
				)
			)
Stream (
				Skip (**** Sound of speed-meter SL-2M - podzavod **** )
				Priority ( 5 )
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past  1.4	StartLoop ( 1	File ( "2M62U_d49_zavod.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  40	ReleaseLoopRelease () )	
					Variable_Trigger ( Speed_Dec_Past 40	StartLoop ( 1	File ( "2M62U_d49_zavod.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  1.4	ReleaseLoopRelease () )							
				)
				FrequencyCurve(
					SpeedControlled				
					CurvePoints ( 2		
						0.000 22235
						100.0 27485
					)
					Granularity ( 0 )
				)
				VolumeCurve ( 
					SpeedControlled				
					CurvePoints ( 9
						0.0,		0.0
						0.2,		0.1
						5.0,		0.1
						8.0,		0.1
						40.0,		0.1
						8.0,		0.1
						5.0,		0.1
						0.2,		0.1
						0.0,		0.0
					)
					Granularity (0.01)
				)
			)
Stream (
				Priority ( 6 )
				Triggers ( 6
					Skip ( 15 - Iranyvalto )
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "2M62U_d49_reverser.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Skip ( 37 - Vilagitas kapcsolo )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "2M62U_d49_switch.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Skip ( 48 - Ebersegi pedal - trukkozni kell, hogy csak a lenyomaskor legyen hang! )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "2M62U_d49_throttlef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "2M62U_d49_rb.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 48	DisableTrigger ( 3 ) )
					Random_Trigger (
						Delay_Min_Max( 2 2 )
						Volume_Min_Max( 0.5 0.5 )
						EnableTrigger( 3 )
					)
				)
			)
			Skip ( p/6. chik 394 )
Stream (
				Priority ( 5 )
				Triggers ( 2
					Discrete_Trigger ( 17
						PlayOneShot ( 1
							File ( "2M62U_d49_switch1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 18
						PlayOneShot ( 1
							File ( "2M62U_d49_switch3.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
Stream (
				Skip ( **** This stream plays all the controls samples  	**** )
				Skip ( **** NOTE: Missing AWS Alarm                     	**** )
				Priority ( 5 )
				Volume ( 0.8 )
				Triggers ( 1
					Discrete_Trigger ( 18
						PlayOneShot ( 1
							File ( "2M62U_d49_brake.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
Stream (
				Skip ( ********	sound of brake1	************* )
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 14
					Variable_Trigger ( Speed_Dec_Past 2.0
						StartLoop ( 1
							File ( "2M62U_d49_skrip1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Speed_Dec_Past 0.1
						ReleaseLoopRelease (  )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.03
						SetStreamVolume ( 0.10 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.02
						SetStreamVolume ( 0.20 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.01
						SetStreamVolume ( 0.40 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.008
						SetStreamVolume ( 0.55 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.005
						SetStreamVolume ( 0.65 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.005
						SetStreamVolume ( 0.55 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.008
						SetStreamVolume ( 0.40 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.01
						SetStreamVolume ( 0.25 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.02
						SetStreamVolume ( 0.10 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.03
						SetStreamVolume ( 0.00 )
					)
					Variable_Trigger ( Speed_Dec_Past 0.2
						ReleaseLoopReleaseWithJump (  )
					)
					Variable_Trigger ( Variable2_Inc_Past 0.5
						ReleaseLoopReleaseWithJump (  )
					)
				)
				FrequencyCurve ( SpeedControlled
					CurvePoints ( 5 -4 11185 -2.5 10985 -2 10800 0.0 11485 2 10800 2.5 10985 4 11185 )
					Granularity ( 1 )
				)
				VolumeCurve ( SpeedControlled
					CurvePoints ( 11 -4.0 0.0 -3.0 0.2 -2.6 0.3 -1.5 0.4 -0.5 0.6 0.0 0.0 0.5 0.6 1.5 0.4 2.6 0.3 3.0 0.2 4.0 0.0 )
					Granularity ( 0.05 )
				)
			)
Stream (
				Skip ( ********	sound of brake2	 ************* )
				Priority ( 6 )
				Volume ( 0.7 )
				Triggers ( 17
					Discrete_Trigger ( 14
						StartLoopRelease ( 1
							File ( "2M62U_d49_skrip2.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 54
						ReleaseLoopReleaseWithJump (  )
					)
					Discrete_Trigger ( 54
						ReleaseLoopReleaseWithJump (  )
					)
					Discrete_Trigger ( 54
						ReleaseLoopReleaseWithJump (  )
					)
					Discrete_Trigger ( 54
						ReleaseLoopReleaseWithJump (  )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.07
						SetStreamVolume ( 0.15 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.05
						SetStreamVolume ( 0.30 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.03
						SetStreamVolume ( 0.45 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.02
						SetStreamVolume ( 0.60 )
					)
					Variable_Trigger ( Variable3_Dec_Past 0.005
						SetStreamVolume ( 0.70 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.005
						SetStreamVolume ( 0.60 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.02
						SetStreamVolume ( 0.45 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.03
						SetStreamVolume ( 0.30 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.05
						SetStreamVolume ( 0.15 )
					)
					Variable_Trigger ( Variable3_Inc_Past 0.07
						SetStreamVolume ( 0.00 )
					)
					Variable_Trigger ( Speed_Dec_Past 0.2
						ReleaseLoopReleaseWithJump (  )
					)
					Variable_Trigger ( Variable2_Inc_Past 0.5
						ReleaseLoopReleaseWithJump (  )
					)
				)
				FrequencyCurve ( SpeedControlled
					CurvePoints ( 5 -4 11185 -2.5 10985 -2 10800 0.0 11485 2 10800 2.5 10985 4 11185 )
					Granularity ( 1 )
				)
				VolumeCurve ( SpeedControlled
					CurvePoints ( 11 -4.0 0.0 -3.0 0.2 -2.6 0.3 -1.5 0.4 -0.5 0.6 0.0 0.0 0.5 0.6 1.5 0.4 2.6 0.3 3.0 0.2 4.0 0.0 )
					Granularity ( 0.05 )
				)
			)
Stream (
				Skip ( **** Brake Squeal **** )
				Priority ( 6 )
				Triggers ( 7
					Discrete_Trigger ( 14
						StartLoopRelease ( 1
							File ( "2M62U_d49_squeal.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 10.0
						ReleaseLoopRelease (  )
					)
				)
				FrequencyCurve ( SpeedControlled
					CurvePoints ( 3 -5.0 11000 0.0 12000 5.0 11000 )
					Granularity ( 100 )
				)
				VolumeCurve ( SpeedControlled
					CurvePoints ( 5 -10.0 0.0 -5.0 1.0 0.0 0.0 5.0 1.0 10.0 0.0 )
					Granularity ( 0.05 )
				)
			)
Stream (
				Priority ( 6 )
				Volume ( 1.7 )
				Triggers ( 4
					Discrete_Trigger ( 8	PlayOneShot      ( 1    File ( "2M62U_d49_switch.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "2M62U_d49_tifon.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9    ReleaseLoopReleaseWithJump ()	)
					Discrete_Trigger ( 9	PlayOneShot      ( 1    File ( "2M62U_d49_switch.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
Stream (
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 1	File ( "2M62U_d49_svist.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 11 ReleaseLoopReleaseWithJump ()	)
				)
			)
Stream (
				Priority ( 6 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "2M62U_d49_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
Stream (
				Skip ( **** This stream allows the Train Brake & Independent Brakes to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 3
					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 ( "2M62U_d49_airb_auto3.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				  Skip ( **** Apply {normal & emergency}	**** )
					Discrete_Trigger ( 53  	PlayOneShot ( 2 File ( "2M62U_d49_airb_auto1.wav" -1 ) File ( "2M62U_d49_airb_auto2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
					Discrete_Trigger ( 54 	PlayOneShot ( 2 File ( "2M62U_d49_airb_auto1.wav" -1 ) File ( "2M62U_d49_airb_auto2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
				)
			)
Stream(
				Priority ( 6 )
				Triggers( 4
					Discrete_Trigger ( 56	SetStreamVolume ( 1.0 ) )
					Discrete_Trigger ( 56	StartLoopRelease ( 1 File ( "czuwak1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 57	SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 57	ReleaseLoopRelease() ) 
				)				
			)
		)
	)
)
	