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

Tr_SMS (

	Skip ( **  DEJV, JACEK: Zvuky pro elektrické lokomotivy řady 180 - 183, verze 2.0  ** )

	ScalabiltyGroup( 5
		Activation (
			ExternalCam ()
			PassengerCam ()
			Distance  (450)
		)
		Deactivation (
      		CabCam ()
			Distance  (450)
		)
		Volume (1.0)
		Streams ( 18
			Stream (
				Priority ( 6 )
				Volume(0.8)			
				Triggers ( 23
					Initial_Trigger ( SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Inc_Past 0.400 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Inc_Past 0.800 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 1.200 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 1.600 SetStreamVolume ( 0.20 ) )
      				Variable_Trigger ( Speed_Inc_Past 2.000 SetStreamVolume ( 0.30 ) )
					Variable_Trigger ( Speed_Inc_Past 2.400 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 2.800 SetStreamVolume ( 0.50 ) )
					Variable_Trigger ( Speed_Inc_Past 3.200 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 3.600 SetStreamVolume ( 0.70 ) )
					Variable_Trigger ( Speed_Inc_Past 4.000 SetStreamVolume ( 0.80 ) )

					Variable_Trigger ( Speed_Dec_Past 4.000 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 3.600 SetStreamVolume ( 0.70 ) )
					Variable_Trigger ( Speed_Dec_Past 3.200 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 2.800 SetStreamVolume ( 0.50 ) )
					Variable_Trigger ( Speed_Dec_Past 2.400 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 2.000 SetStreamVolume ( 0.30 ) )
					Variable_Trigger ( Speed_Dec_Past 1.600 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Dec_Past 1.200 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.800 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.400 SetStreamVolume ( 0.00 ) )

					Variable_Trigger ( Variable2_Inc_Past 0.10 StartLoop   ( 1 File ( "x_trakcne_motory.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.10 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-120.000	85025
						-22.000	18025
						0.000		2825
						22.000	18025
						120.000	85025
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 4
                                     0.000		0.00
					       25.0			0.5
					     	 60.0			0.8
					       100.0		1.0  
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Triggers ( 5
				Initial_Trigger  ( StartLoop   ( 1 File ( "x_klapot.wav" -1 )   SelectionMethod ( SequentialSelection )  ) )	
				Variable_Trigger ( Variable2_Inc_Past  0.025 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Inc_Past  0.010 StartLoop   ( 1 File ( "x_klapot.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Dec_Past  0.010 ReleaseLoopRelease () )
				Variable_Trigger ( Variable2_Dec_Past  0.025 StartLoop   ( 1 File ( "x_klapot.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )


				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						
						-80		50000
						0.000		3000
						80		50000
						
					)
					Granularity ( 100 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 
						 -25.0		0.0
						 -15.0		1.0
						 0.000		0.0
						 15			1.0
						 25			0.0
					)
					Granularity ( 0.05 )					
				)				

			)

			Stream (
				Skip ( **** Tifon High **** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	playoneshot ( 1	File ( "x_hukacka_silna.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 10	playoneshot ( 1	File ( "x_hukacka_slaba.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
				)
			)
			Stream (
			  Skip ( **** Kompresor	**** )
			  Skip ( **** Rozbehne se po odbrzdeni pri stani nebo po odbrzdeni a naslednem zastaveni 	**** )
			  Skip ( **** Rozbeh po odbrzdeni za jizdy neni umoznen, protoze napr. po 5 odbrzdenich 	**** )
      		  Skip ( **** tesne po sobe by pak bezel 5krat, coz neni zrovna idealni **** )
				Priority ( 6 )
				Volume (0.8)
				Triggers ( 30

			  Skip ( Spusteni odbrzdenim nebo odbrzdenim a naslednym zastavenim )

					Discrete_Trigger ( 53  	PlayOneShot ( 1 File ( "x_kompresor.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 54  	PlayOneShot ( 1 File ( "x_kompresor.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 0.1 PlayOneShot ( 1 File ( "x_kompresor.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )

			  Skip ( Znemozneni vicenasobneho spousteni [to by potom bezel jeste nekolikrat pri jizde] )

					Discrete_Trigger ( 53  	DisableTrigger( 1 ) )
					Discrete_Trigger ( 54  	DisableTrigger( 2 ) )

					Discrete_Trigger ( 53  	DisableTrigger( 3 ) )
					Discrete_Trigger ( 54  	DisableTrigger( 3 ) )
					Variable_Trigger ( Speed_Dec_Past 0.1 DisableTrigger( 3 ) )

			  Skip ( Povoleni/znemozneni spusteni pri zastaveni/po rozjeti [aby pri kazdem odbrzdeni za jizdy nebezel]	)

					Variable_Trigger ( Speed_Dec_Past 0.1 EnableTrigger( 1 ) )
					Variable_Trigger ( Speed_Dec_Past 0.1 EnableTrigger( 2 ) )

					Variable_Trigger ( Speed_Inc_Past 0.1 DisableTrigger( 1 ) )
					Variable_Trigger ( Speed_Inc_Past 0.1 DisableTrigger( 2 ) )
					Variable_Trigger ( Speed_Inc_Past 0.1 DisableTrigger( 3 ) )

			  Skip ( Povoleni spusteni po odbrzdeni a naslednem zastaveni [navazuje na predchozi trigger] )

					Discrete_Trigger ( 53  	EnableTrigger( 3 ) )
					Discrete_Trigger ( 54  	EnableTrigger( 3 ) )

			  Skip ( Povoleni/znemozneni spusteni pri zvednuti/spusteni sberace )

					Discrete_Trigger ( 45  	EnableTrigger( 1 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 2 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 3 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 9 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 10 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 14 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 15 ) )

					Discrete_Trigger ( 46  	DisableTrigger( 1 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 2 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 3 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 9 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 10 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 14 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 15 ) )

					Discrete_Trigger ( 14   DisableTrigger( 3 ) )
				)
			)	
			Stream (
				Priority ( 6 )
				Volume (0.8)
				Triggers ( 3
				  Skip ( **** Tbrake 	**** )
				  Skip ( **** Apply 	**** )
					Discrete_Trigger ( 14 	PlayOneShot ( 1 File ( "x_brzda_vlakova_polohy.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				  Skip ( **** Tbrake 	**** )
				  Skip ( **** Release {normal & emergency}	**** )
					Discrete_Trigger ( 53  	PlayOneShot ( 1 File ( "x_vzduch.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 54  	PlayOneShot ( 1 File ( "x_vzduch.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)	
			Stream (
				Priority ( 6 )
				Volume (0.8)
				Triggers ( 2
					Discrete_Trigger ( 45   PlayOneShot ( 1 	File ( "x_zberac_h.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 46   PlayOneShot ( 1 	File ( "x_zberac_d.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Priority ( 6 )
				Volume(1.0)			
				Triggers ( 4
        				Discrete_Trigger (  14 ReleaseLoopRelease ( 1 File ( "x_ticho.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
       				Discrete_Trigger (  14 StartLoop ( 1 File ( "x_brzdy.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
       				Skip ( **** Brake Normal Apply	**** )
					Discrete_Trigger (  54 ReleaseLoopRelease ( 1 File ( "x_brzdy.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54 StartLoop ( 1 File ( "x_ticho.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 11
					       -100.0		0.0
					     	 -6.0		      0.0
                                     -3.0 		0.2
					       -0.3	       	0.8
					       -0.1       	0.0
                                      0.0       	0.000
					        0.1	      	0.0
					        0.3	      	0.8
					        3.0			0.2
					     	  6.0			0.0
					       100.0		0.0  
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Volume(1.0)			
				Triggers ( 8
        				Discrete_Trigger (  14 ReleaseLoopRelease ( 1 File ( "x_ticho.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  14 PlayOneShot ( 1 File ( "x_brzdenie_zaciatok.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  14 DisableTrigger( 2 ) )
       				Discrete_Trigger (  14 StartLoop ( 1 File ( "x_brzdenie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )


					Discrete_Trigger (  54 ReleaseLoopRelease ( 1 File ( "x_brzdenie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54 PlayOneShot ( 1 File ( "x_brzdenie_koniec.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )

					Discrete_Trigger (  54 EnableTrigger( 2 ) )

					Discrete_Trigger (  54 StartLoop ( 1 File ( "x_ticho.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-40.000	14000
						0.000		 8000
						40.000	14000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
					     	 -40.0		1.0
                                     -8.5 		0.9
                                      0.0 		0.0
					        8.5			0.9
					       40.0		      1.0  
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Volume(1.0)			
				Triggers ( 43				
      				Variable_Trigger ( Variable1_Inc_Past 3.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 4.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 5.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 6.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 7.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 8.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 10.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 12.7 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 13.5 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 15.1 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 15.6 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 16.2 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 16.8 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 17.5 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 18.3 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 19.1 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 19.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 20.6 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 21.7 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 22.7 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 24.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 25.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 27.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 29.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 30.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 31.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 32.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 33.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 34.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 35.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 36.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 41.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 44.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 49.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 53.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 57.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 61.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 65.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 69.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 73.0 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 81.8 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 90.5 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Inc_Past 99.5 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)				
				FrequencyCurve(
					Variable1Controlled
					CurvePoints ( 2
						   0.0		 22050
						   1.0		 22050
					)
					Granularity ( 100 )
				)
			)
			Stream (
				Priority ( 6 )
				Volume(1.0)			
				Triggers ( 43
      				Variable_Trigger ( Variable1_Dec_Past 99.4 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 90.4 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 81.7 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 72.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 68.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 64.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 60.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 56.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 52.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 48.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 43.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 40.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 35.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 34.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 33.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 32.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 31.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 30.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 29.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 28.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 26.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 24.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 23.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 22.6 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 21.6 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 20.5 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 19.8 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 19.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 18.2 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 17.4 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 16.5 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 16.1 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 15.5 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 15.0 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 13.4 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 12.6 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 9.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 7.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 6.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 5.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 4.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 3.9 PlayOneShot   ( 1 File ( "x_stykace_5-6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
      				Variable_Trigger ( Variable1_Dec_Past 2.9 PlayOneShot   ( 1 File ( "x_stykace_3-4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)				
				FrequencyCurve(
					Variable1Controlled
					CurvePoints ( 2
						   0.0		 22050
						   1.0		 22050
					)
					Granularity ( 100 )
				)
			)
			Stream (
				Priority ( 6 )
				Volume(1.0)			
				Triggers ( 2
                              Variable_Trigger ( Variable2_Inc_Past 6.0 StartLoopRelease ( 1	File ( "x_ventilator.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
 					Variable_Trigger ( Variable2_Dec_Past 0.01 ReleaseLoopReleaseWithJump  ( 1	File ( "x_ventilator.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )					
				)
			)
			Stream(
				Skip ( **** odpojovace **** )
				Priority ( 6 )
				Volume (0.8)
				Triggers( 2
					Discrete_Trigger ( 6 playoneshot ( 1 File ( "x_odpojovace_zap.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 7 PlayOneShot ( 1 File ( "x_odpojovace_vyp.wav" -1 ) SelectionMethod (SequentialSelection) ) )
				)
				FrequencyCurve(
					Variable1Controlled
					CurvePoints ( 2
						   0.0		 22050
						   1.0		 22050
					)
					Granularity ( 100 )
				)
			)
			Stream (
				Priority ( 6 )
				Volume (0.8)
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past 0.05 PlayOneShot   ( 1 File ( "x_vrzanie.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
			)
			Stream (
				Priority ( 6 )
				Volume (1.0)
				Triggers ( 1
					Variable_Trigger ( Speed_dec_Past 0.5 PlayOneShot   ( 1 File ( "x_stop.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
			)
Stream (
                Priority ( 5 )
	Triggers ( 6
			Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "x_narazniky.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
			Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "x_narazniky.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
			Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "x_narazniky.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
			Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "x_rozpajanie.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
			Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "x_rozpajanie.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
			Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "x_rozpajanie.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
		)
          )
			Stream (
				Priority ( 6 )
             		Volume ( 1.0 )
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past  0.1	StartLoop ( 1	File ( "x_jazda.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( Speed_Dec_Past  0.1	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-40.000	22025
						0.000		4000
						40.000	22025
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
					       -40.0       	1.0  
					       -30.0 		1.0
					       -2.0	      	0.1  
                                     0.000		0.0
					       2.0			0.1
					       30.0	      	1.0  
					       40.0	      	1.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
             		Volume ( 0.4 )
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "x_piesok.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
		)
	)
	ScalabiltyGroup( 0
		Activation (
			ExternalCam ()
			PassengerCam	()
		      CabCam	()
			Distance    	(100)
		)
		Volume(1.0)
		Streams ( 6
			Stream (
				Priority ( 6 )
				Volume(1.0)			
				Triggers ( 23
					Initial_Trigger ( SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Inc_Past 2.250 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 4.500 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Inc_Past 6.750 SetStreamVolume ( 0.30 ) )
					Variable_Trigger ( Speed_Inc_Past 11.25 SetStreamVolume ( 0.40 ) )
      				Variable_Trigger ( Speed_Inc_Past 13.50 SetStreamVolume ( 0.50 ) )
					Variable_Trigger ( Speed_Inc_Past 15.75 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 18.00 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 20.25 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 22.50 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 24.75 SetStreamVolume ( 0.60 ) )

					Variable_Trigger ( Speed_Dec_Past 2.250 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 4.500 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 6.750 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 11.25 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 13.50 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 15.75 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 18.00 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 20.25 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 22.50 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 24.75 SetStreamVolume ( 0.00 ) )

					Variable_Trigger ( Speed_Inc_Past 0.30 StartLoop   ( 1 File ( "x_trakcne_motory.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 0.30 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-140.000	83000
						0.000		2825
						140.000	83000
					)
					Granularity ( 100 )
				)
			)
			Stream (
			  Skip ( **** Kompresor	**** )
			  Skip ( **** Rozbehne se po odbrzdeni pri stani nebo po odbrzdeni a naslednem zastaveni 	**** )
			  Skip ( **** Rozbeh po odbrzdeni za jizdy neni umoznen, protoze napr. po 5 odbrzdenich 	**** )
      		  Skip ( **** tesne po sobe by pak bezel 5krat, coz neni zrovna idealni **** )
				Priority ( 6 )
				Volume (0.6)
				Triggers ( 30

			  Skip ( Spusteni odbrzdenim nebo odbrzdenim a naslednym zastavenim )

					Discrete_Trigger ( 53  	PlayOneShot ( 1 File ( "x_kompresor.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 54  	PlayOneShot ( 1 File ( "x_kompresor.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 0.1 PlayOneShot ( 1 File ( "x_kompresor.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )

			  Skip ( Znemozneni vicenasobneho spousteni [to by potom bezel jeste nekolikrat pri jizde] )

					Discrete_Trigger ( 53  	DisableTrigger( 1 ) )
					Discrete_Trigger ( 54  	DisableTrigger( 2 ) )

					Discrete_Trigger ( 53  	DisableTrigger( 3 ) )
					Discrete_Trigger ( 54  	DisableTrigger( 3 ) )
					Variable_Trigger ( Speed_Dec_Past 0.1 DisableTrigger( 3 ) )

			  Skip ( Povoleni/znemozneni spusteni pri zastaveni/po rozjeti [aby pri kazdem odbrzdeni za jizdy nebezel]	)

					Variable_Trigger ( Speed_Dec_Past 0.1 EnableTrigger( 1 ) )
					Variable_Trigger ( Speed_Dec_Past 0.1 EnableTrigger( 2 ) )

					Variable_Trigger ( Speed_Inc_Past 0.1 DisableTrigger( 1 ) )
					Variable_Trigger ( Speed_Inc_Past 0.1 DisableTrigger( 2 ) )
					Variable_Trigger ( Speed_Inc_Past 0.1 DisableTrigger( 3 ) )

			  Skip ( Povoleni spusteni po odbrzdeni a naslednem zastaveni [navazuje na predchozi trigger] )

					Discrete_Trigger ( 53  	EnableTrigger( 3 ) )
					Discrete_Trigger ( 54  	EnableTrigger( 3 ) )

			  Skip ( Povoleni/znemozneni spusteni pri zvednuti/spusteni sberace )

					Discrete_Trigger ( 45  	EnableTrigger( 1 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 2 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 3 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 9 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 10 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 14 ) )
					Discrete_Trigger ( 45  	EnableTrigger( 15 ) )

					Discrete_Trigger ( 46  	DisableTrigger( 1 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 2 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 3 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 9 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 10 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 14 ) )
					Discrete_Trigger ( 46  	DisableTrigger( 15 ) )

					Discrete_Trigger ( 14   DisableTrigger( 3 ) )
				)
			)	
			Stream (
				Priority ( 6 )
				Volume (1.0)			
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past 0.05 PlayOneShot ( 1 File ( "x_hukacka_silna.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
			)
			Stream (
				Priority ( 6 )
				Skip ( **** narazniky **** )
				Triggers ( 3
					Discrete_Trigger ( 58 PlayOneShot ( 1	File ( "x_narazniky.wav" -1 )		SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 61 PlayOneShot ( 1	File ( "x_rozpajanie.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 61 EnableTrigger ( 6 ) )
				)
			)
			Stream (
				Priority ( 6 )
				Volume(1.0)	
				Triggers ( 1
					Variable_Trigger ( Distance_Dec_Past 100 PlayOneShot ( 1 File ( "x_hukacka_slaba.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
        )
        VolumeCurve (
          DistanceControlled
				CurvePoints ( 2
					0.0 1.0
					100.0 1.0
				)
				Granularity ( 0.05)
				)
				FrequencyCurve (
					DistanceControlled
					CurvePoints ( 2
					0.0 11025
					700.0 11025
				)
				Granularity ( 1000 )
				)
			)
			Stream (
				Priority ( 6 )
				Volume (1.0)
				Triggers ( 1
					Variable_Trigger ( Speed_Inc_Past 0.05 PlayOneShot   ( 1 File ( "x_vrzanie.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
			)
			Stream (
				Priority ( 6 )
             		Volume ( 1.0 )
				Triggers ( 4
					Variable_Trigger ( Speed_Inc_Past  0.1	StartLoop ( 1	File ( "x_jazda.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( Speed_Dec_Past  0.1	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-40.000	22025
						0.000		4000
						40.000	22025
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
					       -40.0       	1.0  
					       -30.0 		1.0
					       -2.0	      	0.1  
                                     0.000		0.0
					       2.0			0.1
					       30.0	      	1.0  
					       40.0	      	1.0
					)
					Granularity ( 0.05 )
				)				
			)
		)
	)
)


