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

Tr_SMS (
ScalabiltyGroup( 5
	Activation ( CabCam () Distance ( 100 ) )
	Deactivation ( ExternalCam () PassengerCam	() Distance ( 100 ) )
	Stereo ()
	Streams ( 19
	
	Skip ( ******************** Silnik - wolne obroty, start, stop ********************   )	
		Stream (
			Priority ( 6 )
			Triggers ( 7
				Discrete_Trigger ( 24 SetStreamVolume ( 0.0 ) )
				Discrete_Trigger ( 23 SetStreamVolume ( 1.0 ) )
				Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "42_silnik-start.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 23 StartLoopRelease ( 1 File ( "42_silnik.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 23 DisableTrigger ( 3 ) )
				Discrete_Trigger ( 24 ReleaseLoopRelease () )
				Discrete_Trigger ( 24 EnableTrigger ( 3 ) )
                      )
			    FrequencyCurve(
					Variable2Controlled
					    CurvePoints ( 3
      						          0.010		11025
      						          0.100		10000
      						          1.000		11025
					)
					Granularity ( 0.5 )
				)
    			VolumeCurve(
     				Variable2Controlled
     					CurvePoints ( 3
      						          0.000 	1.0
      						          0.100 	1.0
      						          0.400 	0.1
     					)
     					Granularity ( 0.05 )
    					)
   				)
        Stream (
            Priority ( 7 )
            Triggers ( 8
				Initial_Trigger ( SetStreamVolume ( 0.0 ) )
				Discrete_Trigger ( 23 SetStreamVolume ( 0.0 ) )
				Discrete_Trigger ( 23 EnableTrigger ( 5 ) )
				Discrete_Trigger ( 24 SetStreamVolume ( 1.0 ) )	
				Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "42_silnik-stop.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 24 StartLoopRelease ( 1 File ( "Hyglo_Pause.wav" -1 ) SelectionMethod ( SequentialSelection) ) )
				Discrete_Trigger ( 24 DisableTrigger ( 5 ) )
				Discrete_Trigger ( 23 ReleaseLoopRelease () ) 
                     )
              )								
		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.00	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 (
			Skip ( ******************** Silniki trakcyjne ********************   )		
				Priority ( 8 )
				Volume( 0.8 )
				Triggers ( 2
					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.0 	28025
      						          -5.00 	5025
      						          0.000		1025
      						          5.000		5025
      						          60.00 	28025
					                )
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					    CurvePoints ( 5
      						          0.00			0.00
       						          0.10			0.30
      						          0.20			0.40
      						          0.50			0.40
      						          0.80			0.45
      						          1.00  		0.50
					)
					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.0	    96000
      						          0.0000		2825
      						          160.00 	    96000
					)
					Granularity ( 100 )
                        )
				VolumeCurve(
					Variable3Controlled
					    CurvePoints ( 4
                                      0.00  		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 ( 54 PlayOneShot ( 1 File ( "hamulec-luzowanie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				    Discrete_Trigger ( 142 StartLoopRelease ( 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 ( 0.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 ( 0.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 ) ) )
				)
			)
		)
	)
)
)
