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

SKIP ( ET22-2000+ na zewnątrz )
Tr_SMS (

	ScalabiltyGroup( 5
		Activation (
			ExternalCam()
			Distance ( 3000 )
		)
		Deactivation (
			CabCam()
			PassengerCam()
			Distance ( 3000 )
		)
		Streams ( 20
			Stream (
				Skip ( piasecznica )
				Volume ( .6 )
				Priority ( 8 )
				Triggers ( 2				
					Discrete_Trigger ( 4
						StartLoopRelease ( 1
							File ( "piasecznica.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 5
						ReleaseLoopRelease ()
					)
				)
			)
			Stream (
				Skip ( przetwornica - start	)		
				Priority ( 8 )
				Volume( 0 )
				Triggers ( 4
					Discrete_Trigger ( 6
						SetStreamVolume ( .5 )
					)
					Discrete_Trigger ( 6
						StartLoopRelease ( 1
							File ( "et22-2000_przetwornica.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 7
						ReleaseLoopReleaseWithJump ()
					)
					Discrete_Trigger ( 7
						SetStreamVolume ( 0 )
					)
				)
			)
			Stream (
				Skip ( przetwornica - stop )		
				Priority ( 8 )
				Volume( .5 )
				Triggers ( 1
					Discrete_Trigger ( 7
						PlayOneShot ( 1
							File ( "et22-2000_przetw-stop.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( wylacznik szybki )		
				Priority ( 8 )
				Volume( .1 )
				Triggers ( 2
					Discrete_Trigger ( 151
						PlayOneShot	( 1
							File ( "wyl_ws.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 150
						PlayOneShot	( 1
							File ( "stycznik5.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( pantograf gora i dol )		
				Priority ( 8 )
				Volume( .4 )
				Triggers ( 2
					Discrete_Trigger ( 45
						PlayOneShot	( 1
							File ( "panto_gora.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 46
						PlayOneShot	( 1
							File ( "panto_dol.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( pantograf gora i dol - przedni )		
				Priority ( 8 )
				Volume( .4 )
				Triggers ( 2
					Discrete_Trigger ( 66
						PlayOneShot	( 1
							File ( "panto_gora.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 67
						PlayOneShot	( 1
							File ( "panto_dol.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( styczniki )
				Priority ( 8 )
				Volume ( 0 )
				Triggers ( 3
					Variable_Trigger ( Variable2_Inc_Past .1
						SetStreamVolume ( .2 )
					)
					Discrete_Trigger ( 16
						PlayOneShot ( 6
							File ( "stycznik1.wav" -1 )
							File ( "stycznik2.wav" -1 )
							File ( "stycznik3.wav" -1 )
							File ( "stycznik4.wav" -1 )
							File ( "stycznik5.wav" -1 )
							File ( "stycznik6.wav" -1 )
							SelectionMethod ( RandomSelection )
						)
					)
					Variable_Trigger ( Variable2_Dec_Past .1
						SetStreamVolume ( 0 )
					)
				)
			)
			Stream (
				Skip ( przejście z/na układ SR )
				Skip ( krzywe potrzebne są po to, żeby dźwięki słyszalne były tylko w ściśle określonych pozycjach )
				Priority ( 8 )
				Volume ( 0 )
				Triggers ( 4
					Variable_Trigger ( Variable2_Inc_Past .1
						SetStreamVolume ( .1 )
					)
					Variable_Trigger ( Variable2_Dec_Past .1
						SetStreamVolume ( 0 )
					)
					Variable_Trigger ( Variable1_Inc_Past 33
						PlayOneShot ( 1
							File ( "et22_sr.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Variable1_Dec_Past 33
						PlayOneShot ( 1
							File ( "et22_sr.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( przejście z/na układ R )
				Priority ( 8 )
				Volume ( 0 )
				Triggers ( 4
					Variable_Trigger ( Variable2_Inc_Past .1
						SetStreamVolume ( .1 )
					)
					Variable_Trigger ( Variable2_Dec_Past .1
						SetStreamVolume ( 0 )
					)
					Variable_Trigger ( Variable1_Dec_Past 66
						PlayOneShot ( 1
							File ( "et22_r.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Variable1_Inc_Past 66
						PlayOneShot ( 1
							File ( "et22_r.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( to tygryski lubią najbardziej )
				Priority ( 8 )
				Triggers ( 4
					Discrete_Trigger ( 8	SetStreamVolume ( 1 )	)
					Discrete_Trigger ( 8
						StartLoopRelease ( 1
							File ( "et22_rp1w_1.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
					Discrete_Trigger ( 9	SetStreamVolume ( 0 )	)
					Discrete_Trigger ( 9	ReleaseLoopRelease ()	)
				)
			)
			Stream (
				Skip ( koncowka rp1 )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 1
					Discrete_Trigger ( 9
						PlayOneShot ( 1
							File ( "et22_rp1w_2.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
				)
			)
			Stream (
				Skip ( syrena niska )
				Priority ( 8 )
				Triggers ( 4
					Discrete_Trigger ( 10	SetStreamVolume ( 1 )	)
					Discrete_Trigger ( 10
						StartLoopRelease ( 1
							File ( "et22_rp1n_1.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
					Discrete_Trigger ( 11	SetStreamVolume ( 0 )	)
					Discrete_Trigger ( 11	ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Skip ( koncowka rp1 niskiego )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 1
					Discrete_Trigger ( 11
						PlayOneShot ( 1
							File ( "et22_rp1n_2.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-2000_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-2000_spr-stop.wav" -1 )
							SelectionMethod ( SequentialSelection  )
						)
					)
				)
			)
						Stream (
				Skip ( sprzeganie/odsprzeganie )
				Priority ( 8 )
				Volume ( .4 )
				Triggers ( 6
					Discrete_Trigger ( 58
						PlayOneShot ( 1
							File ( "sprzeg_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 59
						PlayOneShot ( 1
							File ( "sprzeg_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 60
						PlayOneShot ( 1
							File ( "sprzeg_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 61
						PlayOneShot ( 1
							File ( "rozprz_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 62
						PlayOneShot ( 1
							File ( "rozprz_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 63
						PlayOneShot ( 1
							File ( "rozprz_1.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( zahamuj )
				Priority ( 8 )
				Volume ( .2 )
				Triggers ( 2
					Discrete_Trigger ( 14
						StartLoopRelease ( 1
							File ( "fv4a_hamuj.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 139	ReleaseLoopRelease ()	)
				)
			)
			Stream (
				Skip ( odhamuj )
				Priority ( 8 )
				Volume ( .2 )
				Triggers ( 2
					Discrete_Trigger ( 54
						StartLoopRelease ( 1
							File ( "fv4a_odhamuj.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 139	ReleaseLoopRelease ()	)
				)
			)
			Stream (
				Skip ( hamulce-szum )
				Priority ( 8 )
				Volume ( 0 )
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past 1
						SetStreamVolume ( .7 )
					)
					Variable_Trigger ( BrakeCyl_Inc_Past 0.1
						StartLoopRelease ( 1
							File ( "hamulec.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( BrakeCyl_Dec_Past 0.1
						ReleaseLoopRelease ()
					)
					Variable_Trigger ( Speed_Dec_Past 2
						ReleaseLoopRelease ()
					)
				)
				FrequencyCurve (
					SpeedControlled
					CurvePoints ( 3
						-34	30000
						0	15000
						34	30000
					)
					Granularity ( .1 )
				)
				VolumeCurve (
					SpeedControlled
					CurvePoints ( 3
						-5	1
						0	0
						5	1
					)
                   Granularity  ( 0.1 )
				)
				VolumeCurve (
					BrakeCylControlled
					CurvePoints ( 2
						0	0
						71	1
					)
                   Granularity  ( 0.1 )
				)
			)
			Stream (
				Skip ( silniki trakcyjne )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past .1
						StartLoopRelease ( 1
							File ( "motor.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Speed_Dec_Past .2 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-59		132300
						-22		44100
						0		0
						22		44100
						59		132300
					)
					Granularity ( .01 )
				)
				VolumeCurve (
					Variable2Controlled
					CurvePoints ( 4
						0	0
						4	.2
						10	.6
						60	1
					)
				Granularity ( .05 )
				)
			)
		)
	)
)
