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

Tr_SMS (
	
ScalabiltyGroup( 5
	Activation 	( ExternalCam () PassengerCam () Distance (1000) )
	Deactivation ( CabCam () Distance (1000) )
	Streams ( 12
		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 ( "x_42_silnik-start.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 23 StartLoopRelease ( 1 File ( "x_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 ( "x_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 ( "x_42_silnik-obroty.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable1_Dec_Past 0.39 ReleaseLoopReleaseWithJump () )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 2
						          0.31		11025
						          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 ( "x_turbo.wav" -1 )
				SelectionMethod ( SequentialSelection ) ) )
				     )
                VolumeCurve(	
                    Variable2Controlled  
                    CurvePoints ( 12
						          0.00       	0.0
						          0.01       	0.0
						          0.10       	0.0
						          0.20       	0.0
						          0.30       	0.0
						          0.40       	0.4
						          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 ( "x_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.00			0.0
						          0.10			0.3
						          0.20			0.4
						          0.50			0.4
						          0.80			0.45
						          1.00  		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 ( "x_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.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.0 PlayOneShot ( 1 File ( "x_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 ( "x_42_syrena_krotka.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 8 StartLoopRelease (1 File ( "x_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 ( "x_42_sygnal_el.wav" -1 ) SelectionMethod ( SequentialSelection ) )	)
				Discrete_Trigger ( 11 ReleaseLoopReleaseWithJump () )
				)
			)
Stream (
		Skip ( ******************** Zawor Sprezarki ********************  )
			Priority ( 8 )
			Triggers ( 1
				Discrete_Trigger ( 13 PlayOneShot ( 1 File ( "x_pss.wav" -1 ) SelectionMethod ( SequentialSelection ) )	)
				)
			)
Stream (
		Skip ( ******************** Hamulce ******************** )
			Priority ( 8 )
			Triggers ( 4
			
		Skip ( ******************** Hamulec pociagu ******************** )
				Discrete_Trigger ( 14 PlayOneShot ( 1 File ( "x_hamulec_pociagu.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
			
		Skip ( ******************** Luzowanie & hamowanie nagle ******************* )
				Discrete_Trigger ( 54 PlayOneShot ( 1	File ( "x_hamulec-luzowanie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 142 StartLoopRelease ( 1 File ( "x_hamulec-luzowanie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )

		Skip ( ******************** Hamulec lokomotywy ******************* )
				Discrete_Trigger ( 18 PlayOneShot ( 1 File ( "x_42_hamulec_lokomotywy.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)	

Stream (
			Skip ( ******************** Sprzeganie, rozprzeganie ******************** )
			Priority ( 8 )
			Triggers ( 2
				Discrete_Trigger ( 58 PlayOneShot ( 1 File ( "x_couple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) )
				Discrete_Trigger ( 61 PlayOneShot ( 1 File ( "x_uncouple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) )
				)
	     	)
        )
	)
)