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


Tr_SMS (
	Skip ( ** SL 5 sounds - Two looping audio streams, multiple waves - pitch shifted & Xfaded by rpm                            ** )
	Skip ( **             - One Horn audio stream				                                								                         ** )
	Skip ( **             - One Bell audio stream				                                								                         ** )
	Skip ( **             - One Sander audio stream				                                            	                         ** )
	Skip ( **             - One Compressor audio stream				                                        	                         ** )
	Skip ( **             - One TBrake & IBrake audio stream {as only one shots for apply and off - unkilely to be at same time} ** )
	Skip ( **             - One DBrake audio stream				                                            	                         ** )
	Skip ( **             - One Coupling audio stream				                                            	                         ** )
	ScalabiltyGroup( 5
		Activation (			ExternalCam ()	PassengerCam	()		Distance    	(1000)		)
		Deactivation (		CabCam			()						Distance    	(1000)		)
		Volume(1.0)
		Streams ( 18
				Stream (
				Skip (**** Stream0 Motori1***************************************)
				Priority ( 6 )
				Triggers ( 44 

				Variable_Trigger ( Speed_Inc_Past 0.04 SetStreamVolume ( 0.10 ) )
				Variable_Trigger  ( Speed_Inc_Past 0.05 StartLoop   ( 1
									 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 0.15 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 0.25 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 0.35 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 0.45 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 1.0 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Inc_Past 1.2 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 1.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 1.4 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 1.5 SetStreamVolume ( 1.00 ) )

					Variable_Trigger ( Speed_Inc_Past 2.7 SetStreamVolume ( 0.90 ) )
					Variable_Trigger ( Speed_Inc_Past 2.9 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 3.1 SetStreamVolume ( 0.70 ) )	
					Variable_Trigger ( Speed_Inc_Past 3.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 3.5 SetStreamVolume ( 0.50 ) )
					Variable_Trigger ( Speed_Inc_Past 3.7 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 3.9 SetStreamVolume ( 0.30 ) )
					Variable_Trigger ( Speed_Inc_Past 4.1 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Inc_Past 4.3 SetStreamVolume ( 0.10 ) )
				Variable_Trigger ( Speed_Inc_Past  4.5 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Inc_Past 4.500 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 4.500 SetStreamVolume ( 0.10 ) )			
Variable_Trigger  ( Speed_Dec_Past 4.5 StartLoop   ( 1 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
					Variable_Trigger ( Speed_Dec_Past 4.3 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Dec_Past 4.1 SetStreamVolume ( 0.30 ) )
					Variable_Trigger ( Speed_Dec_Past 3.9 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 3.7 SetStreamVolume ( 0.50 ) )
					Variable_Trigger ( Speed_Dec_Past 3.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 3.3 SetStreamVolume ( 0.70 ) )				
					Variable_Trigger ( Speed_Dec_Past 3.1 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 2.9 SetStreamVolume ( 0.90 ) )
					Variable_Trigger ( Speed_Dec_Past 2.7 SetStreamVolume ( 1.00 ) )				
					Variable_Trigger ( Speed_Dec_Past 1.5 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 1.4 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 1.3 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 1.2 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Dec_Past 1.0 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.45 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.35 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.25 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.15 SetStreamVolume ( 0.10 ) )
Variable_Trigger ( Speed_Dec_Past  0.05 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 0.00 ) )


				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 13
						-14.2		14232
						-11.0		11025	
						-9.100	15676	
 						-6.4		11025
						-4.5		38853
						-1.3		11224
						0.000		9000
						1.3		11224
						4.5		38853
					6.4		11025
					9.100		15676
					11.0		11025
					14.2		14232
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 0			0.06
                                    0.01			0.06
						 0.05             0.35
						 0.25			0.35
						 1.0            0.5
					)
 					Granularity ( 0.05 )					
				)				
			)
			Stream (
				Skip (**** Stream1 Motori2, suona alternato con Motori2, 3, 4, 5, 6 e 7 con crossfade********************)
				Priority ( 6 )
				Triggers ( 42
					Variable_Trigger ( Speed_Inc_Past 2.600 SetStreamVolume ( 0.07 ) )			
				Variable_Trigger  ( Speed_Inc_Past 2.6 StartLoop   ( 1
									 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 2.7 SetStreamVolume ( 0.14 ) )
					Variable_Trigger ( Speed_Inc_Past 2.8 SetStreamVolume ( 0.21 ) )
					Variable_Trigger ( Speed_Inc_Past 2.9 SetStreamVolume ( 0.28 ) )					
					Variable_Trigger ( Speed_Inc_Past 3.0 SetStreamVolume ( 0.35 ) )
					Variable_Trigger ( Speed_Inc_Past 3.1 SetStreamVolume ( 0.42 ) )
					Variable_Trigger ( Speed_Inc_Past 3.2 SetStreamVolume ( 0.49 ) )
					Variable_Trigger ( Speed_Inc_Past 3.3 SetStreamVolume ( 0.56 ) )		
					Variable_Trigger ( Speed_Inc_Past 3.4 SetStreamVolume ( 0.63 ) )
					Variable_Trigger ( Speed_Inc_Past 3.5 SetStreamVolume ( 0.70 ) )		
					Variable_Trigger ( Speed_Inc_Past 3.6 SetStreamVolume ( 0.77 ) )
					Variable_Trigger ( Speed_Inc_Past 3.7 SetStreamVolume ( 0.84 ) )		
					Variable_Trigger ( Speed_Inc_Past 3.8 SetStreamVolume ( 0.91 ) )
					Variable_Trigger ( Speed_Inc_Past 3.9 SetStreamVolume ( 1.00 ) )		
					Variable_Trigger ( Speed_Inc_Past 7.9 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 8.1 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 8.3 SetStreamVolume ( 0.40 ) )	
					Variable_Trigger ( Speed_Inc_Past 8.5 SetStreamVolume ( 0.20 ) )
				Variable_Trigger ( Speed_Inc_Past  8.7 ReleaseLoopReleaseWithJump () )
					Variable_Trigger ( Speed_Inc_Past 8.7 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 8.7 SetStreamVolume ( 0.20 ) )			
Variable_Trigger  ( Speed_Dec_Past 8.7 StartLoopRelease   ( 1 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
					Variable_Trigger ( Speed_Dec_Past 8.5 SetStreamVolume ( 0.40 ) )				
					Variable_Trigger ( Speed_Dec_Past 8.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 8.1 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 7.9 SetStreamVolume ( 1.00 ) )				
					Variable_Trigger ( Speed_Dec_Past 3.9 SetStreamVolume ( 0.91 ) )
					Variable_Trigger ( Speed_Dec_Past 3.800 SetStreamVolume ( 0.84 ) )			
					Variable_Trigger ( Speed_Dec_Past 3.7 SetStreamVolume ( 0.77 ) )
					Variable_Trigger ( Speed_Dec_Past 3.600 SetStreamVolume ( 0.70 ) )
					Variable_Trigger ( Speed_Dec_Past 3.5 SetStreamVolume ( 0.63 ) )
					Variable_Trigger ( Speed_Dec_Past 3.400 SetStreamVolume ( 0.56 ) )			
					Variable_Trigger ( Speed_Dec_Past 3.3 SetStreamVolume ( 0.49 ) )
					Variable_Trigger ( Speed_Dec_Past 3.200 SetStreamVolume ( 0.42 ) )
					Variable_Trigger ( Speed_Dec_Past 3.100 SetStreamVolume ( 0.35 ) )
					Variable_Trigger ( Speed_Dec_Past 3.000 SetStreamVolume ( 0.28 ) )
					Variable_Trigger ( Speed_Dec_Past 2.900 SetStreamVolume ( 0.21 ) )
					Variable_Trigger ( Speed_Dec_Past 2.800 SetStreamVolume ( 0.14 ) )
					Variable_Trigger ( Speed_Dec_Past 2.700 SetStreamVolume ( 0.07 ) )
Variable_Trigger ( Speed_Dec_Past  2.6 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 2.600 SetStreamVolume ( 0.00 ) )

				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-9.0		38852
						-2.6		11224
						0.000		11025
						2.6		11224
					9.0		38852
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 0			0.06
                                    0.01			0.06
						0.05			0.20
						0.25             0.35
						1.0            0.35
					)
 					Granularity ( 0.05 )					
				)				
			)
			Stream (
				Skip (**** Stream2 Motori_n4********************)
				Priority ( 6 )
				Triggers ( 24
							Variable_Trigger ( Speed_Inc_Past 7.9 SetStreamVolume ( 0.20 ) )
				Variable_Trigger  ( Speed_Inc_Past 7.9 StartLoopRelease   ( 1
									 File ( "x_E656_motori_n4_loww.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 8.1 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 8.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 8.5 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 8.7 SetStreamVolume ( 1.00 ) )

					Variable_Trigger ( Speed_Inc_Past 15.1 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 15.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 15.5 SetStreamVolume ( 0.40 ) )	
					Variable_Trigger ( Speed_Inc_Past 15.7 SetStreamVolume ( 0.20 ) )
				Variable_Trigger ( Speed_Inc_Past  15.9 ReleaseLoopReleaseWithJump () )
					Variable_Trigger ( Speed_Inc_Past 15.9 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 15.9 SetStreamVolume ( 0.20 ) )			
Variable_Trigger  ( Speed_Dec_Past 15.9 StartLoopRelease   ( 1 File ( "x_E656_motori_n4_loww_short.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
					Variable_Trigger ( Speed_Dec_Past 15.7 SetStreamVolume ( 0.40 ) )				
					Variable_Trigger ( Speed_Dec_Past 15.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 15.3 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 15.1 SetStreamVolume ( 1.00 ) )				
					Variable_Trigger ( Speed_Dec_Past 8.7 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 8.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 8.3 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 8.1 SetStreamVolume ( 0.20 ) )
Variable_Trigger ( Speed_Dec_Past  7.9 ReleaseLoopReleaseWithJump () )
					Variable_Trigger ( Speed_Dec_Past 7.9 SetStreamVolume ( 0.00 ) )
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-23.4	33075
						-7.8	11025
						0.000		9000
						7.8	11025
						23.4	33075
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 0			0.06
                                    0.01			0.06
					0.025			0.20
						0.1			0.35
						 1.0            0.35
					)
 					Granularity ( 0.05 )					
				)				
			)
			Stream (
				Skip (**** Stream3 Motori_n6_fil********************)
				Priority ( 6 )
				Triggers ( 12
							Variable_Trigger ( Speed_Inc_Past 15.1 SetStreamVolume ( 0.20 ) )
				Variable_Trigger  ( Speed_Inc_Past 15.1 StartLoop ( 1
									 File ( "x_E656_motori_n6_low_fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 15.3 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 15.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 15.7 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 15.9 SetStreamVolume ( 1.00 ) )

					Variable_Trigger ( Speed_Dec_Past 15.9 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 15.7 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 15.5 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 15.3 SetStreamVolume ( 0.20 ) )
Variable_Trigger ( Speed_Dec_Past  15.1 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 15.1 SetStreamVolume ( 0.00 ) )
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-45.3	33075
						-15.1	11025
						0.000	9000
						15.1	11025
						45.3	33075
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 5
						 0			0.06
						 0.007			0.20
						 0.01			0.035
						 0.035   0.35
						 1.0		0.35
					)
 					Granularity ( 0.05 )					
				)				
			)
				Stream (
				Skip ( **** Stream7 This stream starts and stops motor **** )
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 4
					Initial_Trigger ( SetStreamVolume ( 0.0 ))
                               Variable_Trigger ( Variable3_Dec_Past 0.98 SetStreamVolume ( 1.0 ) )
                                        Skip ( Secondo scatto controller: Scendi a 0.00 - Start turbo )
					Variable_Trigger ( Variable3_Dec_Past 0.45 StartLoopRelease ( 1	
							File ( "x_D445_accensione.wav" -1 )
							SelectionMethod (SequentialSelection)))
		                   Skip ( Sequenza spegnimento )
                              Skip ( Sali da 0.00 - Stop turbo)
                              Variable_Trigger ( Variable3_Inc_Past 0.45 ReleaseLoopReleaseWithJump ( ) )


							)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.000		22050
						0.050		22050
						1.0		38000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.80
						 0.010		0.90
						 1.0			1.0

					)
					Granularity ( 0.05 )
				)				

					)
				Stream (
				Skip ( **** Stream7 This stream starts and stops motor, repeat **** )
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 4
					Initial_Trigger ( SetStreamVolume ( 0.0 ))
                               Variable_Trigger ( Variable3_Dec_Past 0.98 SetStreamVolume ( 1.0 ) )
                                        Skip ( Secondo scatto controller: Scendi a 0.00 - Start turbo )
					Variable_Trigger ( Variable3_Dec_Past 0.45 StartLoopRelease ( 1	
							File ( "x_D445_accensione.wav" -1 )
							SelectionMethod (SequentialSelection)))
		                   Skip ( Sequenza spegnimento )
                              Skip ( Sali da 0.00 - Stop turbo)
                              Variable_Trigger ( Variable3_Inc_Past 0.45 ReleaseLoopReleaseWithJump ( ) )


							)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.000		22050
						0.050		22050
						1.0		38000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.80
						 0.010		0.90
						 1.0			1.0

					)
					Granularity ( 0.05 )
				)				

					)
		Stream (
				Skip ( **** Stream7 This stream starts and stops motor with , and . commands, hardmotor **** )
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 6
					Initial_Trigger ( SetStreamVolume ( 0.0 ))
                                          Variable_Trigger ( Variable3_Dec_Past 0.98 SetStreamVolume ( 1.0 ) )
                                        Skip ( Secondo scatto controller: Scendi a 0.00 - Start turbo )
					Variable_Trigger ( Variable3_Dec_Past 0.45 StartLoopRelease ( 1	
							File ( "x_hardmotor.wav" -1 )
							SelectionMethod (SequentialSelection)))
		                   Skip ( Sequenza spegnimento )
					Initial_Trigger ( DisableTrigger ( 6 ) )
					Random_Trigger ( Delay_Min_Max ( 10.0 10.0 ) Volume_Min_Max ( 1.0 1.0 ) EnableTrigger ( 6 ))
                              Skip ( Sali da 0.00 - Stop turbo)
                              Variable_Trigger ( Variable3_Inc_Past 0.45 ReleaseLoopReleaseWithJump ( ) )


							)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.000		11025
						0.050		11025
						1.0		19000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.40
						 0.010		0.60
						 1.0			1.0
					)
					Granularity ( 0.05 )
				)				

					)
				Skip ( **** Stream9 pompa all'avvio**** )
                        Stream (
                                Priority ( 6 )
				Volume ( 1 )
				Triggers ( 6
				         Skip ( Parte con DynamicBrake a 1.00 )
                                         Initial_Trigger ( SetStreamVolume ( 0.0 ) )
                                         Variable_Trigger ( Variable3_Dec_Past 0.98 SetStreamVolume ( 1.0 ) )

				         Skip ( Sequenza avvio )
                                         Skip ( Primo scatto controller: Scendi a 0.50 - Start pompa)
                                         Variable_Trigger ( Variable3_Dec_Past 0.55 StartLoopRelease ( 1 File ( "x_D445_pompa.wav" -1 ) SelectionMethod ( SequentialSelection )))

               
                                         Skip ( Sequenza spegnimento )
							Initial_Trigger ( DisableTrigger ( 6 ) )
							Random_Trigger ( Delay_Min_Max ( 10.0 10.0 ) Volume_Min_Max ( 1.0 1.0 ) EnableTrigger ( 6 ))
                                         Skip ( Sali da 0.50 - Stop pompa)
                                         Variable_Trigger ( Variable3_Inc_Past 0.95 ReleaseLoopReleaseWithJump ( ) )
                               )
                        )

			Stream (
			Volume ( 1.0 )
				Skip (Stream10 **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 19
					Discrete_Trigger ( 9 ReleaseLoopReleaseWithJump ( ) )
					Discrete_Trigger ( 8 SetStreamVolume ( 1.0 ) )
					Initial_Trigger ( DisableTrigger ( 16 ) )
					Initial_Trigger ( DisableTrigger ( 18  ) )
					Initial_Trigger ( DisableTrigger ( 19 ) )
		
					Variable_Trigger ( Speed_Inc_Past 15.0 DisableTrigger ( 17 ) )			
					Variable_Trigger ( Speed_Inc_Past 15.0 EnableTrigger ( 18 ) )
					Variable_Trigger ( Speed_Dec_Past 15.0 DisableTrigger ( 18 ) )			
					Variable_Trigger ( Speed_Dec_Past 15.0 EnableTrigger ( 17 ) )
					Variable_Trigger ( Speed_Inc_Past 25.0 DisableTrigger ( 18 ) )			
					Variable_Trigger ( Speed_Inc_Past 25.0 EnableTrigger ( 19 ) )
					Variable_Trigger ( Speed_Dec_Past 25.0 DisableTrigger ( 19 ) )			
					Variable_Trigger ( Speed_Dec_Past 25.0 EnableTrigger ( 18 ) )
					Variable_Trigger ( Speed_Inc_Past 15.0 EnableTrigger ( 16 ) )
					Variable_Trigger ( Speed_Dec_Past 15.0 DisableTrigger ( 16 ) )
					Skip ( *** Trigger 16 *** )
					Discrete_Trigger ( 9 SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_E646_trcentro.wav" -1 )	SelectionMethod ( RandomSelection )	)	)
					Discrete_Trigger ( 8	PlayOneShot ( 1	File ( "x_Pilota_Tromba_lunga_2_fil.wav" -1 )	SelectionMethod ( RandomSelection )	)	)
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_Pilota_Tromba_lunga_fil_loop.wav" -1 )	SelectionMethod ( RandomSelection )	)	)

			)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -60.0		22050
						   0.0		22050
						   60.0		22050
						)
					Granularity ( 100 )
				)
			)
			Stream (
			Volume ( 1.0 )
				Skip (Stream10 **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 19
					Discrete_Trigger ( 9 ReleaseLoopReleaseWithJump ( ) )
					Discrete_Trigger ( 8 SetStreamVolume ( 1.0 ) )
					Initial_Trigger ( DisableTrigger ( 16 ) )
					Initial_Trigger ( DisableTrigger ( 18  ) )
					Initial_Trigger ( DisableTrigger ( 19 ) )
		
					Variable_Trigger ( Speed_Inc_Past 15.0 DisableTrigger ( 17 ) )			
					Variable_Trigger ( Speed_Inc_Past 15.0 EnableTrigger ( 18 ) )
					Variable_Trigger ( Speed_Dec_Past 15.0 DisableTrigger ( 18 ) )			
					Variable_Trigger ( Speed_Dec_Past 15.0 EnableTrigger ( 17 ) )
					Variable_Trigger ( Speed_Inc_Past 25.0 DisableTrigger ( 18 ) )			
					Variable_Trigger ( Speed_Inc_Past 25.0 EnableTrigger ( 19 ) )
					Variable_Trigger ( Speed_Dec_Past 25.0 DisableTrigger ( 19 ) )			
					Variable_Trigger ( Speed_Dec_Past 25.0 EnableTrigger ( 18 ) )
					Variable_Trigger ( Speed_Inc_Past 15.0 EnableTrigger ( 16 ) )
					Variable_Trigger ( Speed_Dec_Past 15.0 DisableTrigger ( 16 ) )
					Skip ( *** Trigger 16 *** )
					Discrete_Trigger ( 9 SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_E646_trcentro.wav" -1 )	SelectionMethod ( RandomSelection )	)	)
					Discrete_Trigger ( 8	PlayOneShot ( 1	File ( "x_Pilota_Tromba_lunga_2_fil.wav" -1 )	SelectionMethod ( RandomSelection )	)	)
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "x_Pilota_Tromba_lunga_fil_loop.wav" -1 )	SelectionMethod ( RandomSelection )	)	)

			)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -60.0		22050
						   0.0		22050
						   60.0		22050
						)
					Granularity ( 100 )
				)
			)
			Stream (
				Skip ( **** 11a This stream handles the final part of the whistle  	**** )
				Priority ( 6 )
				Triggers ( 1
					Discrete_Trigger ( 11	PlayOneShot( 1	
													File ( "x_Fifine.wav" -1 )	
													SelectionMethod ( RandomSelection ))) 
							)
								)
			Stream (
				Skip ( **** 11 This stream allows the whistle to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 4
					Discrete_Trigger ( 10 SetStreamVolume ( 1.0 ) )
					Discrete_Trigger ( 10	StartLoopRelease ( 1	
													File ( "x_Ficentro_chpitch.wav" -1 )	
													SelectionMethod ( RandomSelection ))) 
										Discrete_Trigger (  11	ReleaseLoopRelease () )	
					Discrete_Trigger ( 11 SetStreamVolume ( 0.0 ) )
							)
								)
			Stream (
				Skip ( **** Stream12 This stream allows the sander to be played at the same time  	**** )				
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "..\\..\\KIHA31\\SOUND\\x_k31_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Volume (1.00)
				Skip ( **** Stream13 This stream allows the Train Brake to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 5
					Initial_Trigger ( DisableTrigger ( 5 ) )
					Variable_Trigger ( Variable3_Dec_Past 0.45  EnableTrigger ( 5 ))
					Discrete_Trigger ( 54 SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 14 SetStreamVolume ( 1.0 ) )
					Skip ( **** Brake Normal Apply	**** )
					Discrete_Trigger (  14	
						PlayOneShot ( 1	
							File ( "x_Pilota_Sfiato_freno_2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
								)
								)
				) 
						FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -60.0		22050
						   0.0		22050
						   60.0		22050
						)
					Granularity ( 100 )
				)
	
			)
			Stream (
				Volume (1.00)
				Skip ( **** Stream14 This stream allows the Train Brake to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 12
					Discrete_Trigger (  14  DisableTrigger ( 4 ))
					Discrete_Trigger ( 14 SetStreamVolume ( 0.0 ))
					Discrete_Trigger ( 54 SetStreamVolume ( 1.0 ))
					Skip ( **** Brake Release	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 1	
							File ( "x_sfreno_ricarica.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
								) 
								)
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 4 ))	
			
				) 
						FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -60.0		44100
						   0.0		44100
						   60.0		44100
						)
					Granularity ( 100 )
				)
	
			)
			Stream (
				Skip ( **** Stream15 Brake Squeal **** )				
				Priority ( 6 )			
				Triggers ( 23
					Initial_Trigger ( DisableTrigger ( 6 ))
					Discrete_Trigger (  14  DisableTrigger ( 7 ))
					Discrete_Trigger (  14  DisableTrigger ( 9 ))
					Discrete_Trigger (  14  SetStreamVolume ( 1.0 ))
					Discrete_Trigger (  14 EnableTrigger ( 6 ))
					Variable_Trigger (  Speed_Dec_Past 4.5 StartLoopRelease ( 1	File ( "x_squeal.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 ( 7 ))				
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 9 ))
					Variable_Trigger ( Speed_Inc_Past 0.5  SetStreamVolume ( 0.0 )  )				
					Variable_Trigger (  Speed_Dec_Past 0.02 ReleaseLoopReleaseWithJump ( ) )
					Discrete_Trigger (  54	ReleaseLoopReleaseWithJump ( ) )
					Discrete_Trigger ( 14 DisableTrigger ( 15 ) )
					Discrete_Trigger ( 54 DisableTrigger ( 6 ) )
					Discrete_Trigger (  14  Delay_Min_Max ( 1.0 1.0 ) EnableTrigger ( 15 ))				

					Skip ( *** Trigger 18 - siamo già sotto i 4.5 m/s *** )
					Initial_Trigger ( EnableTrigger ( 20 ))
					Variable_Trigger ( Speed_Dec_Past 4.5 EnableTrigger ( 20 ))
					Discrete_Trigger (  14 StartLoopRelease ( 1	File ( "x_squeal.wav" -1 )
								SelectionMethod ( SequentialSelection ) ) )				
					Variable_Trigger ( Speed_Inc_Past 4.5 DisableTrigger ( 20 ))
					Variable_Trigger (  Speed_Dec_Past 0.02 ReleaseLoopReleaseWithJump ( ) )
					Discrete_Trigger (  54	ReleaseLoopReleaseWithJump ( ) )


				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						  -4.5		11000
						   -1.0		11400
						   0.0		13500
						1.0			11400
						   4.5		11000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 11
						  -50.0		0.0
						  -4.6		0.0
						  -4.5		0.67
						  -1.0		0.8
						  -0.05		1.0
						   0.0		0.0
						   0.05		1.0
						   1.0		0.8
						   4.5		0.67
						   4.6		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 ( "x_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 (
				Priority ( 6 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "x_couple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "x_couple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "x_couple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "x_uncouple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "x_uncouple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "x_uncouple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 

			)			)

		)
	)


	Skip( **** ******************************************* **** )
	Skip( **** AI locos ( SL 0 )    **** )
	Skip( **** ******************************************* **** )

	ScalabiltyGroup( 0
		Activation (	ExternalCam () CabCam	()			PassengerCam	()	Distance    	(500)	)
		Deactivation (	Distance    	(500)	)
		Streams ( 10
				Stream (
				Skip (**** Stream0 Motori1***************************************)
				Priority ( 6 )
				Triggers ( 44 

				Variable_Trigger ( Speed_Inc_Past 0.04 SetStreamVolume ( 0.10 ) )
				Variable_Trigger  ( Speed_Inc_Past 0.05 StartLoop   ( 1
									 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 0.15 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 0.25 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 0.35 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 0.45 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Inc_Past 1.0 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Inc_Past 1.2 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 1.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 1.4 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 1.5 SetStreamVolume ( 1.00 ) )

					Variable_Trigger ( Speed_Inc_Past 2.7 SetStreamVolume ( 0.90 ) )
					Variable_Trigger ( Speed_Inc_Past 2.9 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 3.1 SetStreamVolume ( 0.70 ) )	
					Variable_Trigger ( Speed_Inc_Past 3.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 3.5 SetStreamVolume ( 0.50 ) )
					Variable_Trigger ( Speed_Inc_Past 3.7 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 3.9 SetStreamVolume ( 0.30 ) )
					Variable_Trigger ( Speed_Inc_Past 4.1 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Inc_Past 4.3 SetStreamVolume ( 0.10 ) )
				Variable_Trigger ( Speed_Inc_Past  4.5 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Inc_Past 4.500 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 4.500 SetStreamVolume ( 0.10 ) )			
Variable_Trigger  ( Speed_Dec_Past 4.5 StartLoop   ( 1 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
					Variable_Trigger ( Speed_Dec_Past 4.3 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Dec_Past 4.1 SetStreamVolume ( 0.30 ) )
					Variable_Trigger ( Speed_Dec_Past 3.9 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 3.7 SetStreamVolume ( 0.50 ) )
					Variable_Trigger ( Speed_Dec_Past 3.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 3.3 SetStreamVolume ( 0.70 ) )				
					Variable_Trigger ( Speed_Dec_Past 3.1 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 2.9 SetStreamVolume ( 0.90 ) )
					Variable_Trigger ( Speed_Dec_Past 2.7 SetStreamVolume ( 1.00 ) )				
					Variable_Trigger ( Speed_Dec_Past 1.5 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 1.4 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 1.3 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 1.2 SetStreamVolume ( 0.20 ) )
					Variable_Trigger ( Speed_Dec_Past 1.0 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.45 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.35 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.25 SetStreamVolume ( 0.10 ) )
					Variable_Trigger ( Speed_Dec_Past 0.15 SetStreamVolume ( 0.10 ) )
Variable_Trigger ( Speed_Dec_Past  0.05 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 0.00 ) )


				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 13
						-14.2		14232
						-11.0		11025	
						-9.100	15676	
 						-6.4		11025
						-4.5		38853
						-1.3		11224
						0.000		9000
						1.3		11224
						4.5		38853
					6.4		11025
					9.100		15676
					11.0		11025
					14.2		14232
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						-50.0			0.2
						-0.1			0.2
						 0			0.00
						0.1			0.2
                                    50.0			0.2
					)
 					Granularity ( 0.05 )					
				)				
			)
			Stream (
				Skip (**** Stream1 Motori2, suona alternato con Motori2, 3, 4, 5, 6 e 7 con crossfade********************)
				Priority ( 6 )
				Triggers ( 42
					Variable_Trigger ( Speed_Inc_Past 2.600 SetStreamVolume ( 0.07 ) )			
				Variable_Trigger  ( Speed_Inc_Past 2.6 StartLoop   ( 1
									 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 2.7 SetStreamVolume ( 0.14 ) )
					Variable_Trigger ( Speed_Inc_Past 2.8 SetStreamVolume ( 0.21 ) )
					Variable_Trigger ( Speed_Inc_Past 2.9 SetStreamVolume ( 0.28 ) )					
					Variable_Trigger ( Speed_Inc_Past 3.0 SetStreamVolume ( 0.35 ) )
					Variable_Trigger ( Speed_Inc_Past 3.1 SetStreamVolume ( 0.42 ) )
					Variable_Trigger ( Speed_Inc_Past 3.2 SetStreamVolume ( 0.49 ) )
					Variable_Trigger ( Speed_Inc_Past 3.3 SetStreamVolume ( 0.56 ) )		
					Variable_Trigger ( Speed_Inc_Past 3.4 SetStreamVolume ( 0.63 ) )
					Variable_Trigger ( Speed_Inc_Past 3.5 SetStreamVolume ( 0.70 ) )		
					Variable_Trigger ( Speed_Inc_Past 3.6 SetStreamVolume ( 0.77 ) )
					Variable_Trigger ( Speed_Inc_Past 3.7 SetStreamVolume ( 0.84 ) )		
					Variable_Trigger ( Speed_Inc_Past 3.8 SetStreamVolume ( 0.91 ) )
					Variable_Trigger ( Speed_Inc_Past 3.9 SetStreamVolume ( 1.00 ) )		
					Variable_Trigger ( Speed_Inc_Past 7.9 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 8.1 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 8.3 SetStreamVolume ( 0.40 ) )	
					Variable_Trigger ( Speed_Inc_Past 8.5 SetStreamVolume ( 0.20 ) )
				Variable_Trigger ( Speed_Inc_Past  8.7 ReleaseLoopReleaseWithJump () )
					Variable_Trigger ( Speed_Inc_Past 8.7 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 8.7 SetStreamVolume ( 0.20 ) )			
Variable_Trigger  ( Speed_Dec_Past 8.7 StartLoopRelease   ( 1 File ( "x_Elec2fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
					Variable_Trigger ( Speed_Dec_Past 8.5 SetStreamVolume ( 0.40 ) )				
					Variable_Trigger ( Speed_Dec_Past 8.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 8.1 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 7.9 SetStreamVolume ( 1.00 ) )				
					Variable_Trigger ( Speed_Dec_Past 3.9 SetStreamVolume ( 0.91 ) )
					Variable_Trigger ( Speed_Dec_Past 3.800 SetStreamVolume ( 0.84 ) )			
					Variable_Trigger ( Speed_Dec_Past 3.7 SetStreamVolume ( 0.77 ) )
					Variable_Trigger ( Speed_Dec_Past 3.600 SetStreamVolume ( 0.70 ) )
					Variable_Trigger ( Speed_Dec_Past 3.5 SetStreamVolume ( 0.63 ) )
					Variable_Trigger ( Speed_Dec_Past 3.400 SetStreamVolume ( 0.56 ) )			
					Variable_Trigger ( Speed_Dec_Past 3.3 SetStreamVolume ( 0.49 ) )
					Variable_Trigger ( Speed_Dec_Past 3.200 SetStreamVolume ( 0.42 ) )
					Variable_Trigger ( Speed_Dec_Past 3.100 SetStreamVolume ( 0.35 ) )
					Variable_Trigger ( Speed_Dec_Past 3.000 SetStreamVolume ( 0.28 ) )
					Variable_Trigger ( Speed_Dec_Past 2.900 SetStreamVolume ( 0.21 ) )
					Variable_Trigger ( Speed_Dec_Past 2.800 SetStreamVolume ( 0.14 ) )
					Variable_Trigger ( Speed_Dec_Past 2.700 SetStreamVolume ( 0.07 ) )
Variable_Trigger ( Speed_Dec_Past  2.6 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 2.600 SetStreamVolume ( 0.00 ) )

				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-9.0		38852
						-2.6		11224
						0.000		11025
						2.6		11224
					9.0		38852
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					SpeedControlled 
					CurvePoints ( 5
						-50.0			0.2
						-0.1			0.2
						 0			0.00
						0.1			0.2
                                    50.0			0.2
					)
 					Granularity ( 0.05 )					
				)				
			)
			Stream (
				Skip (**** Stream2 Motori_n4********************)
				Priority ( 6 )
				Triggers ( 24
							Variable_Trigger ( Speed_Inc_Past 7.9 SetStreamVolume ( 0.20 ) )
				Variable_Trigger  ( Speed_Inc_Past 7.9 StartLoopRelease   ( 1
									 File ( "x_E656_motori_n4_loww.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 8.1 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 8.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 8.5 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 8.7 SetStreamVolume ( 1.00 ) )

					Variable_Trigger ( Speed_Inc_Past 15.1 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 15.3 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 15.5 SetStreamVolume ( 0.40 ) )	
					Variable_Trigger ( Speed_Inc_Past 15.7 SetStreamVolume ( 0.20 ) )
				Variable_Trigger ( Speed_Inc_Past  15.9 ReleaseLoopReleaseWithJump () )
					Variable_Trigger ( Speed_Inc_Past 15.9 SetStreamVolume ( 0.00 ) )
					Variable_Trigger ( Speed_Dec_Past 15.9 SetStreamVolume ( 0.20 ) )			
Variable_Trigger  ( Speed_Dec_Past 15.9 StartLoopRelease   ( 1 File ( "x_E656_motori_n4_loww_short.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )							
					Variable_Trigger ( Speed_Dec_Past 15.7 SetStreamVolume ( 0.40 ) )				
					Variable_Trigger ( Speed_Dec_Past 15.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 15.3 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 15.1 SetStreamVolume ( 1.00 ) )				
					Variable_Trigger ( Speed_Dec_Past 8.7 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 8.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 8.3 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 8.1 SetStreamVolume ( 0.20 ) )
Variable_Trigger ( Speed_Dec_Past  7.9 ReleaseLoopReleaseWithJump () )
					Variable_Trigger ( Speed_Dec_Past 7.9 SetStreamVolume ( 0.00 ) )
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-23.4	33075
						-7.8	11025
						0.000		9000
						7.8	11025
						23.4	33075
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						-50.0			0.2
						-0.1			0.2
						 0			0.00
						0.1			0.2
                                    50.0			0.2
					)
 					Granularity ( 0.05 )					
				)				
			)
			Stream (
				Skip (**** Stream3 Motori_n6_fil********************)
				Priority ( 6 )
				Triggers ( 12
							Variable_Trigger ( Speed_Inc_Past 15.1 SetStreamVolume ( 0.20 ) )
				Variable_Trigger  ( Speed_Inc_Past 15.1 StartLoop ( 1
									 File ( "x_E656_motori_n6_low_fil.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 15.3 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Inc_Past 15.5 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Inc_Past 15.7 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Inc_Past 15.9 SetStreamVolume ( 1.00 ) )

					Variable_Trigger ( Speed_Dec_Past 15.9 SetStreamVolume ( 0.80 ) )
					Variable_Trigger ( Speed_Dec_Past 15.7 SetStreamVolume ( 0.60 ) )
					Variable_Trigger ( Speed_Dec_Past 15.5 SetStreamVolume ( 0.40 ) )
					Variable_Trigger ( Speed_Dec_Past 15.3 SetStreamVolume ( 0.20 ) )
Variable_Trigger ( Speed_Dec_Past  15.1 ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 15.1 SetStreamVolume ( 0.00 ) )
				)
				
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-45.3	33075
						-15.1	11025
						0.000	9000
						15.1	11025
						45.3	33075
					)
					Granularity ( 1 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						-50.0			0.2
						-0.1			0.2
						 0			0.00
						0.1			0.2
                                    50.0			0.2
					)
 					Granularity ( 0.05 )					
				)				
			)
	
	Stream (
				Skip (**** Stream4 AI horn and whistle********************)
Priority ( 7 )
Triggers ( 1
Variable_Trigger ( Distance_Dec_Past 70 PlayOneShot ( 3
File ("x_trcentro_loud_long.wav" -1 )
File ("x_silence_0-01.wav" -1 )
File ("x_ficentro_chpitch.wav" -1 )
SelectionMethod ( RandomSelection ) ) )
)
VolumeCurve(
SpeedControlled
CurvePoints ( 5
-100.0 1.0
-2.0 1.0

0 0.0
2.0 1.0
100.0 1.0
)
Granularity ( 0.1 )
)
)
				Stream (
				Skip ( **** Stream 4  This stream has diesel motor sound upwards **** )
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 5
					Variable_Trigger ( Speed_Dec_Past 8.0 SetStreamVolume ( 0.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 1.00 ) )					
					Initial_Trigger( StartLoop ( 1	File ( "x_D445_motori_centro.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Variable_Trigger ( Speed_Dec_Past 0.05 StartLoop ( 1	File ( "x_D445_motori_centro.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Variable_Trigger ( Speed_Dec_Past 8.0 ReleaseLoopRelease ( ) )					
)			
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 13
						-22.0		36500
						-20.0		33000
						-11.0		33000
						-9.0		29500
						-3.0		29500
						-2.5		29000						
						0.000		22050
						2.5		29000
						3.0		29500
						9.0		29500
						11.0		33000
						20.0		33000
						22.0		36500
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 -50.0		1.00
						-1.0			1.0
						 0.000		0.80
						1.0			1.0
						 50.0			1.0
					)
					Granularity ( 0.05 )
				)				

					)
				Stream (
				Skip ( **** Stream 5 This stream has diesel motor sound downwards **** )
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 4
					Variable_Trigger ( Speed_Dec_Past 8.0 SetStreamVolume ( 1.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 0.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 8.0 StartLoop ( 1	File ( "x_D445_motori_centro.wav" -1 )
							SelectionMethod (SequentialSelection)))				
					Variable_Trigger ( Speed_Dec_Past 0.05 ReleaseLoopRelease ( ) )	
			
							)

				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 13
						-22.0		36500
						-20.0		33000
						-14.0		33000
						-12.0		29500
						-6.0		29500	
						-3.0		22050					
						0.000		22050
						3.0		22050
						6.0		29500
						12.0		29500
						14.0		33000
						20.0		33000
						22.0		36500
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 -50.0		1.00
						-1.0			1.0
						 0.000		0.80
						1.0			1.0
						 50.0			1.0

					)
					Granularity ( 0.05 )
				)	
)			
	Stream (
				Priority ( 4 )
				Triggers ( 5
					Variable_Trigger ( Speed_Dec_Past 8.0 SetStreamVolume ( 0.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 1.00 ) )					
					Initial_Trigger( StartLoop ( 1	File ( "a_d_comp1.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Variable_Trigger ( Speed_Dec_Past 8.0 ReleaseLoopRelease ( ) )					
					Variable_Trigger ( Speed_Dec_Past 0.05 StartLoop ( 1	File ( "a_d_comp1.wav" -1 )
							SelectionMethod (SequentialSelection)))
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 13
						-22.0		18250
						-20.0		16500
						-11.0		16500
						-9.0		14750
						-3.0		14750
						-2.5		14500						
						0.000		11025
						2.5		14500
						3.0		14500
						9.0		14750
						11.0		16500
						20.0		16500
						22.0		18250
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 -50.0		0.40
						-1.0			0.3						
						 0.000		0.10
						1.0			0.3						
						 50.0			0.4

					)
					Granularity ( 0.05 )
				)				
)		
	Stream (
				Priority ( 4 )
				Triggers ( 4
					Variable_Trigger ( Speed_Dec_Past 8.0 SetStreamVolume ( 1.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 0.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 8.0 StartLoop ( 1	File ( "a_d_comp1.wav" -1 )
							SelectionMethod (SequentialSelection)))				
					Variable_Trigger ( Speed_Dec_Past 0.05 ReleaseLoopRelease ( ) )	
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 13
						-22.0		18250
						-20.0		16500
						-14.0		16500
						-12.0		14750
						-6.0		14750	
						-3.0		11025					
						0.000		11025
						3.0		11025
						6.0		14750
						12.0		14750
						14.0		16500
						20.0		16500
						22.0		18250
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 -50.0		0.40
						-1.0			0.3						
						 0.000		0.10
						1.0			0.3						
						 50.0			0.4

					)
					Granularity ( 0.05 )
				)				
)		
Stream (
	Priority ( 7 )
	Triggers ( 3
				Variable_Trigger ( Speed_Dec_Past  2.50  StartLoopRelease ( 1	File ( "x_squeal.wav" -1 )
								SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past 0.1	ReleaseLoopRelease ()	)
					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		1.0
						  -1.0		1.0
						  -0.05		1.0
						   0.0		0.0
						   0.05		1.0
						   1.0		1.0
						   3.0		1.0
						   3.1		0.0
						 50.0			0.0
					)
					Granularity ( 0.05 )
				)				
			)
		)
	)
)

