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


Tr_SMS (
	ScalabiltyGroup( 5
		Activation (			ExternalCam ()	PassengerCam	()		Distance    	(1000)		)
		Deactivation (		CabCam			()						Distance    	(1000)		)
		Volume(1.0)
		Streams ( 9
				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 ( **** Stream 4  This stream has diesel motor sound upwards **** )
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 7
					Variable_Trigger ( Speed_Dec_Past 8.0 SetStreamVolume ( 0.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 1.00 ) )					
					Initial_Trigger( PlayOneShot ( 1	File ( "x_Silence_5.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Initial_Trigger( StartLoopRelease ( 1	File ( "x_D445_Accensione.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 ReleaseLoopReleaseWithJump ( ) )	
					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 ( 7
					Variable_Trigger ( Speed_Dec_Past 8.0 SetStreamVolume ( 0.00 ) )					
					Variable_Trigger ( Speed_Dec_Past 0.05 SetStreamVolume ( 1.00 ) )					
					Initial_Trigger( PlayOneShot ( 1	File ( "x_Silence_5.wav" -1 )
							SelectionMethod (SequentialSelection)))
					Initial_Trigger( PlayOneShot ( 1	File ( "x_Silence_5.wav" -1 )
							SelectionMethod (SequentialSelection)))
					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 )
				)				
			)

		)
	)


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

	ScalabiltyGroup( 0
		Activation (	ExternalCam () CabCam	()			PassengerCam	()	Distance    	(500)	)
		Deactivation (	Distance    	(500)	)
		Streams ( 9
				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 ( **** 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 )
				)				
			)
		)
	)
)

