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


Tr_SMS (
       Skip (** Vnejsi ozvuceni pro lokomotivy rady 749, sdruzeny regulator **)
       Skip (** varianta I - kratka houkacka **)
       Skip (** autor hlavnich bloku - Robo **)
       Skip (** autor bloku start/volnobeh/stop - Igor Hnizdo **)
       Skip (** !!!!Urceno pouze pro simulator OPenRails - ORTS!!!! **)

ScalabiltyGroup( 5
		Activation (
                        PassengerCam ()
			ExternalCam ()
			Distance  (1000)
		)
		Deactivation (
      		CabCam ()
			Distance  (1000)
		)
		Volume (1.0)
		Streams ( 20
			 Stream (
			 	Skip (** zvuk prevodovek pri rozjezdu **)
				Priority ( 6 )
				Volume( 0.4 )
				Triggers ( 4
					
					Variable_Trigger ( Speed_Inc_Past 0.28 StartLoopRelease   ( 1 File ( "x_prevody.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 3.00 ReleaseLoopRelease () )
                                        Variable_Trigger ( Speed_Dec_Past 0.28 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 22050
						  50.0		 22050
					)
					Granularity ( 100 )
                                )
				VolumeCurve(
				DistanceControlled
					CurvePoints ( 2
						0.00		1.0
		 		 		40.0		0.0
					)
					Granularity ( 0.001 )
				)					
			)
                        Stream (
                               Skip (** trakcni motory - rozjezd **)
				Priority ( 6 )
				Volume( 1.0 )
				Triggers ( 4
					
					Variable_Trigger ( Speed_Inc_Past 0.6 StartLoopRelease   ( 1 File ( "x_TE005_30D.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 4.0 ReleaseLoopRelease () )
				        Variable_Trigger ( Speed_Dec_Past 4.0 StartLoopRelease   ( 1 File ( "x_TE005_30N.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 0.6 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-5.72	        25050
						0.000		3400
						5.72	        25050
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 9
						 0.0			0.0
 						 0.03			0.75
						 0.05			0.75
						 0.18			0.80
						 0.32			0.83
                                                 0.46			0.87
                                                 0.62			0.90
                                                 0.83			0.95
						 1.000		        1.0
					)
					Granularity ( 0.05 )
				)				
			)
                        Stream (
                               Skip (** trakcni motory - nizka rychlost **)
				Priority ( 6 )
				Volume( 1.0 )
				Triggers ( 4
					
					Variable_Trigger ( Speed_Inc_Past 4.0 StartLoopRelease   ( 1 File ( "x_TE005_50.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 11.42 ReleaseLoopRelease () )
				        Variable_Trigger ( Speed_Dec_Past 11.42 StartLoopRelease   ( 1 File ( "x_TE005_50.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 4.0 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-120.000	280000
						0.000		3400
						120.000	        280000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 9
						 0.0			0.0
 						 0.03			0.75
						 0.05			0.75
						 0.18			0.80
						 0.32			0.83
                                                 0.46			0.87
                                                 0.62			0.90
                                                 0.83			0.95
						 1.000		        1.0
					)
					Granularity ( 0.05 )
				)				
			)
                        Stream (
                               Skip (** trakcni motory - stredni rychlost **)
				Priority ( 6 )
				Volume( 1.0 )
				Triggers ( 15
					Initial_Trigger ( SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Inc_Past 9.250 SetStreamVolume ( 0.45 ) )
      			             	Variable_Trigger ( Speed_Inc_Past 13.50 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Inc_Past 15.75 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Inc_Past 18.00 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Inc_Past 20.25 SetStreamVolume ( 0.45 ) )
					
					Variable_Trigger ( Speed_Dec_Past 20.25 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Dec_Past 18.00 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Dec_Past 15.75 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Dec_Past 13.50 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Dec_Past 9.250 SetStreamVolume ( 0.45 ) )
					
					Variable_Trigger ( Speed_Inc_Past 11.42 StartLoopRelease   ( 1 File ( "x_TE005_60.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 20 ReleaseLoopRelease () )
				        Variable_Trigger ( Speed_Dec_Past 20 StartLoopRelease   ( 1 File ( "x_TE005_60.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 11.42 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-120.000	150000
						0.000		1700
						120.000	        150000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 9
						 0.0			0.0
 						 0.03			0.75
						 0.05			0.75
						 0.18			0.80
						 0.32			0.83
                                                 0.46			0.87
                                                 0.62			0.90
                                                 0.83			0.95
						 1.000		        1.0
					)
					Granularity ( 0.05 )
				)					
			)
                        
                        Stream (
                               Skip (** trakcni motory - vysoka rychlost **)
				Priority ( 6 )
				Volume( 1.0 )
				Triggers ( 9
					Initial_Trigger ( SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Inc_Past 20.25 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Inc_Past 22.50 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Inc_Past 24.75 SetStreamVolume ( 0.45 ) )

					Variable_Trigger ( Speed_Dec_Past 24.75 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Dec_Past 22.50 SetStreamVolume ( 0.45 ) )
					Variable_Trigger ( Speed_Dec_Past 20.25 SetStreamVolume ( 0.45 ) )
					
					Variable_Trigger ( Speed_Inc_Past 20 StartLoopRelease   ( 1 File ( "x_TE005_80.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 20 ReleaseLoopRelease () )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-120.000	119000
						0.000		1700
						120.000	        119000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 9
						 0.0			0.0
 						 0.03			0.75
						 0.05			0.75
						 0.18			0.80
						 0.32			0.83
                                                 0.46			0.87
                                                 0.62			0.90
                                                 0.83			0.95
						 1.000		        1.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
			       Skip (** trakcni motory ve vybehu - bez vykonu **)
				Priority ( 6 )
                                Volume( 0.32 )
             		        Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past 2.7	StartLoop ( 1	File ( "x_el_mot_vybeh.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( Speed_Dec_Past 2.7	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-30.000	18025
						0.000	6000
						30.000	18025
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 10
						 0.0			1.0
 						 0.05			0.3
						 0.10			0.2
						 0.15			0.1
						 0.25			0.3
                                                 0.45			0.2
                                                 0.60			0.0
                                                 0.75			0.0
                                                 0.90			0.0
						 1.000		        0.0
					)
					Granularity ( 0.05 )
				)				
			 )
                         Stream (
                         	Skip (** jizda - klapot kol **)
				Priority ( 6 )
				Volume (1.0)
				Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past 0.010 StartLoop   ( 1 File ( "x_750_jizda.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 0.010 ReleaseLoopRelease () )					
				   )
                                   FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-35.0	        45200
						0.000		13000
						35.0	        45200
					)
					Granularity ( 0.05 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 24				         
                                                  -35.0		0.82
                                                  -31.0		0.80
                                                  -29.0		0.78
                                                  -22.0		0.76
                                                  -18.0		0.74
                                                  -15.0		0.72
                                                  -11.0		0.70
                                                  -9.0		0.68
                                                  -7.0		0.66
                                                  -5.0		0.64
                                                  -3.0		0.62
                                                  -1.0		0.60
                                                  0.0		0.0
					     	  1.0		0.60
                                                  3.0		0.62
                                                  5.0		0.64
                                                  7.0		0.66
                                                  9.0		0.68
                                                  11.0		0.70
                                                  15.0		0.72
                                                  18.0		0.74
                                                  22.0		0.76
                                                  29.0		0.78
                                                  31.0		0.80
                                                  35.0		0.82
					     	  
					)
					Granularity ( 0.05 )
				)				
			)
                        Stream (
			       Skip (** motor - basy **)
				Priority ( 8 )
				Volume (1.0)
				Triggers ( 4
					Variable_Trigger ( Variable2_Inc_Past 0.290 PlayOneShot   ( 1 File ( "x_basyN.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Inc_Past 0.290 StartLoopRelease   ( 1 File ( "x_basy.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.290 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.290 PlayOneShot        ( 1 File ( "x_basyD.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 9
					      0.00		9000
					      0.27		16000
					      0.42		17300
					      0.46		18500
					      0.56		18500
					      0.58		19700
					      0.80		19700
					      0.82		21000
					      1.00		22300
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
					      -40.0       	1.0  
					      -10.0 		1.0
					       -1.0	      	1.0  
                                      0.0 		0.0
					        1.0			1.0
					       10.0	      	1.0
					       40.0	      	1.0
					)
					Granularity ( 0.05 )
				)
			VolumeCurve(
				DistanceControlled
					CurvePoints ( 2
						0.00		1.0
		 		 		300.0		1.0
					)
					Granularity ( 0.001 )
				)
			)
			Stream (
   			       Skip (** Motor - start,volnobeh, stop **)
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 7
					Initial_Trigger  ( StartLoop   ( 1 File ( "x_K6S310DR_0_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 24   ReleaseLoopRelease () )
					Discrete_Trigger ( 24   PlayOneShot ( 1 	File ( "x_749.247_K6S310DR_stop.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 107   StartLoopRelease ( 1 	File ( "x_749.247_K6S310DR_premazavanie.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 23   ReleaseLoopRelease () )
					Discrete_Trigger ( 23   PlayOneShot ( 1 	File ( "x_749.247_K6S310DR_start_IH.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 23   StartLoop   ( 1   File ( "x_K6S310DR_0_TPR.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )


				)
				FrequencyCurve(
					Variable1Controlled
					CurvePoints ( 2
						   0.0		 48000
						   1.0		 48000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 4
						 0.000		1.00
						 0.010		0.85
						 0.013		0.00
						 1.000		0.00
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
			       Skip (** motor - vykon,jizda **)
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 45
					Variable_Trigger ( Variable2_Inc_Past 0.005 PlayOneShot        ( 1 File ( "x_K6S310DR_0-1_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.005 StartLoopRelease   ( 1 File ( "x_K6S310DR_1_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.060 ReleaseLoopRelease () )					

					Variable_Trigger ( Variable2_Inc_Past 0.060 PlayOneShot        ( 1 File ( "x_K6S310DR_1-2_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.060 StartLoopRelease   ( 1 File ( "x_K6S310DR_2_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.200 ReleaseLoopRelease () )					

					Variable_Trigger ( Variable2_Inc_Past 0.200 PlayOneShot        ( 1 File ( "x_K6S310DR_2-3_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.200 StartLoopRelease   ( 1 File ( "x_K6S310DR_3_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.360 ReleaseLoopRelease () )					

					Variable_Trigger ( Variable2_Inc_Past 0.360 PlayOneShot        ( 1 File ( "x_K6S310DR_3-4_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.360 StartLoopRelease   ( 1 File ( "x_K6S310DR_4_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.450 ReleaseLoopRelease () )					

					Variable_Trigger ( Variable2_Inc_Past 0.450 PlayOneShot        ( 1 File ( "x_K6S310DR_4-5_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.450 StartLoopRelease   ( 1 File ( "x_K6S310DR_5_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.550 ReleaseLoopRelease () )					

					Variable_Trigger ( Variable2_Inc_Past 0.550 PlayOneShot        ( 1 File ( "x_K6S310DR_5-6_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.550 StartLoopRelease   ( 1 File ( "x_K6S310DR_6_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.720 ReleaseLoopRelease () )					

					Variable_Trigger ( Variable2_Inc_Past 0.720 PlayOneShot        ( 1 File ( "x_K6S310DR_6-7_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.720 StartLoopRelease   ( 1 File ( "x_K6S310DR_7_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.910 ReleaseLoopRelease () )					

					Variable_Trigger ( Variable2_Inc_Past 0.910 PlayOneShot        ( 1 File ( "x_K6S310DR_7-8_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.910 StartLoopRelease   ( 1 File ( "x_749.247_K6S310DR_8.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )


					Variable_Trigger ( Variable2_Dec_Past 0.910 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.910 PlayOneShot        ( 1 File ( "x_K6S310DR_8-7_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.910 StartLoopRelease   ( 1 File ( "x_K6S310DR_7_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Dec_Past 0.720 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.720 PlayOneShot        ( 1 File ( "x_K6S310DR_7-6_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.720 StartLoopRelease   ( 1 File ( "x_K6S310DR_6_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Dec_Past 0.550 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.550 PlayOneShot        ( 1 File ( "x_K6S310DR_6-5_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.550 StartLoopRelease   ( 1 File ( "x_K6S310DR_5_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Dec_Past 0.450 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.450 PlayOneShot        ( 1 File ( "x_K6S310DR_5-4_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.450 StartLoopRelease   ( 1 File ( "x_K6S310DR_4_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Dec_Past 0.360 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.360 PlayOneShot        ( 1 File ( "x_K6S310DR_4-3_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.360 StartLoopRelease   ( 1 File ( "x_K6S310DR_3_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Dec_Past 0.200 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.200 PlayOneShot        ( 1 File ( "x_K6S310DR_3-2_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.200 StartLoopRelease   ( 1 File ( "x_K6S310DR_2_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Dec_Past 0.060 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.060 PlayOneShot        ( 1 File ( "x_K6S310DR_2-1_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.060 StartLoopRelease   ( 1 File ( "x_K6S310DR_1_TPR.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

					Variable_Trigger ( Variable2_Dec_Past 0.005 ReleaseLoopRelease () )

				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 48000
						  50.0		 48000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
				DistanceControlled
					CurvePoints ( 2
						0.00		1.0
		 		 		300.0		0.0
					)
					Granularity ( 0.001 )
				)
			)
			Stream (
			       Skip (** houkacka **)
				Priority ( 6 )
				Volume ( 2.0 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_749.247_hukacka.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9 ReleaseLoopReleaseWithJump ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 48000
						  50.0		 48000
					)
					Granularity ( 100 )
				)
			)
			Stream (
			       Skip (** houkacka - kratka **)
				Priority ( 6 )
				Volume(1.0)
				Triggers ( 1
					Discrete_Trigger ( 10	PlayOneShot ( 1	File ( "x_749.247_hukacka_kratka.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 48000
						  50.0		 48000
					)
					Granularity ( 100 )
				)
			)
                        Stream (
				Skip (** Kompresor **)				
				Priority ( 6 )
				Volume ( 0.6 )			
				Triggers ( 2				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "x_K2Lok1_kompresor.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	ReleaseLoopReleaseWithJump ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 22050
						  50.0		 22050
					)
					Granularity ( 100 )
				)
				VolumeCurve(
				DistanceControlled
					CurvePoints ( 2
						0.00		1.0
		 		 		150.0		0.0
					)
					Granularity ( 0.001 )
				)
			)	
			Stream (
			       Skip (** piskovani **)
				Priority ( 6 )	
				Volume ( 0.2 )
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "x_742.512_pisek.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 22050
						  50.0		 22050
					)
					Granularity ( 100 )
				)
				VolumeCurve(
				DistanceControlled
					CurvePoints ( 2
						0.00		1.0
		 		 		150.0		0.0
					)
					Granularity ( 0.001 )
				)
			) 
                        Stream (
                               Skip (** primocinna brzda - brzdic DAKO BP **)
				Priority ( 6 )
				Volume(1.0)
				Triggers ( 2
					Discrete_Trigger ( 21	PlayOneShot ( 1	File ( "x_DAKO_BP1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 22	PlayOneShot ( 1	File ( "x_DAKO_BP2.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					)
		          FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 22050
						  50.0		 22050
					)
					Granularity ( 100 )
				)
			)
                        Stream (
                               Skip (** prubezna brzda - brzdic DAKO BS2 **)
				Priority ( 6 )
				Volume (1.0)
				Triggers ( 4
                                        Discrete_Trigger (  142 StartLoopRelease ( 1 File ( "x_brzda_prubezna_zabrzdeni1.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
        				Discrete_Trigger (  143	ReleaseLoopReleaseWithJump ())
					Discrete_Trigger (  141 StartLoopRelease ( 1	File ( "x_brzda_prubezna_odbrzdeni.wav" -1 ) SelectionMethod ( RandomSelection ) ) )
        				Discrete_Trigger (  143	ReleaseLoopReleaseWithJump ())					
                                        )
				FrequencyCurve(
					Variable1Controlled
					CurvePoints ( 2
						   0.0		 22050
						   1.0		 22050
					)
					Granularity ( 100 )
				)
				VolumeCurve(
				DistanceControlled
					CurvePoints ( 2
						0.00		1.0
		 		 		100.0		0.0
					)
					Granularity ( 0.001 )
				)
			  )		
                          Stream (
                          	 Skip (** zvuk brzdovych spalku **)
				Priority ( 6 )
				Volume (1.0)
				Triggers ( 4
					Variable_Trigger ( BrakeCyl_Inc_Past   2  PlayOneShot ( 1 File ( "x_750_spalky_n.wav" -1 ) SelectionMethod ( SequentialSelection )))								
					Variable_Trigger ( BrakeCyl_Inc_Past   2  StartLoop ( 1   File ( "x_750_spalky.wav" -1 ) SelectionMethod ( SequentialSelection )))
                                    			Variable_Trigger ( BrakeCyl_Dec_Past   2  ReleaseLoopRelease ())      	 
					Variable_Trigger ( BrakeCyl_Dec_Past   2  PlayOneShot ( 1 File ( "x_750_spalky_d.wav" -1 ) SelectionMethod ( SequentialSelection )))
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-30.000	17000
						0.000		 9000
						30.000	17000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
					     	 -30.0		1.0
                                                                                    -5.0 		0.9
                                                                                    0.0 		0.0
					        5.0			0.9
					       30.0		              1.0  
					)
					Granularity ( 0.05 )
				)				
			)	
			Stream (
			       Skip (** vzrnuti spalku pri rozjezdu **)
				Priority ( 6 )
				Volume ( 0.1 )
                                Triggers ( 1
					
					Variable_Trigger ( Speed_Inc_Past  0.1	PlayOneShot ( 1 File ( "x_vrznuti_zdrzi.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 2
						   0.0		 22050
						  50.0		 22050
					)
					Granularity ( 100 )
				)
		       )
			Stream (
			       Skip (** spalky - skripani pri dobrzdeni **)
				Priority ( 6 )
				Volume(1.0)			
				Triggers ( 2
				Variable_Trigger ( BrakeCyl_Inc_Past   2  StartLoop ( 1   File ( "x_749_vrzani.wav" -1 ) SelectionMethod ( SequentialSelection )))
                                Variable_Trigger ( BrakeCyl_Dec_Past   2  ReleaseLoopRelease ())
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 11
					       -100.0		0.0
					     	 -5.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
					     	  5.0			0.0
					       100.0		0.0  
					)
					Granularity ( 0.05 )
				)
				FrequencyCurve(
					Variable1Controlled
					CurvePoints ( 2
						   0.0		 16000
						   1.0		 16000
					)
					Granularity ( 100 )
				)				
			)
                        Stream (
                               Skip (** sprahla - spojovani/rozpojovani **)
				Priority ( 6 )
				Triggers ( 5
					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 ) )
					Variable_Trigger ( Speed_inc_past 0.1	PlayOneShot ( 1	File ( "x_narazniky_oddelenie.wav" -1 )		SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_dec_past 0.1	DisableTrigger ( 6 ) )
				)
				VolumeCurve(
				DistanceControlled
					CurvePoints ( 2
						0.00		1.0
		 		 		100.0		0.0
					)
					Granularity ( 0.001 )
				)
			)
		)
	)
)