Train-Sim.Com
MSTS Sound Design

Sound help

Sound help – image 1

Notice to all visitors and members of the Train-Sim.Com message forums:
If you plan on using a signature banner in your posts, we would like to remind you that there is a maximum size for banners. That maximum is 450 pixels wide by 120 pixels high, and not to exceed 25k. Your compliance is appreciated. FORUM RULES Problems? There are two common reasons for problems with logging in and posting messages. The first is that you are running a firewall that prevents your messages from being sent to the server. The other is that you have cookies disabled; the DCForum software requires cookies to work properly.

Previous Topic | Next Topic

Printer-friendly copy Email this topic to a friend

Reading Topic #218

Member since Jul-21-02 · 37 posts

are there any tutorials out there on changeing sounds? i have downloaded a few sounds but a couple just have wav. files and no sms files.also some of the steam trains i have,have got one whistle sound in the cabview but a different sound in outside view.i would appreciate any help you can offer...

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

RE: sound help, fikalaker, Sep-16-02, 10:35 AM, (1) RE: sound help, chuckzeiler, Sep-16-02, 12:58 PM, (2) RE: sound help, fikalaker, Sep-17-02, 12:40 PM, (3) RE: sound help, chucksc, Sep-17-02, 08:24 PM, (4) RE: sound help, chuckzeiler, Sep-17-02, 10:30 PM, (5) RE: sound help, argonian, Sep-18-02, 11:30 PM, (6) RE: sound help, chuckzeiler, Sep-19-02, 11:01 PM, (7) RE: sound help, fikalaker, Sep-23-02, 03:00 PM, (8) RE: sound help, fikalaker, Sep-25-02, 05:46 PM, (9) RE: sound help, csantucci, Oct-02-02, 08:04 AM, (10) RE: sound help, fikalaker, Oct-03-02, 01:25 PM, (11) RE: sound help, CNfavorite, Oct-03-02, 04:06 PM, (12) RE: sound help, chuckzeiler, Oct-04-02, 12:53 PM, (13)

Conferences | Topics | Previous Topic | Next Topic

Member since Sep-4-02 · 22 posts

RE: sound help

Me TOO!!!!I have some very good whistle sounds in Wav format but I can't get Them into the Sim without something being wrong ...garbled, too fast, distorted, too slow.I have Gold Wave shareware but I am too dense to understand it I guess...What I need are step by step instructions on how to do mono to stereo, ...32000 hz to 11hz?????????...Volume???
I have read other instructions but they skim over too much assuming you already know something you don't have a clue about...Is there a book out called "Sound Conversion for Dummys"????

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 360 posts

RE: sound help

LAST EDITED ON Sep-16-02 AT 12:58 PM (EDT)

I'm no expert, but I'll take a shot at this. It will probably take a couple of posts to get all the info to you. Unfortunately, there is little documentation on Sound for MSTS.First, get Goldwave, if you don't already have it.
http://www.goldwave.com/Next, in Goldwave, set up the Companion window:Go to the toolbar, select Window, select Companion, and put a checkmark in front of Device Controls. That will display the little window that I have placed in the lower right of this screen.
Sound help – image 2
This window plays the sound, and plays the sound in a loop. The green arrow with the smiley face is the looping play button, if you set it up this way.Go to the toolbar, select Options, Controls, select the Selection radio button, put a checkmark in Loop. OK. The smiley face green arrow will now play the sound selection continuously. Press the blue box button to the right of the smiley arrow to stop the sound.
Sound help – image 3Load a sound.To resample, select Effects, Resample, select the resample rate, which for MSTS is 11025hz. Later, when you get more familiar with this, you can resample at different rates to change the pitch. Right now you should stick with 11025hz. You can also adjust the volume in Effects, but you're probably better off adjusting the volume in the .sms file.
Sound help – image 4Sound help – image 5Now, you can save the sound. Go to the toolbar, select File, Save As, select 16 bit stereo signed for the cab (inside) sound, and 16 bit mono signed for the external sounds.
Sound help – image 6An example of the MSTS convention for naming sounds would be: horn.wav for the inside sound, x_horn.wav for the outside sound.The inside (stereo) sound is only used for the #1 (cab view) position, and all other camera views use the external sound.To make your outside sound match your inside sound (horn.wav, or whatever the name is), load the inside horn sound, do a File, Save As, and save the inside sound as a 16 bit mono sound, and rename it to x_horn.wav.Your horn may not play correctly this time, because we'll have to set up looping cues. That will be the next post.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Sep-4-02 · 22 posts

RE: sound help

Chuck, I can't thank you enough for taking your time to help someone in need...After reading your excellent explanation, I actually think I can do this...
The instructions are so clear, especially with the illustrations...This needs to be sticky posted so others can use it as a tutorial...or placed somewhere as a tutorial...like Steam4Me...Please continue when you have an opportunity...I (and probably others) will be waiting for the next step...

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1934 posts

