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

Tr_SMS (
ScalabiltyGroup( 5
	Activation (	CabCam		()	Distance    	( 100 )		)
	Deactivation (	ExternalCam ()		PassengerCam	()	Distance    	( 100 )		)
	Stereo ()
	Streams ( 12
		Stream (
			Skip ( ******************** Silnik ********************   )
			Priority ( 8 )
			Volume ( 0.7 )
			Triggers ( 2
				Initial_Trigger  ( StartLoop ( 1 File ( "silnik-new.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Inc_Past 0.01 StartLoopRelease ( 1 File ( "silnik-new.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
   				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.01		11025
						0.04		10500
						0.13		11025
					)
					Granularity ( 0.5 )
				)
    				VolumeCurve(
     					Variable2Controlled
     					CurvePoints ( 3
      					0.00  1.0
						0.04	1.0
						0.13	0.01
     					)
     					Granularity ( 0.05 )
    					)
   				)
		Stream(
			Skip ( ******************** Silnik - obroty ********************   )
			Priority ( 8 )
			Triggers ( 2
				Variable_Trigger 	( Variable2_Inc_Past	0.05	StartLoopRelease ( 1 File ( "silnik-obroty-new.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger 	( Variable2_Dec_Past	0.12	ReleaseLoopReleaseWithJump () )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
						0.12		11025
						1.0		13500
					)
					Granularity ( 0.05 )
				)
			)
		Stream (
			Skip ( ******************** Turbo ******************** )
			Priority ( 8 )
			Triggers ( 1
				Dist_Travelled_Trigger ( Dist_Min_Max ( 0  0 )  Volume_Min_Max ( 0.7 0.7 )
				PlayOneShot ( 1
				File ( "turbo.wav" -1 )
				SelectionMethod ( SequentialSelection ) ) )
				)
                     		VolumeCurve(	
                     			Variable2Controlled  
                                  	CurvePoints ( 5
                                                 0.00		0.0
								 0.05		0.0
								 0.10		0.0
                                                 0.15    	0.3
								 0.25		0.7
                                                 0.40    	0.9
                                                 1.00    	1.0
                                        )  
					Granularity  ( 0.05 )
                       		)
                     		FrequencyCurve(
                     			Variable2Controlled	 
                               		CurvePoints ( 2
                                          	0.00       	8000
                                          	1.00		11500
                                	)
                   			Granularity  ( 0.05 )
                 		) 
			)

          Stream(
		     Skip ( ****************************Syrena- zalezna od predkosci************************)
               Priority( 6 )
               Triggers( 8
               Initial_Trigger 	(				DisableTrigger ( 7 ) )
               Variable_Trigger 	( 	Speed_Inc_Past		0.55	DisableTrigger ( 6 ) )
               Variable_Trigger 	( 	Speed_Inc_Past		0.55	EnableTrigger  ( 7 ) )
               Variable_Trigger 	( 	Speed_Dec_Past		0.55	DisableTrigger ( 7 ) )
               Variable_Trigger 	( 	Speed_Dec_Past		0.55	EnableTrigger  ( 6 ) )
               Discrete_Trigger (  8	PlayOneShot 	 (1 File ( "whistle11025short.wav" -1 )    SelectionMethod ( SequentialSelection ) ) )
               Discrete_Trigger (  8	StartLoopRelease (1 File ( "whistle11025stereo-new.wav" -1 )         SelectionMethod ( SequentialSelection ) ) )
               Discrete_Trigger (  9	ReleaseLoopReleaseWithJump () )
                    )
               )

	Stream (
				Skip (****	Sound of whistle		****)
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 10 StartLoopRelease 		( 1	File ( "syg_elektr.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 11 ReleaseLoopReleaseWithJump ()	)
				)
			)

          Stream (
			Skip ( ******************** Zawor Sprezarki ********************  )
			Priority ( 8 )			
			Triggers ( 1
				Random_Trigger ( Delay_Min_Max ( 60 100 )  Volume_Min_Max ( 0.9 1.0 )PlayOneShot ( 1 File ( "pspsps.wav" -1 ) SelectionMethod ( RandomSelection )))
				)
			)
		Stream (
			Skip ( ******************** Stukot kol ******************** )
			Priority ( 6 )
             	
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past  0.1	StartLoop ( 1	File ( "stukot_1.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( Speed_Inc_Past 15.0	ReleaseLoopRelease ()	)
					Variable_Trigger ( Speed_Dec_Past 15.0	StartLoop ( 1	File ( "stukot_1.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( Speed_Dec_Past  0.1	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-15.000	15025
						0.000		4000
						15.000	15025
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
					       -13.5      	0.0  
					       -12.0		1.0
					       -3.0	      	0.5  
                                     0.000		0.0
					       3.0			0.5
					       12.0	      	1.0  
					       13.5	      	0.0  
					)
					Granularity ( 0.05 )
				)				
			)
		Stream (
			Skip ( ******************** Stukot kol 2 ******************** )
			Priority ( 6 )
             		Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past 8.0	StartLoop ( 1	File ( "stukot_2.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( Speed_Dec_Past 8.0	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-30.000	14025
						-10.000	 8025
						0.000		 7025
						10.000	 8025
						30.000	14025
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 9
					       -30.0      	1.0  
					       -19.5      	1.0  
					       -13.5		1.0
					       -12.0 	      0.0  
                                     0.000		0.0
					       12.0			0.0
					       13.5	      	1.0  
					       19.5	      	1.0
					       30.0      	      1.0  
					)
					Granularity ( 0.05 )
				)
                  )
		Stream (
			Skip ( ******************** Hamowanie - pisk ********************    )
			Priority ( 8 )
			Triggers ( 1
				Variable_Trigger ( Speed_Dec_Past  0.5  PlayOneShot ( 1 File ( "hamowanie-pisk.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
            		)
			)
		Stream (
			Skip ( ******************** Hamulce ******************** )
			Priority ( 8 )
			Triggers ( 4
			
			Skip ( ******************** Hamulec pociagu ******************** )
				Discrete_Trigger ( 14	PlayOneShot ( 1	File ( "hamulec_pociagu.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
			
			Skip ( ******************** Luzowanie & hamowanie nagle ******************* )
				Discrete_Trigger ( 53 	StartLoopRelease ( 1	File ( "hamulec-luzowanie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 54 	PlayOneShot ( 1	File ( "hamulec-luzowanie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )

			Skip ( ******************** Hamulec lokomotywy ******************* )
				Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "hamulec_lokomotywy.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
		Stream (
			Skip ( ******************** Piasecznica ********************    )
			Priority ( 8 )
			Triggers ( 2
				Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "piasecznica.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger (  5	ReleaseLoopRelease () )
				)
			)
	
		Stream (
			Skip ( ******************** Nastawnik, nawrotnik, zetka, grzybek, ********************  )
			Priority ( 8 )
			Triggers ( 4
				Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "nawrotnik.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "nastawnik.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "zetka.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 48	PlayOneShot ( 1	File ( "grzybek.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)
		)
	)
)
)