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

Tr_SMS (
ScalabiltyGroup( 5
	Activation (	CabCam		()	Distance    	( 100 )		)
	Deactivation (	ExternalCam ()		PassengerCam	()	Distance    	( 100 )		)
	Stereo ()
	Streams ( 18
		Stream (
			Skip ( ******************** Silnik - wolne obroty, start, stop ********************   )
			Priority ( 6 )
			Triggers ( 5
				Initial_Trigger ( StartLoop ( 1 File ( "42_silnik.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "42_silnik-start.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 23 StartLoop ( 1 File ( "42_silnik.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 24 ReleaseLoopRelease () )
				Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "42_silnik-stop.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
			)
			FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.010		11025
						0.100		10000
						1.0		11025
					)
					Granularity ( 0.5 )
				)
    				VolumeCurve(
     					Variable2Controlled
     					CurvePoints ( 3
      						0.000 	1.0
						0.100	1.0
						0.400	0.1
     					)
     					Granularity ( 0.05 )
    					)
   				)
		Stream(
			Skip ( ******************** Silnik - obroty ********************   )
			Priority ( 8 )
			Volume ( 1.0 )
			Triggers ( 2
				Variable_Trigger 	( Variable1_Inc_Past	0.31	StartLoopRelease ( 1 File ( "42_silnik-obroty.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger 	( Variable1_Dec_Past	0.39	ReleaseLoopReleaseWithJump () )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.31	11025
						0.41	13025
						1.0		16000
					)
					Granularity ( 25 )
				)
			)
		Stream (
			Skip ( ******************** Turbo ******************** )
			Priority ( 8 )
			Volume ( 1.0 )
			Triggers ( 1
				Dist_Travelled_Trigger ( Dist_Min_Max ( 0  0 )  Volume_Min_Max ( 1.0 1.0 )
				PlayOneShot ( 1
				File ( "turbo.wav" -1 )
				SelectionMethod ( SequentialSelection ) ) )
				)
                     		VolumeCurve(	
                     			Variable2Controlled  
                                  	CurvePoints ( 12
                                                0.00       	0.0
                                          	0.01       	0.0
                                          	0.10       	0.01
                                          	0.20       	0.4
                                          	0.30       	0.42
                                          	0.40       	0.43
                                          	0.50       	0.45
                                          	0.60       	0.5
                                          	0.70       	0.55
                                          	0.80       	0.6
                                          	0.90       	0.65
                                          	1.00       	0.7
                                        )  
					Granularity  ( 0.05 )
                       		)
                     		FrequencyCurve(
                     			Variable2Controlled	 
                               		CurvePoints ( 2
                                          	0.00       	5000
                                          	1.00       	20000
                                	)
                   			Granularity  ( 0.05 )
                 		) 
			)
		Stream (
				Priority ( 8 )
				Volume( 0.8 )
				Triggers ( 2
				Skip ( ******************** Silniki trakcyjne ********************   )
					Variable_Trigger ( Variable2_Inc_Past 0.1 StartLoop   ( 1 File ( "42_trakcyjne.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.1 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-60.000	28025
						-5.000	5025
						0.000		1025
						5.000		5025
						60.000	28025
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 0.0			0.0
 						 0.10			0.3
						 0.20			0.4
						 0.5			0.4
						 0.8			0.45
						 1.000		0.5
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip( ******************** Silniki trakcyjne 2 ********************   )
				Priority ( 8 )
				Volume( 0.8 )
				Triggers ( 2
					Variable_Trigger ( Variable3_Inc_Past 0.02  StartLoopRelease   ( 1 File ( "42_trakcyjne.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable3_Dec_Past 0.02  ReleaseLoopRelease  () )					
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-160.000	96000
						0.000		2825
						160.000	96000
					)
					Granularity ( 100 )
                        )
				VolumeCurve(
					Variable3Controlled
					CurvePoints ( 4
                                     0.000		0.0
					       0.25			0.4
					     	 0.50			0.7
					       1.00 		1.0
					)
					Granularity ( 0.05 )
				)				
			)
		Stream (
			Skip ( ******************** Hamowanie - pisk ******************** )
			Priority ( 8 )
			Triggers ( 1
				Variable_Trigger ( Speed_Dec_Past  2.23  PlayOneShot ( 1 File ( "hamowanie-pisk.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
            		)
				VolumeCurve(
            		SpeedControlled
            		CurvePoints ( 5
                        	      0.00    0.00
                              	0.28    0.80
                               	0.84    0.70
                               	1.67    0.50
                               	2.23    0.20
                               )
                  	Granularity  ( 0.05 )
                  	)
			)
		Stream(
			Skip ( ******************** Syrena ******************** )
			Priority( 8 )
				Triggers( 8
					Initial_Trigger 	(				DisableTrigger ( 7 ) )
					Variable_Trigger 	( 	Speed_Inc_Past		2.5	DisableTrigger ( 6 ) )
					Variable_Trigger 	( 	Speed_Inc_Past		2.5	EnableTrigger  ( 7 ) )
					Variable_Trigger 	( 	Speed_Dec_Past		2.5	DisableTrigger ( 7 ) )
					Variable_Trigger 	( 	Speed_Dec_Past		2.5	EnableTrigger  ( 6 ) )
					Discrete_Trigger (  8	PlayOneShot  (1 File ( "42_syrena_krotka.wav" -1 )    SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  8	StartLoopRelease  (1 File ( "42_syrena.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  9	ReleaseLoopReleaseWithJump () )
				)
			)
		Stream (
			Skip ( ******************** Sygnal elektryczny "B" ******************** )
			Priority ( 8 )
			Triggers ( 2
				Discrete_Trigger ( 10	StartLoopRelease ( 1	File ( "42_sygnal_el.wav" -1 )	SelectionMethod ( SequentialSelection ) )	)
				Discrete_Trigger ( 11	ReleaseLoopReleaseWithJump () )
				)
			)
		Stream (
			Skip ( ******************** Piasecznica ********************    )
			Priority ( 8 )
			Triggers ( 2
				Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "42_piasecznica.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger (  5	ReleaseLoopRelease () )
				)
			)
		Stream(
                  Skip ( ******************** Hasler (predkosciomierz) ******************** )
			Priority ( 8 )
			Volume ( 0.5 )
			Triggers ( 2
				Variable_Trigger ( Speed_inc_past 1.0 Startlooprelease   ( 1 File ( "hasler.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_dec_past 1.0 ReleaseLoopRelease () )
                        )
                  )
		Stream(
			Skip ( ******************** Czuwak ******************** )
				Priority ( 6 )
				Triggers( 4
					Discrete_Trigger ( 56	SetStreamVolume ( 1.0 ) )
					Discrete_Trigger ( 56	StartLoopRelease ( 1 File ( "czuwak.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 57	SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 57	ReleaseLoopRelease() )
                        )
                  )
		Stream (
			Skip ( ******************** Zawor Sprezarki ********************  )
			Priority ( 8 )
			Triggers ( 1
				Discrete_Trigger ( 13	PlayOneShot ( 1	File ( "pss.wav" -1 )	SelectionMethod ( SequentialSelection ) )	)
				)
			)
		Stream (
			Skip ( ******************** Hamulce ******************** )
			Priority ( 8 )
			Volume ( 0.9 )
			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 ( "42_hamulec_lokomotywy.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)	
		Stream (
			Skip ( ******************** Radiotelefon on/off ********************  )
			Priority ( 8 )
			Triggers ( 2
				Discrete_Trigger ( 162	PlayOneShot ( 1	File ( "radiotelefon_on.wav" -1 )	SelectionMethod ( SequentialSelection ) )	)
				Discrete_Trigger ( 163	PlayOneShot ( 1	File ( "radiotelefon_off.wav" -1 )	SelectionMethod ( SequentialSelection ) )	)
				)
			)
		Stream (
			Skip ( ******************** Sprzeganie, rozprzeganie ******************** )
			Priority ( 8 )
			Triggers ( 2
				Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "couple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) )
				Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "uncouple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) )
				)
	     		)
			Stream (
				Skip ( sprężarka )
				Priority ( 8 )
				Volume ( 0 )
				Triggers ( 4
					Discrete_Trigger ( 12	SetStreamVolume ( .6 )	)
					Discrete_Trigger ( 12
						StartLoopRelease ( 1
							File ( "et22_sprezarka.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
				Discrete_Trigger ( 13	SetStreamVolume ( 0 )	)
				Discrete_Trigger ( 13	ReleaseLoopRelease ()	)
				)
			)
			Stream (
				Skip ( sprężarka - stop )
				Priority ( 8 )
				Volume ( .6 )
				Triggers ( 1
					Discrete_Trigger ( 13
						PlayOneShot ( 1
							File ( "et22_spr-stop.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
				)
			)
		Stream (
			Skip ( ******************** Nastawnik, nawrotnik, zetka, grzybek, ********************  )
			Priority ( 8 )
			Triggers ( 4
				Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "42_nawrotnik.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "42_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 ) ) )
				)
			)
		)
	)
)
)
