SIMISA@@@@@@@@@@JINX0x1t______
 
 
Tr_SMS (
	Skip ( **	Internal Sounds for Tu-2 diesel locos with 1D12 type V-2 engine                             ** )
	ScalabiltyGroup( 5
		Activation 	(	CabCam ()	Distance (100)	)
		Deactivation 	(	ExternalCam ()	PassengerCam	()	Distance    	(100)		)
		Stereo ()
		Streams ( 15
			Stream (
				Priority ( 6 )
				Volume (0.6)
				Triggers ( 2
					Skip( ****	Sound of 1d12 engine - Low Gear - Positions 0 - 3		**** )
					Initial_Trigger  ( 				    StartLoop   ( 1 File ( "1D12_0_3.wav" -1 )   	SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.550 StartLoop   ( 1 File ( "1D12_0_3.wav" -1 )   	SelectionMethod ( SequentialSelection ) ) )
					)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 9
						0.000		12025
						0.125		12025
						0.250		12025
						0.375		16000
						0.500		18025
						0.625		18500
						0.750		18625
						0.825		18800
						1.000		18925
					)
					Granularity ( 10 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		0.6
						 0.010		0.6
						 0.050		0.6
						 0.150		0.7
						 0.250		0.7
						 0.350		0.7
						 0.450		0.7
						 0.550		0.7
						 0.650		0.6
						 0.750		0.6
						 0.850		0.6
						 1.000		0.6
					)
					Granularity ( 0.05 )
				)				
			)
Stream (
				Priority ( 6 )
				Volume (0.6)
				Triggers ( 6
					Skip( ****	Sound of 1d12 engine - High Gear - Positions 4 - 8		**** )
					Variable_Trigger ( Variable2_Inc_Past 0.350 StartLoop   ( 1 File ( "1D12_4_6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.850 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.850 StartLoop   ( 1 File ( "1D12_4_6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.250 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past 0.750 StartLoop   ( 1 File ( "1D12_6_8.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.750 ReleaseLoopRelease () )
					)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 9
						0.000		10000
						0.125		10000
						0.250		10000
						0.375		10025
						0.500		10025
						0.625		12025
						0.750		16000
						0.825		18025
						1.000		19500
					)
					Granularity ( 10 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		0.0
						 0.010		0.0
						 0.050		0.0
						 0.150		0.1
						 0.250		0.3
						 0.350		0.5
						 0.450		0.8
						 0.550		0.8
						 0.650		0.8
						 0.750		0.8
						 0.850		0.9
						 1.000		0.9
					)
					Granularity ( 0.05 )
				)				
			)			
			Stream (
				Skip (**		Sound of airpump - 2 streams : air release and turbo airpump	**)
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 1
					Random_Trigger (
						Delay_Min_Max ( 60 90 )
						Volume_Min_Max ( 2.0 2.5)
						PlayOneShot ( 1
							File ( 1D12_hiss.wav -1 ) SelectionMethod ( SequentialSelection ) ))
							)
					)
			Stream (
			Priority ( 6 )
			Volume (2.0)
			Triggers ( 2
               	 	Variable_Trigger ( Variable2_Inc_Past 	0.01 	StartLoop ( 1 File ( "1D12_turbo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
                		Variable_Trigger ( Variable2_Dec_Past 	0.01 	ReleaseLoopRelease () )
			)
                	VolumeCurve(	
                		Variable2Controlled  
                			CurvePoints ( 9
		 				 0.00		0.00
		 				 0.125		0.00
		 				 0.250		0.00
		 				 0.375		0.00
		 				 0.500		0.5
		 				 0.625		0.6
		 				 0.750	 	0.7
						 0.875		0.80
		 				 1.0		1.00
						)  
                			Granularity  ( 0.05 )
               		)
                	FrequencyCurve(
                		Variable2Controlled	 
                			CurvePoints ( 12
                        			 0.00	        6250
                       				 0.05	        6750
                        			 0.10	        7250
					 0.20	        7750
                        			 0.30	        8250
                        			 0.40	        8750
                        			 0.50	        9250
                        			 0.60	        9750
                        			 0.70	       10250
                        			 0.80	       10550
                        			 0.90	       11050
                        			 1.00	       11550
					)
                			Granularity  ( 0.05 )
                		          ) 
			)
			Stream (
				Skip (**		Sound of speed-meter SL-2		** )
				Priority ( 5 )
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past  .2	StartLoop ( 1	File ( sl2.wav -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  40	ReleaseLoopRelease () )	

					Variable_Trigger ( Speed_Dec_Past 40	StartLoop ( 1	File ( sl2.wav -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  .2	ReleaseLoopRelease () )
				)
				VolumeCurve ( 
					SpeedControlled
					
					CurvePoints ( 9
						0.0,		0.0
						0.2,		0.1
						5.0,		0.3
						8.0,		0.3
						40.0,		0.3
						8.0,		0.3
						5.0,		0.3
						0.2,		0.1
						0.0,		0.0
					)
					
					Granularity (0.01)
				)
			)
			Stream (
				Skip (**	Sound of speed-meter SL-2 - podzavod		** )
				Priority ( 5 )
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past  .2	StartLoop ( 1	File ( sl2_podzavod.wav -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  40	ReleaseLoopRelease () )	

					Variable_Trigger ( Speed_Dec_Past 40	StartLoop ( 1	File ( sl2_podzavod.wav -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  .2	ReleaseLoopRelease () )							
				)
				FrequencyCurve(
					SpeedControlled
					
					CurvePoints ( 2
				
						0.000 11250
						100.0 16500
					)
				Granularity ( 0 )
				)

				VolumeCurve ( 
					SpeedControlled
					
					CurvePoints ( 9
						0.0,		0.0
						0.2,		0.1
						5.0,		0.2
						8.0,		0.2
						40.0,		0.2
						8.0,		0.2
						5.0,		0.2
						0.2,		0.1
						0.0,		0.0
					)
					
					Granularity (0.01)
				)
			)
			Stream (
				Skip ( ****	Sound of horn	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "tifon.wav"  -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Skip ( ****	Sound of whistle		**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 1	File ( "svistok.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 11 ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Skip ( ****	Sound of sander		**** )				
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "sander.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( ****	Sound of E-400 compressor	**** )				
				Priority ( 7 )
				Volume ( 0.6 )			
				Triggers ( 2				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "compressor.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	ReleaseLoopRelease () )	
				)
			)

			Stream (
				Skip ( ****	Sounds of brake system		**** )
				Priority ( 6 )
				Volume ( 0.6 )
				Triggers ( 2	
				  Skip ( ****	254 locobrake 	**** )
				  Skip ( **** Release 	**** )
					Discrete_Trigger ( 21 	PlayOneShot ( 1 File ( "254_release.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
				  Skip ( **** Apply	**** )
					Discrete_Trigger ( 22  	PlayOneShot ( 1 File ( "254_apply.wav" -1 )	SelectionMethod ( RandomSelection ) ) )
				)
			)	
			Stream (
				Skip (**		222trainbrake			**)
				Priority ( 7 )
				Volume ( 0.6 )
				Triggers ( 4
					Discrete_Trigger ( 14	PlayOneShot ( 2 File ( "222_apply.wav" -1 ) File	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 54	ReleaseLoopReleaseWithJump () )
					Discrete_Trigger ( 53	PlayOneShot ( 2 File ( "222_release1.wav" -1 ) File ( "222_release2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
					Discrete_Trigger ( 54	PlayOneShot ( 2 File ( "222_release1.wav" -1 ) File ( "222_release2.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
					)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						0.000 	22050
						100.0 	22050
					)
				Granularity ( 0 )
				)

				VolumeCurve ( 
					SpeedControlled
					
					CurvePoints ( 3
						1.0,		1.0
						0.0,		1.0
						1.0,		1.0
					)
					
					Granularity (0.01)
				)
			)

			Stream (
				Skip (**		Sounds of coupling device		**)
				Priority ( 5 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "couple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "couple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "couple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "uncouple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "uncouple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "uncouple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)

			Stream (
				Skip ( **** This stream plays all the controls samples  	**** )
				Priority ( 7 )
				Volume ( 0.6 )
				Triggers ( 9
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "reverser.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "throttle.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "abrakef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "ibrakef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 20	PlayOneShot ( 1	File ( "dbrakef.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 26	PlayOneShot ( 1	File ( "sandf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "flightsf.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "econtrol1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 51	PlayOneShot ( 1	File ( "ebrake.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
			Stream (
				Skip (**		Sound of wheelblock	**)
				Priority ( 7 )
				Volume ( 1.0 )
				Triggers ( 14
						Variable_Trigger ( Speed_Dec_Past 2.0 	StartLoop ( 1File ( skrip.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.5ReleaseLoopReleaseWithJump () )
					)
				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 )
				)
			)
		)
	)
)