RE: sound help

Excellent Tutorial Chuck!
I think I'll hang on to it....Chuck Schneider
Chief Cook and Bottle Washer
North American Locomotive WorksSound help – image 7

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 360 posts

RE: sound help

It'll be another day or two before I can get the next lesson posted. I started on it tonight, and as I was doing the screen grabs, the system got slower and slowerrrr. I looked at the C: drive properties, and I had less than a gig of free space. So I'm doing major housekeeping tonight.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 360 posts

RE: sound help

There are two kinds of sound loops; the first needs cues, the second does not. We'll start with the first version, since the initial post was about horns, which requires cues.You can place as may cues as you wish, based on your personal judgment. Personally, I like to make short loops with just a couple of cues. My thinking is that these sounds must be loaded into memory by MSTS, and the more cues, the bigger the .wav file, and the bigger the .wav file is, the less room there is for all the other sounds which must also be loaded into memory (bell, air compressor, clicks for controls, etc.). Also, sounds do not compress very well, and if you plan to package (zip) your sounds for distribution, smaller sound files make for a smaller upload/download.On the other hand, here's part of the MSTS default 380 whistle, and it has 16 cue points (little blue flags at the bottom) and is 5 seconds long. Maybe there is someone who knows more about this and can tell me (and the others) why there are so many cues.
Sound help – image 8Load your stereo version of the horn.wav file into GoldWave. My example, airwhistle1.wav, below, shows a four second sample that I recorded.
Sound help – image 9I want to cut the length down to about one second, so I'm going to trim about four seconds out of the middle of this sample. You don't have to do this part; it's just my attempt to make a short horn blast. There may be another technique, and if there is, I'd like to hear about it.To shorten the sample, go to the toolbar, select Options, Controls, Play, and select the Unselected radio button for the smiley face play button. This will play all the sounds that are NOT selected. Make sure there is a 0 (zero) in the Loop box at the bottom of the Controls, Options, Play window. This will play the loop an infinite number of times, or, until you press the blue Stop button.
Sound help – image 10Now place the left selection by clicking with the left mouse button. The waves to the left of the selection go dark (unselected). Then move the cursor to the right and make the end selection by pressing the right mouse button. The waves to the right of the selection go dark (unselected). Now press the smiley face green Play button, and you will hear only to the unselected (dark) parts of the sound. By left clicking on the left side, as the sound plays, you can adjust the start of the edit until it blends properly with the end edit point. Or, you can right click the right edit point and move it until it blends properly. You may have to adjust both points to get it to sound right. It takes a loop cycle or two for GoldWave to catch up with the position changes you make to these markers. The idea is to make it sound like one continuous short sound, without any wavering, abrupt changes or clicks. What I try to do is look for a couple of low points in the wave shape, and place my start and end edit points on those low points, hoping they match.
Sound help – image 11When you're satisfied with the way it sounds, you can delete the middle (selected, highlighted) part of the sound, either by going to Edit, Delete, or by clicking on the Delete button on the toolbar. Now you have a one second sound sample. Push the smiley face Play button to make sure it's still OK.
Sound help – image 12You have one chance at Edit, Undo Delete (or Undo on the toolbar), which will restore the sound as it was before the delete operation. Otherwise, give it a name and save it.If there's a click that you notice later, you can open this file in GoldWave, and do the same as above, and narrow in on just the click. When you find it, delete it and Save.Go back to Options, Controls, and select the radio button for Selection for the smiley button. Look for a couple of low points again. Place a start selection point (left mouse click) on the beginning of what will become the start of the continuous loop, and another one on the right (right mouse click). What you're doing is telling MSTS where to start the loop to continuously play the horn sound as long as the space bar is held down. The sound will start at the beginning, play through the first cue point, go to the second cue point, and return back to the first cue point, over and over between the cue points, until the space bar is released, then it will play through the last cue point and finish the sound, which fades off. So you want the piece between these two cue points to sound like a continuous sound, no variations in pitch or volume, and no clicks. This is how the long horn blast is created.
Sound help – image 13When you're satisfied with the way it sounds, left click on the first (left) cue point, go to the toolbar, Tools, Cue Points, in the Name box, put anything you want (I suggest a zero), Position is Start Marker, Description is anything you want (I suggest a zero), click on the ADD button.A little blue flag should appear at the bottom of the cue point on the wave graphic screen. Now the goofy part. Do the exact same thing you just did. This time, in the name box, put a number one, Position is Start Marker, Description is another number one, and click on the ADD button. Now, in the Cue List, highlight the first cue point you made (the zero) and delete it. This is because MSTS starts with cue #1, while GoldWave makes the first cue point a zero. So you have to make the zero cue point first, in order to make the #1 cue point, then delete the zero point, so MSTS doesn't get confused. Click OK. Left click on the end cue point, go to Tools, Cue Points, and do the same as you did for the other cue points, changing the numbers to 2. OK.
Sound help – image 14Give the file a name and save it. While it's still loaded, you can make the mono (external) version right now, so it will match the stereo version you just made. Go to File, Save As, and select 16 bit mono signed as the File Attributes, and add an x_ at the front of the file name. Save.You can optionally make one additional change to the x_horn.wav, the mono (external) horn. Load it into GoldWave, go to Effects, Volume, and reduce the volume to 85%. Then, go to Effects, Echo, and add just a bit of echo. I'd suggest starting with the delay at 0.1, volume at 40 (this is why you reduced the volume earlier), and put a checkmark in Reverb. OK, Save.
Sound help – image 15When adjusting the volume, it's important that you don't let the wave graphic go beyond the window top or bottom. This will exceed the limits of the wave envelope, and result in clipping, which is basically distorted sound. GoldWave will prevent you from exceeding the limits by chopping the tops and bottoms off the sound, but bring the quieter sounds up. Once the sound is clipped, you cannot un-clip it. You can reduce the volume, but you'll notice that the tops of the waves have all been clipped off. You will have to load the original file and start again.Clipped Sound Wave
Sound help – image 16Now you will want to add these sounds to your locomotive. First, copy and paste the two horn sounds you just made into the sound folder of the locomotive that you want to use them on. Then, in Wordpad, open the XXXcab.sms file (your locomotive name is likely where the XXX is here), which is located in the same folder. Even if you locomotive aliases the sounds from another locomotive, this will work. Find the line (there will be three of them) that plays the horn sound. Here's an example, using the default GP-38cab.sms:Stream (
Skip ( **** This stream allows the horn to be played at the same time **** )
Priority ( 6 )
Triggers ( 2
Discrete_Trigger ( 8 StartLoopRelease ( 1 File
( "gp_horn1.wav" -1 )
SelectionMethod ( SequentialSelection ) ) )
Discrete_Trigger ( 9 ReleaseLoopReleaseWithJump ( ) )
)
)Change the line that says ( "gp_horn1.wav" ) to the name of the file is that you just made. This line will appear three times in the XXXcab.sms file, so change all three to the new file name. There are three entries in order to play the sound files at the various Sound Quality settings in the Options of MSTS. Save.You will need to do this same edit to the XXXeng.sms, substituting the x_horn.wav for the one that is there. The XXXeng.sms file controls the outside sounds.After testing the sound in MSTS, if you think it's too loud, you can add a Volume statement. The variable is any number between 1.0 and 0.0.Here's an example of where to place a Volume statement:Skip (** This stream allows the air whistle to be played at the same time **)
Stream (
Priority ( 6 )
Volume ( 0.9 )
Triggers ( 2
Discrete_Trigger ( 8 StartLoopRelease ( 1 File
( "airwhistle4.wav" -1 )
SelectionMethod ( RandomSelection ) ) )
Discrete_Trigger ( 9 ReleaseLoopReleaseWithJump ( ) )
) )I'll post information about making other sounds for MSTS at a later date.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 7 posts

