The Trouble With Whistles

Announcements and Discussion about Dick Cowen's BritKits Development

The Trouble With Whistles

Unread postby PickeringLumberCorp » Tue Jun 09, 2015 4:49 pm

Hello,
I have recently been playing around with different custom whistles with the locomotives from the Logging Mega Pack, and I have seemed to run into a bit of a bother. The default whistles of the locomotives work fine, but the custom whistles suffer from this symptom: the whistle loop sound file starts playing at the same time as the whistle start sound file, thereby effectively covering up the start sound file. I was wondering if there's a bit of coding which deals with timing that I have to change or what. I would appreciate any and all help. By the way, the Logging Mega Pack is absolutely amazing (especially the Shays)!

Cheers,
Armagon
PickeringLumberCorp
 
Posts: 22
Joined: Mon Jun 08, 2015 6:48 pm

Re: The Trouble With Whistles

Unread postby KCJones » Thu Jun 11, 2015 12:31 am

Are you editing the WhistleControl01.proxybin file correctly?
User avatar
KCJones
 
Posts: 872
Joined: Fri Feb 13, 2009 4:05 pm
Location: UK Somewhere between Hereford and Shrewsbury

Re: The Trouble With Whistles

Unread postby PickeringLumberCorp » Thu Jun 11, 2015 6:23 am

No. I am just changing out only the sound files. Is there some hidden thing I have to do?
PickeringLumberCorp
 
Posts: 22
Joined: Mon Jun 08, 2015 6:48 pm

Re: The Trouble With Whistles

Unread postby KCJones » Thu Jun 11, 2015 10:33 am

The proxybin files control which sounds to play, when and where (inside, outside or both), also what triggers the sound and at what pitch and various other parameters. The bin files in the sound folders connect the engine bin files to the relevant proxybin file.
Can I suggest you open them up and study them a bit. I am far from an expert, but what I have gleaned, much is from looking into the files, researching these forums and asking questions.

Dick C.
User avatar
KCJones
 
Posts: 872
Joined: Fri Feb 13, 2009 4:05 pm
Location: UK Somewhere between Hereford and Shrewsbury

Re: The Trouble With Whistles

Unread postby Chacal » Thu Jun 11, 2015 2:58 pm

Also read the relevant developer docs, available here in the file library.
Over the hill and gathering speed
Chacal
Site Admin
 
Posts: 6485
Joined: Tue Jul 05, 2011 1:11 pm
Location: Quebec, Canada

Re: The Trouble With Whistles

Unread postby PickeringLumberCorp » Sat Jul 25, 2015 3:43 pm

I am not able to make much sense of the script in the WhistleControlproxybin file.
PickeringLumberCorp
 
Posts: 22
Joined: Mon Jun 08, 2015 6:48 pm

Re: The Trouble With Whistles

Unread postby _o_OOOO_oo-Kanawha » Sat Jul 25, 2015 4:21 pm

Usually, the whistle or horn sound is divided into three sections: start - loop - end. The proxybin.xml takes care of playing the right sample
When you pull the cord, start sounds, when you hold the cord for a certain duration, loop sounds as long as the cord is being pulled, when you release the cord end sounds.

So there should be three sound samples in the whistle's sound folder. You'll need to replace them with the correct sample from your replacement whistle. If that comes in one long sound sample, you'll have to cut it into start - loop - end sections yourself.

There are free .wav file editors available, or you could use an online .wav editor. It takes some trial and error to cut the correct parts from the sample so your whistly sounds good in both short and long blasts. In short blasts, the loop section doesn't play, the whiste goes straight from start to end, so these sections must match up too.

You might also want to adjust the volume.
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm


Return to BritKits

Who is online

Users browsing this forum: No registered users and 1 guest