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

Tr_SMS (
	Skip ( ** Elaborazione by Carlo Santucci con suggerimenti di Fabio Carnevale ** )
	Skip ( ** Per l'origine dei suoni leggi il readme                            ** )
	ScalabiltyGroup( 5
		Activation (			CabCam			()			Distance    	(100)		)
		Deactivation (		ExternalCam ()			PassengerCam	()			Distance    	(100)		)
		Stereo ()
		Volume(0.80)
		Streams ( 23

		Stream (
				Skip (**** Suonipartenza***************************************)
				Priority ( 6 )
				Triggers ( 3
				Discrete_Trigger ( 48 SetStreamVolume ( 0.5 ) )
				Variable_Trigger  ( Speed_Inc_Past 0.05 StartLoop   ( 1 File ( "Inizio partenza_2_fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Dec_Past  0.05 ReleaseLoopRelease () )
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						
						-10.0		11025
						0.000		11025
					10.0		11025
					
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 -0.05		1.0
						 0			1.0
                                    1			1.0
						 10.0             1.0
						 100.0            1.0
					)
 					Granularity ( 0.05 )					
				)				
			)
		Stream (
				Skip (**** Suonipartenza***************************************)
				Priority ( 6 )
				Triggers ( 47
				Initial_Trigger ( Disable_Trigger ( 40 ) )
				Initial_Trigger ( Disable_Trigger ( 41 ) )
				Initial_Trigger ( Disable_Trigger ( 42 ) )
				Initial_Trigger ( Disable_Trigger ( 43 ) )
				Initial_Trigger ( Disable_Trigger ( 44 ) )
				Initial_Trigger ( Disable_Trigger ( 45 ) )
				Initial_Trigger ( Disable_Trigger ( 46 ) )
				Initial_Trigger ( Disable_Trigger ( 47 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 40 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 41 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 42 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 45 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 44 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 45 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 46 ) )
				Discrete_Trigger ( 48 Enable_Trigger ( 47 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 32 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 33 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 34 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 35 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 36 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 37 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 38 ) )
				Discrete_Trigger ( 48 Disable_Trigger ( 39 ) )
				Discrete_Trigger ( 48 SetStreamVolume ( 0.50 ) )
				Variable_Trigger  ( Speed_Inc_Past 0.5 StartLoop   ( 1 File ( "Inverter E464.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Inc_Past  8.333 ReleaseLoopRelease () )
				Variable_Trigger  ( Speed_Inc_Past 8.333 StartLoopRelease   ( 1 File ( "Inverter_sali_e_stai.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Dec_Past  8.333 ReleaseLoopRelease () )
				Variable_Trigger  ( Speed_Dec_Past 8.333 StartLoop   ( 1 File ( "Inverter E464.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Dec_Past  0.05 ReleaseLoopRelease () )
					Variable_Trigger (Speed_Inc_Past 15.0 SetStreamVolume ( 0.80 ) )
					Variable_Trigger (Speed_Inc_Past 20.0 SetStreamVolume ( 0.60 ) )
					Variable_Trigger (Speed_Inc_Past 25.0 SetStreamVolume ( 0.45 ) )
					Variable_Trigger (Speed_Inc_Past 30.0 SetStreamVolume ( 0.35 ) )
					Variable_Trigger (Speed_Dec_Past 30.0 SetStreamVolume ( 0.45 ) )
					Variable_Trigger (Speed_Dec_Past 25.0 SetStreamVolume ( 0.60 ) )
					Variable_Trigger (Speed_Dec_Past 20.0 SetStreamVolume ( 0.80 ) )
					Variable_Trigger (Speed_Dec_Past 15.0 SetStreamVolume ( 1.00 ) )
					Variable_Trigger (Speed_Inc_Past 15.0 SetStreamVolume ( 0.40 ) )
					Variable_Trigger (Speed_Inc_Past 20.0 SetStreamVolume ( 0.30 ) )
					Variable_Trigger (Speed_Inc_Past 25.0 SetStreamVolume ( 0.225 ) )
					Variable_Trigger (Speed_Inc_Past 30.0 SetStreamVolume ( 0.175 ) )
					Variable_Trigger (Speed_Dec_Past 30.0 SetStreamVolume ( 0.225 ) )
					Variable_Trigger (Speed_Dec_Past 25.0 SetStreamVolume ( 0.30 ) )
					Variable_Trigger (Speed_Dec_Past 20.0 SetStreamVolume ( 0.40 ) )
					Variable_Trigger (Speed_Dec_Past 15.0 SetStreamVolume ( 0.50 ) )
			

				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						
						-10.0		44100
						0.000		44100
					10.0		44100
					
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 -0.05		0.10
						 0			0.33
                                    1			0.40
						 10.0             0.80
						 100.0            1.0
					)
 					Granularity ( 0.05 )					
				)				
			)

			Stream (
				Skip (**** Motorilow***************************************)
				Priority ( 6 )
				Triggers ( 4
				Variable_Trigger  ( Speed_Inc_Past 0.5 StartLoop   ( 1 File ( "Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Inc_Past  10.0 ReleaseLoopRelease () )

Variable_Trigger  ( Speed_Dec_Past 10.00 StartLoop   ( 1 File ( "Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
Variable_Trigger ( Speed_Dec_Past  0.5 ReleaseLoopRelease () )
	
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						
						-10.0		44100
						0.000		11025
					10.0		44100
					
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 -0.05		0.05
						 0			0.10
                                    1			0.13
						 10.0             0.33
						 100.0            0.55
					)
 					Granularity ( 0.05 )					
				)				
			)
				Stream (
				Skip (**** Motorihigh***************************************)
				Priority ( 6 )
				Triggers ( 2
				Variable_Trigger  ( Speed_Inc_Past 10.0 StartLoop   ( 1 File ( "Elec2highfil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

Variable_Trigger ( Speed_Dec_Past  10.0 ReleaseLoopRelease () )				
	
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5	
-64.000	44100 						-10.0		11025
						0.000		9000
					10.0		11025
					64.000	44100
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 -0.05		0.05
						 0			0.10
                                    1			0.13
						 10.0             0.33
						 100.0            0.55
					)
 					Granularity ( 0.05 )					
				)				
			)
			Stream (
				Skip (**** Motorilow frenatura dinamica ***************************************)
				Priority ( 6 )
				Triggers ( 8
					Initial_Trigger ( SetStreamVolume ( 0.00 ) )
					Variable_Trigger (Variable3_Inc_Past 0.10 SetStreamVolume ( 1.00 ) )

					Variable_Trigger (Variable3_Dec_Past 0.10 SetStreamVolume ( 0.00 ) )
					Variable_Trigger (Speed_Dec_Past 0.5 SetStreamVolume ( 0.00 ) )

				Variable_Trigger  ( Speed_Inc_Past 0.5 StartLoop   ( 1 File ( "Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Inc_Past  10.0 ReleaseLoopRelease () )

Variable_Trigger  ( Speed_Dec_Past 10.00 StartLoop   ( 1 File ( "Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
Variable_Trigger ( Speed_Dec_Past  0.5 ReleaseLoopRelease () )
	
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						
						-10.0		44100
						0.000		11025
					10.0		44100
					
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 6
						 0.0			0.0
                                    -5.0			0.00
						 -25.0            0.15
						 -50.0		0.30
						-75.0			0.45
						 -100.0            0.64
					)
 					Granularity ( 0.05 )					
				)				
			)
				Stream (
				Skip (**** Motorihigh frenatura dinamica***************************************)
				Priority ( 6 )
				Triggers ( 5
				Initial_Trigger ( SetStreamVolume ( 0.00 ) )
					Variable_Trigger (Variable3_Inc_Past 0.10 SetStreamVolume ( 1.00 ) )

					Variable_Trigger (Variable3_Dec_Past 0.10 SetStreamVolume ( 0.00 ) )

				Variable_Trigger  ( Speed_Inc_Past 10.0 StartLoop   ( 1 File ( "Elec2highfil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )

Variable_Trigger ( Speed_Dec_Past  10.0 ReleaseLoopRelease () )				
	
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5	
-64.000	44100 						-10.0		11025
						0.000		9000
					10.0		11025
					64.000	44100
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 6
						 0.0			0.0
                                    -5.0			0.00
						 -25.0            0.15
						 -50.0		0.30
						-75.0			0.45
						 -100.0            0.64
					)
 					Granularity ( 0.05 )					
				)				
			)


Stream (
				Skip (**** Vento***************************************)
				Priority ( 6 )
				Triggers ( 2
				Variable_Trigger  ( Speed_Inc_Past 8.0 StartLoop   ( 1 File ( "e_wind_2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				Variable_Trigger ( Speed_Dec_Past  8.0 ReleaseLoopRelease () )
				

				)
				
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 9 						 -60.0		1.5 						-15.0			0.8
						 -8.0			0.3
						-6.0			0.0
                                    0			0.0
						6.0			0.0
                                       8.0             0.3
                                    15.0			0.8
						60.0            1.5
					)
					Granularity ( 0.1 )					
				)				
			)
			
Stream (
				Volume ( 0.6 )
				Priority ( 6 )
				Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past  0.1	StartLoop ( 1
										File ( "roll_ita.wav" -1 )
										SelectionMethod ( RandomSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  0.1	ReleaseLoopRelease () )					
				)
				VolumeCurve ( 
					SpeedControlled
					CurvePoints ( 6
						 0.0		0.0
						 0.1		1.0
					       1.0		1.0
					       6.0		1.0
						10.0		1.0
					      50.0		1.0
					)
					Granularity ( 0.01 )
				)			
				FrequencyCurve ( 
					SpeedControlled
					CurvePoints ( 5
					     -50.0		13000
						-0.1		11025
						 0.0		 9000
						 0.1		11025
						50.0		13000
					)
					Granularity ( 25 )
				)
			)
			

			Stream (
				Skip ( **** Brake Squeal **** )				
				Priority ( 6 )			
				Triggers ( 9
					Discrete_Trigger (  14  DisableTrigger ( 4 ))
					Discrete_Trigger (  14  DisableTrigger ( 6 ))
					Discrete_Trigger (  14	StartLoopRelease ( 1	File ( "squeal.wav" -1 )
								SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.02	ReleaseLoopRelease ()	)
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 4 ))				
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 6 ))
					Variable_Trigger ( Speed_Inc_Past 0.5  ReleaseLoopRelease ()  )				

				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						  -3.0		11000
						   -1.0		11400
						   0.0		12000
						1.0			11400
						   3.0		11000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 11
						  -50.0		0.0
						  -3.1		0.0
						  -3.0		0.67
						  -1.0		0.8
						  -0.05		1.0
						   0.0		0.0
						   0.05		1.0
						   1.0		0.8
						   3.0		0.67
						   3.1		0.0
						 50.0			0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** Brake Squeal **** )				
				Priority ( 6 )			
				Triggers ( 9
					Discrete_Trigger (  14  DisableTrigger ( 4 ))
					Discrete_Trigger (  14  DisableTrigger ( 6 ))
					Discrete_Trigger (  14	StartLoopRelease ( 1	File ( "squeal.wav" -1 )
								SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.02	ReleaseLoopRelease ()	)
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 4 ))				
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 6 ))
					Variable_Trigger ( Speed_Inc_Past 0.5  ReleaseLoopRelease ()  )				

				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						  -3.0		11000
						   -1.0		11400
						   0.0		12000
						1.0			11400
						   3.0		11000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 11
						  -50.0		0.0
						  -3.1		0.0
						  -3.0		0.67
						  -1.0		0.8
						  -0.05		1.0
						   0.0		0.0
						   0.05		1.0
						   1.0		0.8
						   3.0		0.67
						   3.1		0.0
						 50.0			0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** Brake Squeal **** )				
				Priority ( 6 )			
				Triggers ( 11
					Discrete_Trigger (  14  DisableTrigger ( 6 ))
					Discrete_Trigger (  14  DisableTrigger ( 8 ))
					Discrete_Trigger (  14  SetStreamVolume ( 1.0 ))
					Discrete_Trigger (  14 EnableTrigger ( 5 ))
					Variable_Trigger (  Speed_Dec_Past 2.5 PlayOneShot ( 1	File ( "frenata1.wav" -1 )
								SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	SetStreamVolume ( 0.0 ) )
					Variable_Trigger ( Speed_Dec_Past 0.02	SetStreamVolume ( 0.0 )	)
					Discrete_Trigger (  54	SetStreamVolume  ( 0.0 ) )
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 6 ))				
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 8 ))
					Variable_Trigger ( Speed_Inc_Past 0.5  SetStreamVolume ( 0.0 )  )				

				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						  -3.0		11000
						   -1.0		11400
						   0.0		12000
						1.0			11400
						   3.0		11000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 11
						  -50.0		0.0
						  -3.1		0.0
						  -3.0		0.9
						  -1.0		0.9
						  -0.05		1.0
						   0.0		0.0
						   0.05		1.0
						   1.0		0.9
						   3.0		0.9
						   3.1		0.0
						 50.0			0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** This stream starts and stops pantograph and presses converters start **** )
				Priority ( 6 )
				Triggers ( 8
					Discrete_Trigger ( 45 PlayOneShot ( 1
							File ( "Pantosu.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 6 PlayOneShot ( 1	
							File ( "VaiGS.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 7 PlayOneShot ( 1	
							File ( "VaiGS.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 46 PlayOneShot ( 1	
							File ( "Giupanto.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 66 PlayOneShot ( 1
							File ( "Pantosu.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 23 PlayOneShot ( 1
							File ( "VaiGS.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 24 PlayOneShot ( 1
							File ( "VaiGS.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 67 PlayOneShot ( 1
							File ( "Giupanto.wav" -1 )
							SelectionMethod (SequentialSelection)))
							)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -100.0		11025
						   0.0		11025
						   100.0		11025
						)
					Granularity ( 100 )
				)

					)

			Stream (
				Skip ( **** This stream starts and stops converters with V command **** )
				Priority ( 6 )
				Triggers ( 6
					Initial_Trigger ( Disable_Trigger ( 4 ) )
					Discrete_Trigger ( 45 Enable_Trigger ( 4 ) )
					Discrete_Trigger ( 48 SetStreamVolume ( 0.72 ) )
					Discrete_Trigger ( 6 StartLoopRelease ( 1	
							File ( "LoopGS.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Discrete_Trigger ( 7 ReleaseLoopReleaseWithJump ()	)
					Discrete_Trigger ( 46 ReleaseLoopReleaseWithJump ()	)
							)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -100.0		11025
						   0.0		11025
						   100.0		11025
						)
					Granularity ( 100 )
				)

					)
			Stream (
			Volume ( 0.7 )
				Skip (Stream12 **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 9
					Initial_Trigger ( DisableTrigger ( 8 ) )
					Variable_Trigger ( Speed_Inc_Past 20.0 DisableTrigger ( 6 ) )			
					Variable_Trigger ( Speed_Inc_Past 20.0 EnableTrigger ( 8 ) )
					Variable_Trigger ( Speed_Dec_Past 20.0 DisableTrigger ( 8 ) )			
					Variable_Trigger ( Speed_Dec_Past 20.0 EnableTrigger ( 6 ) )
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "Trcentro.wav" -1 )	SelectionMethod ( RandomSelection )	)	)
Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	) 				
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "E646_trombaincorsa.wav" -1 )	SelectionMethod ( RandomSelection )	)	)
Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	) 				)

			)
			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 1	
													File ( "Ficentro_chpitch.wav" -1 )	
													SelectionMethod ( RandomSelection ) 
												)
								)

					Discrete_Trigger ( 11 	ReleaseLoopReleaseWithJump ()	)
				)
				Volume ( 0.7 )
			)
			Stream (
				Skip ( **** This stream closes the door  	**** )
				Priority ( 6 )
				Triggers ( 1
					Discrete_Trigger ( 48	PlayOneShot ( 1	
													File ( "Indoorslam.wav" -1 )	
													SelectionMethod ( RandomSelection ) 
												)
								)

				)
				Volume ( 1.0 )
			)

			Stream (
				Skip ( **** This stream allows the Sander to be played at the same time  	**** )
				Priority ( 5 )
				Volume (0.6)			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "../../acela/sound/acela_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Volume (0.40)
				Skip ( Stream21**** This stream allows the Train Brake to be played at the same time  	**** )
				Priority ( 5 )
				Triggers ( 10
					Initial_Trigger (  DisableTrigger ( 8 ) )
					Initial_Trigger (  DisableTrigger ( 9 ) )
					Initial_Trigger (  DisableTrigger ( 10 ) )
					Discrete_Trigger ( 45 EnableTrigger ( 8 ) )
					Discrete_Trigger ( 45 EnableTrigger ( 9 ) )
					Discrete_Trigger ( 45 EnableTrigger ( 10 ) )				
					Skip ( **** Brake Normal Apply	**** )
					Discrete_Trigger (  14  DisableTrigger ( 9 ))
					Discrete_Trigger (  14	
						PlayOneShot ( 2	
							File ( "Scarica freno.wav" -1 )	
							File ( "Scarica freno_2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
								)
								)
					Skip ( **** Brake Release	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 1	
							File ( "Carico freno.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
								) 
								)
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 9 ))				

				) 
						FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -60.0		44100
						   0.0		44100
						   60.0		44100
						)
					Granularity ( 100 )
				)
	
			)
			Stream (
				Skip (**** Frenatura elettrica********************)
				Priority ( 6 )
				Triggers ( 5
					Initial_Trigger ( DisableTrigger ( 3 ) )
					Variable_Trigger (Variable3_Inc_Past 0.10 EnableTrigger ( 3  ) )
					Variable_Trigger (Variable3_Dec_Past 0.10 PlayOneShot ( 1	
							File ( "Inserzione freno.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger (Variable3_Dec_Past 0.10 DisableTrigger ( 3  ) )
					Variable_Trigger (Variable3_Inc_Past 0.10 PlayOneShot ( 1	
							File ( "Inserzione freno.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					
)
)
			Stream (
			  Skip ( *** Algoritmo compressore per gentile concessione di David Vasica *** )
			  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.7)
				Triggers ( 31
			  Skip ( Spusteni odbrzdenim nebo odbrzdenim a naslednym zastavenim )
					
					Discrete_Trigger ( 53  	PlayOneShot ( 1 File ( "Compressore_E402.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 54  	PlayOneShot ( 1 File ( "Compressore_E402.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 0.1 PlayOneShot ( 1 File ( "Compressore_E402.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 ) )
			Skip ( Con la porta chiusa è più silenzioso ) 
					Discrete_Trigger ( 48   SetStreamVolume ( 0.5 ) )
				)
			)	



			Stream (
				Priority ( 6 )
				Volume ( 0.5 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "couple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "couple_chain2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "couple_chain3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "uncouple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "uncouple_chain2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "uncouple_chain3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Skip ( **** This stream plays all the controls samples  	**** )
				Skip ( **** NOTE: Missing AWS Alarm                     	**** )
				Priority ( 5 ) 				Triggers ( 10
					Discrete_Trigger ( 14	PlayOneShot ( 1	File ( "../../acela/sound/acela_abrakeb.wav" -1 )    SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 15	PlayOneShot ( 1	File ( "../../acela/sound/acela_reverserf.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 16	PlayOneShot ( 1	File ( "../../acela/sound/acela_throttlef.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
				
					Discrete_Trigger ( 17	PlayOneShot ( 1	File ( "../../acela/sound/acela_abrakef.wav" -1 )    SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 18	PlayOneShot ( 1	File ( "../../acela/sound/acela_abrakeb.wav" -1 )    SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 25	PlayOneShot ( 1	File ( "../../acela/sound/acela_vigilance.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 26	PlayOneShot ( 1	File ( "../../acela/sound/acela_econtrol1.wav" -1 )  SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 37	PlayOneShot ( 1	File ( "../../acela/sound/acela_flightsf.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					
					Discrete_Trigger ( 47	PlayOneShot ( 1	File ( "../../acela/sound/acela_pantot.wav" -1 )     SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 51	PlayOneShot ( 1	File ( "../../acela/sound/acela_ebrake.wav" -1 )     SelectionMethod ( SequentialSelection ) ) )
					
				)
			)
			Stream (
				Skip ( **** Vigelence alarm  	**** )
				Priority ( 6 )
				Triggers( 4
					Discrete_Trigger ( 56	SetStreamVolume ( 1.0 ) )
					Discrete_Trigger ( 56	StartLoopRelease ( 1 File ( "../../acela/sound/acela_deadman.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 57	SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 57	ReleaseLoopRelease() ) 
				)				
			)

		)
	)


)