RE: sound help

The dense cue points have a sense.
Take the case of the whistle. When You release the spacebar (during playing) the sound is played up to the next cue point, then it goes to the final cue point and plays up to the end of the file.
If the next cue point is far away from the point where You release the spacebar, You will hear the whistle for a time which is long and also variable, depending where the sound was playing when You released the spacebar. If the cue points are dense sound time after spacebar release shall be shorter and also less varying in lenght.Carlo Santucci

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 247 posts

RE: sound help

Excellent tutorial Chuck! And I wish there was more explanation on the .SMS part from MS, that's my biggest headache! I had recently modified existing Dash 9 sounds to what I thought were more realistic and conservative loops with my WaveLab. But, when I realised the .SMS was relying on the original marker placement, I opened up the .SMS and was completely lost! Did you do some of the engine sound upgrades in the Library as well Chuck? I'm going to give those a whirl tonight to hopefully clean up this mess I made.

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 360 posts

RE: sound help

I have not done any of the modified engine sounds that are in the Library. I'm still floundering around in the .sms files myself, learning from my mistakes, and posting what I have learned. Hopefully, others will chime in with information that they have learned, like the response by Carlo Santucci about the dense cue points. If you learn anything in your Dash 9 modification attempts, please post your findings. It will help us all figure this out.My next addition to the tutorial (when time permits) will cover basic engine sounds (bell, air compressor, etc.) and basic Sound Source files for route placement.

Alert | IP


[ Home | MSTS Forum | MSTS FAQ | File Library ] Copyright © 2002 by Nels Anderson. All Rights Reserved.

Restored from the Train-Sim.Com archive, captured December 2, 2002. About this archive.