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

SKIP ( Kabina ET22 po małych modernizacjach )
Tr_SMS (

	ScalabiltyGroup( 5
		Activation (
			CabCam()
		)
		Deactivation (
			ExternalCam()
			PassengerCam()
		)
		Streams ( 27
			Stream (
				Skip ( piasecznica )
				Volume ( .4 )
				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 ( .15 )
					)
					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( .1 )
				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 ( "zal_ws.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 150
						PlayOneShot	( 1
							File ( "wyl_ws.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( pantograf gora i dol )		
				Priority ( 8 )
				Volume( .1 )
				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( .3 )
				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 ( .7 )
					)
					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 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 ( 3
					Variable_Trigger ( Variable2_Inc_Past .1
						SetStreamVolume ( 1 )
					)
					Variable_Trigger ( Variable2_Dec_Past .1
						SetStreamVolume ( 0 )
					)
					Variable_Trigger ( Variable1_Inc_Past 52
						PlayOneShot ( 1
							File ( "et22_sr.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve (
					Variable1Controlled
					CurvePoints ( 3
						52.9	0
						53		1
						53.1	0
						
					)
				Granularity ( .1 )
				)
			)
			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 78
						PlayOneShot ( 1
							File ( "et22_r.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Variable1_Inc_Past 65
						PlayOneShot ( 1
							File ( "et22_r.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
				VolumeCurve (
					Variable1Controlled
					CurvePoints ( 6
						64.9	0
						65		1
						65.1	0
						77.9	0
						78		1
						78.1	0
						
					)
				Granularity ( .1 )
				)
			)
			Stream (
			  Skip ( wentylatory )
				Priority ( 8 )
				Volume ( .4 )
				Triggers ( 3
					Variable_Trigger ( Variable2_Inc_Past 37
						StartLoopRelease ( 1
							File ( "went.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
      				Variable_Trigger ( Variable1_Inc_Past 77
						ReleaseLoopReleaseWithJump ()
					)
					Variable_Trigger ( Variable1_Dec_Past 16
						ReleaseLoopReleaseWithJump ()
					)
				)
				FrequencyCurve (
					Variable2Controlled
					CurvePoints ( 3
						30	44100
						60	46100
						90	48100
					)
				Granularity ( .2 )
				)
			)
			Stream (
				Skip ( to tygryski lubią najbardziej )
				Priority ( 8 )
				Triggers ( 4
					Discrete_Trigger ( 8	SetStreamVolume ( .7 )	)
					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 ( .7 )
				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 ( .7 )	)
					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 ( .7 )
				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_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 ( zahamuj )
				Priority ( 8 )
				Volume ( .5 )
				Triggers ( 2
					Discrete_Trigger ( 14
						StartLoopRelease ( 1
							File ( "fv4a_hamuj.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 139	ReleaseLoopRelease ()	)
				)
			)
			Stream (
				Skip ( odhamuj )
				Priority ( 8 )
				Volume ( .5 )
				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 ( .9 )
					)
					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 ( .7 )
				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 )
				)
			)
			Stream (
				Skip ( hasler - zegarek )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 1
					Initial_Trigger (
						StartLoop ( 1
							File ( "tykutyku.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( czuwak )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 4
					Discrete_Trigger ( 56	SetStreamVolume ( 1 )	)
					Discrete_Trigger ( 56
						StartLoopRelease ( 1
							File ( "czuwak.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 57	SetStreamVolume ( 0 )	)
					Discrete_Trigger ( 57	ReleaseLoopRelease() )
				)
			)
			Stream (
				Skip ( hasler )
				Priority ( 8 )
				Volume ( .7 )
				Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past 1.5
						StartLoopRelease ( 1
							File ( "hasler.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Variable_Trigger ( Speed_Dec_Past 1.5		ReleaseLoopRelease ()	)
				)
			)
			Stream (
				Skip ( nastawnik )
				Priority ( 8 )
				Volume ( 0.8 )
				Triggers ( 1
					Discrete_Trigger ( 16
						PlayOneShot ( 1
							File ( "nastawnik.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( nawrotnik )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 1
					Discrete_Trigger ( 15
						PlayOneShot ( 1
							File ( "nawrotnik.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( przyciski )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 6
					Discrete_Trigger ( 6
						PlayOneShot ( 1
							File ( "et22_przycisk.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 7
						PlayOneShot ( 1
							File ( "et22_przycisk.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 47
						PlayOneShot ( 1
							File ( "et22_przycisk.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 37
						PlayOneShot ( 1
							File ( "et22_przycisk.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 48
						PlayOneShot ( 1
							File ( "grzybek.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
					Discrete_Trigger ( 4
						PlayOneShot ( 1
							File ( "grzybek.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
			Stream (
				Skip ( zmiana hamulca )
				Priority ( 8 )
				Volume ( 1 )
				Triggers ( 1
					Discrete_Trigger ( 17
						PlayOneShot ( 1
							File ( "przes.wav" -1 )
							SelectionMethod ( SequentialSelection )
						)
					)
				)
			)
		)
	)
)
