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

Tr_SMS (
	ScalabiltyGroup( 5
		Activation (			CabCam			()			Distance    	(100)		)
		Deactivation (		ExternalCam ()			PassengerCam	()			Distance    	(100)		)
		
		Streams ( 14
			
					Skip( ********************* XBXEPilotecab.SMS V 1.0 *******************)
					Skip( programmé par Belphegor                                          )
					Skip( *****************************************************************)
					Skip( **** Belphegor Copyright 2006. All right reserved ************** )

				
			Stream (
				Skip ( **** Son du ronfleur + fermeture porte **** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 45	PlayOneShot ( 1	File ( "BellDoorVB2Nint.wav" -1 )	SelectionMethod ( RandomSelection )	) )
					Discrete_Trigger ( 46	PlayOneShot ( 1	File ( "DoorOpenVB2Nint.wav" -1 )	SelectionMethod ( RandomSelection )	) )

					)
				
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 3
						-65.0		0.0
						0.0		0.6
						65.0		0.0
						)
					Granularity ( 0.02 )
				)


				)

			Stream (
				
				Skip(********************Bruit du tackro ********************************)
				Priority ( 6 )
				Triggers ( 1
				Initial_Trigger ( StartLoopRelease (1 File ( "XTachro.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 3
						-65.0		0.2
						0.0		0.8
						65.0		0.2
						)
					Granularity ( 0.02 )
				)	
			)		

			Stream (
				
				Skip(********************Autotest-KVB ********************************)
				Priority ( 6 )
				Triggers ( 1
				Initial_Trigger ( PlayOneShot (1 File ( "InitVB2N.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
				)
			)

			Stream (
				
				Skip(********************Bruit CVS ********************************)
				Priority ( 6 )
				Triggers ( 1
				Initial_Trigger ( StartLoopRelease (1 File ( "convVB2NInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) )
				
				)

				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 11

					0.0 	 11025
					10.0	 11025
					20.0	 11025	
					30.0   11025
					40.0 	 11025
					50.0	 11025
					60.0	 11025	
					70.0   11025
					80.0	 11025	
					90.0   11025
					100.0	 11025

					)
					Granularity ( 1 )
				)

				VolumeCurve(
					SpeedControlled
					CurvePoints ( 13

						-100.0            0.0
						 -84.0 		0.0
					 	 -64.0 		0.0
					 	 -56.0 		0.0
					 	 -47.5 		0.1
					 	 -42.0 		0.2
						   0.0		0.3
					 	  42.0 		0.2
					 	  47.5 		0.1
						  56.0 		0.0
						  64.0 		0.0
						  84.0 		0.0
						 100.0            0.0						 
					)
					Granularity ( 0.01 )
				)


			)

		
			

			Stream (
				Skip ( **** Sifflet	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "2Tin.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump()	)
				)
			)

			Stream (    Skip(****************** Bruit crissement frein à l'arrêt *********************************)
		      	Priority ( 6 )
				Triggers ( 1
				Variable_Trigger ( Speed_Dec_Past 0.8 PlayOneShot (1 File ( "FR1.wav" -1  ) SelectionMethod ( SequentialSelection ) ) 	)
				)

				VolumeCurve(
					SpeedControlled
					CurvePoints ( 15
						 -187.0		0.0
						 -100.0		0.0
						 -70.0		0.0	
						 -45.0		0.0	
						 -25.0		0.0
					 	 -20.00 		0.3	
						 -0.50		0.3
						 0.000		0.0
						 0.50             0.3
						 20.00 		0.3						 
						 25.0 		0.0
						 45.0 		0.0
						 70.0             0.0
						 100.0            0.0
						 187.0		0.0
					)
					Granularity ( 0.05 )
				)


			)

			Stream (				
				Skip(********************Bruit des freins *******************************)
				Priority ( 6 )
				Triggers ( 17
				
				Variable_Trigger ( Speed_Dec_Past 30.0 StartLoopRelease (1 File ( "BruitFreinInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) 	)				
				Variable_Trigger ( Speed_Inc_Past 30.5 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 25.0 StartLoopRelease (1 File ( "BruitFreinInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) 	)				
				Variable_Trigger ( Speed_Inc_Past 25.5 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 20.0 StartLoopRelease (1 File ( "BruitFreinInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) 	)
				Variable_Trigger ( Speed_Inc_Past 20.5 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 15.0 StartLoopRelease (1 File ( "BruitFreinInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) 	)
				Variable_Trigger ( Speed_Inc_Past 15.5 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 10.0 StartLoopRelease (1 File ( "BruitFreinInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) 	)
				Variable_Trigger ( Speed_Inc_Past 10.5 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 5.0 StartLoopRelease (1 File ( "BruitFreinInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) 	)
				Variable_Trigger ( Speed_Inc_Past 5.5 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 0.05 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 0.05 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 0.05 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 0.05 ReleaseLoopRelease() )
				Variable_Trigger ( Speed_Dec_Past 0.05 ReleaseLoopRelease() )

				)

				VolumeCurve(
					SpeedControlled
					CurvePoints ( 15
						 -187.0		0.6
						 -100.0		0.6
						 -70.0		0.6	
						 -45.0		0.6	
						 -25.0		0.6
					 	 -20.00 		0.6	
						 -0.50		0.6
						 0.000		0.0
						 0.50             0.6
						 20.00 		0.6						 
						 25.0 		0.6
						 45.0 		0.6
						 70.0             0.6
						 100.0            0.6
						 187.0		0.6
					)
					Granularity ( 0.05 )
				)

			)

		      Stream (				
				Skip(********************Bruit de roulement ********************************)
				Priority ( 6 )
				Triggers ( 1
				Initial_Trigger ( StartLoopRelease (1 File ( "RoulementInt.wav" -1  ) SelectionMethod ( SequentialSelection ) ) )
				)

				VolumeCurve(
					SpeedControlled
					CurvePoints ( 15
						 -187.0		0.7
						 -100.0		0.7
						 -70.0		0.7	
						 -45.0		0.7	
						 -25.0		0.7
					 	 -20.00 		0.6	
						 -0.50		0.1
						 0.000		0.0
						 0.50             0.1
						 20.00 		0.6						 
						 25.0 		0.7
						 45.0 		0.7
						 70.0             0.7
						 100.0            0.7
						 187.0		0.7
					)
					Granularity ( 0.05 )
				)

			)

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

					Discrete_Trigger ( 11 	ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Skip ( **** This stream allows the Sander to be played at the same time  	**** )
				Priority ( 5 )			
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1	File ( "../../acela/sound/acela_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)

			Stream (
				Priority ( 6 )
				Volume ( 0.5 )
				Triggers ( 6
					Discrete_Trigger ( 58 PlayOneShot ( 1 	File ( "couple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "couple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "couple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "uncouple_auto1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "uncouple_auto2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "uncouple_auto3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Skip ( **** This stream plays all the controls samples  	**** )
				Skip ( **** NOTE: Missing AWS Alarm                     	**** )
				Priority ( 5 )
				Triggers ( 11
					Discrete_Trigger ( 14	PlayOneShot ( 1	File ( FreinpneuVB2Nint.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 ( 48	PlayOneShot ( 1	File ( "../../acela/sound/acela_econtrol2.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 ( "Veille_Stereo.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 57	SetStreamVolume ( 0.0 ) )
					Discrete_Trigger ( 57	ReleaseLoopRelease() ) 
				)				
			)

		)
	)


	
)
