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

Tr_SMS (
	Skip ( ** Tim Muir's CA&E 3003-3004, January 26, 2005 ** )
	Skip ( ** SL 5 sounds - Two looping audio streams, multiple waves - pitch shifted & Xfaded by current ** )
	Skip ( ** One Horn audio stream ** )
	Skip ( ** One Sander audio stream ** )
	Skip ( ** One Compressor audio stream ** )
	Skip ( ** One TBrake audio stream ** )
	Skip ( ** One Coupling audio stream ** )
	ScalabiltyGroup( 5
		Activation (
			ExternalCam ( )
			PassengerCam( )
			Distance    ( 1000 )
			)
		Deactivation (
			CabCam	( )
			Distance    ( 1000 )
			)
		Streams ( 8
			Stream (
				Skip( ** CTA traction motor ** )
				Priority	( 6 )
				Triggers	( 5
				Initial_Trigger ( StartLoop ( 1 File
				( "x_tmcruise0.wav" -1 )
				SelectionMethod  ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Inc_Past 0.10 ReleaseLoopRelease ( ) )

				Variable_Trigger ( Variable2_Inc_Past 0.10 StartLoop ( 1 File
				( "x_tmcruise1.wav" -1 )
				SelectionMethod  ( SequentialSelection ) ) )
				Variable_Trigger ( Variable2_Dec_Past 0.10 ReleaseLoopRelease ( ) )

				Variable_Trigger ( Variable2_Dec_Past 0.10 StartLoop ( 1 File
				( "x_tmcruise0.wav" -1 )
				SelectionMethod  ( SequentialSelection ) ) )
				)
				
				FrequencyCurve (
					SpeedControlled
					CurvePoints ( 3
					     -200.0		60000
						  0.0		 8000
						200.0		60000
				)
				Granularity ( 100 )		
				)
				VolumeCurve (
					SpeedControlled
					CurvePoints ( 7
						 -100.0	1.0
						  -10.0	0.9
						   -0.5	0.6
						    0.0	0.0
						    0.5	0.6
						   10.0	0.9
						  100.0	1.0
				)
				Granularity ( 0.05 )					
				) )

			Stream (
				Skip( ** Traction motor blower ** )
				Priority	( 6 )
				Triggers	( 1
				Initial_Trigger ( StartLoop ( 1 File 
				( "x_blower.wav" -1 )
				SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-100.000	6000
						   0.000	4000
						 100.000	6000
					)
					Granularity ( 25 )		
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 3
						-100.000	0.6
						   0.000	0.3
						 100.000	0.6
					)
					Granularity ( 0.05 )		
				) )

			Stream (
				Skip ( ** This stream allows the horn to be played at the same time ** )
				Priority ( 6 )
				Triggers ( 2
				Discrete_Trigger ( 8 StartLoopRelease ( 1
				File ( "x_cae4005-2.wav" -1 )
				SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 9 ReleaseLoopReleaseWithJump ( ) )
				) )

			Stream (
				Skip ( ** This stream allows the horn to be played at the same time ** )
				Priority ( 6 )
				Volume   ( 0.5 )
				Triggers ( 2
				Discrete_Trigger ( 10	StartLoopRelease ( 1	
				File ( "x_steambell2.wav" -1 )	
				SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 11 	ReleaseLoopReleaseWithJump ( ) )
				) )

			Stream (
				Skip ( ** This stream allows the Sander to be played at the same time ** )
				Priority ( 5 )
				Volume   ( 0.5 )			
				Triggers ( 2				
				Discrete_Trigger ( 4 StartLoopRelease ( 1 File
				( "..\\..\\HHP\\SOUND\\x_hhp_sand.wav" -1 )
				SelectionMethod ( SequentialSelection ) ) )
				Discrete_Trigger ( 5 ReleaseLoopRelease ( ) )	
				) )

			Stream (
				Skip ( ** This stream allows the Train Brake to be played at the same time ** )
				Priority ( 5 )
				Triggers ( 2				
					Skip ( ** Brake Normal Apply ** )
					Discrete_Trigger (  53	
						PlayOneShot ( 3	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake1.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake2.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake3.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
					Skip ( **** Brake Emergency Apply	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake1.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake2.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake3.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			)
			Stream (
				Priority ( 6 )
				Volume ( 0.5 )
				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) ) ) 
					) )
			Stream (
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 2
					Discrete_Trigger ( 45 PlayOneShot ( 1 	File ( "..\\..\\HHP\\SOUND\\x_hhp_pantou.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 46 PlayOneShot ( 1 	File ( "..\\..\\HHP\\SOUND\\x_hhp_pantod.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
		)
	)


	Skip ( ** SL 3 sounds - One looping audio stream, idle wave and moving - pitch shifted by current ** )
	Skip ( **             - One Horn audio stream				                                              ** )
	Skip ( **             - One Sander audio stream				                                            ** )
	Skip ( **             - One Compressor audio stream				                                        ** )
	Skip ( **             - One TBrake audio stream				                                            ** )
	ScalabiltyGroup( 3
		Activation (			ExternalCam ()			Distance    	(1000)		)
                                      PassengerCam	()			Distance    	(1000)
		Deactivation (		CabCam			()					)
		Streams ( 7
			Stream (
				Priority ( 6 )
				Triggers ( 5
					Skip( **** The engine/current related sounds **** )
					Initial_Trigger  ( StartLoop   ( 1 File ( "XXElec1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past  1.00 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past  1.00 StartLoop   ( 1 File ( "XXElec2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past  1.00 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past  1.00 StartLoop   ( 1 File ( "XXElec1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.00		10000
						1.00		10000
						100.0		12500
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.00		0.5
						 1.00		1.0
						 100.0	1.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "fischio2.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					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 ( "Tromba2.wav" -1 )	
													SelectionMethod ( SequentialSelection ) 
												)
								)

					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 ( "..\\..\\HHP\\SOUND\\x_hhp_sand.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the Compressor to be played at the same time  	**** )				
				Priority ( 6 )			
				Triggers ( 2				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "..\\..\\GP38\\SOUND\\x_gp_compressor.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** This stream allows the Train Brake to be played at the same time  	**** )
				Priority ( 5 )
				Triggers ( 2				
					Skip ( **** Brake Normal Apply	**** )
					Discrete_Trigger (  53	
						PlayOneShot ( 3	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake1.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake2.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
					Skip ( **** Brake Emergency Apply	**** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake1.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake2.wav" -1 )	
							File ( "..\\..\\HHP\\SOUND\\x_hhp_ibrake2.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			)
			Stream (
				Priority ( 6 )
				Volume ( 1.0 )
				Triggers ( 2
					Discrete_Trigger ( 45 PlayOneShot ( 1 	File ( "..\\..\\HHP\\SOUND\\x_hhp_pantou.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 46 PlayOneShot ( 1 	File ( "..\\..\\HHP\\SOUND\\x_hhp_pantod.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
		)
	)
	
	Skip ( ** SL 1 sounds - One looping audio stream, idle wave and moving - pitch shifted by current ** )
	Skip ( **             - One Horn audio stream				                                              ** )
	ScalabiltyGroup( 1
		Activation (			ExternalCam ()			Distance    	(1000)		)
		Deactivation (		CabCam			()			PassengerCam	()			Distance    	(1000)		)
		Streams ( 3
			Stream (
				Priority ( 6 )
				Triggers ( 5
					Skip( **** The engine/current related sounds **** )
					Initial_Trigger  ( StartLoop   ( 1 File ( "XXElec1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past  1.0 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past  1.0 StartLoop   ( 1 File ( "XXElec2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past  1.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past  1.0 StartLoop   ( 1 File ( "XXElec1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 3
						0.000		10000
						1.00		10000
						100.0		12500
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.5
						 1.00 		1.0
						 100.000		1.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** This stream allows the horn to be played at the same time  	**** )
				Priority ( 6 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 1	File ( "fischio2.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					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 ( "Tromba2.wav" -1 )	
													SelectionMethod ( SequentialSelection ) 
												)
								)

					Discrete_Trigger ( 11 	ReleaseLoopReleaseWithJump ()	)
				)
			)
		)
	)
	
	Skip( **** ******************************************* **** )
	Skip( **** Copy of Generic Electric SMS Used for SL 0  **** )
	Skip( **** ******************************************* **** )

	ScalabiltyGroup( 0
		Activation (	ExternalCam ()	Distance    	(500)	)
                           PassengerCam	()	Distance    	(500)	)
		Deactivation (CabCam	()			)
		Streams ( 1
			Stream (
				Priority ( 4 )
				Triggers ( 6
					Variable_Trigger ( Speed_Inc_Past   1.0 StartLoop   ( 1 File ( "..\\..\\HHP\\SOUND\\a_e_comp1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  50.0 StartLoop   ( 1 File ( "..\\..\\HHP\\SOUND\\a_e_comp2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  50.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Speed_Dec_Past  49.0 StartLoop   ( 1 File ( "..\\..\\HHP\\SOUND\\a_e_comp1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  49.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Speed_Dec_Past   1.0 ReleaseLoopRelease () )					
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 3
					 	  0.0		0.0
						 10.0		1.0
						100.0		1.0
					)
					Granularity ( 0.05 )
				)				
			)
		)
	)
)


