Train-Sim.Com
MSTS Sound Design

DCForum Discussion Forum - How do I control the repeat rate of a .wav file?

DCForum Discussion Forum - How do I control the repeat rate of a .wav file? – image 1

DCForum Discussion Forum

Previous Topic | Next Topic

Printer-friendly copy Email this topic to a friend

Reading Topic #110

Charter Member · 255 posts

I've made a couple of flange squeal sound sources, that I intend to place near sharp curves. So that it doesn't sound like a loop, I've added around 20 seconds of silence to the loop. It sounds fine, but makes a large .wav file. The actual squeal without silence added is 36k, but with silence it's 921k. Can someone please tell me how to control the repeat rate of a .wav file? I would assume this can be done in the .sms file.

Alert | IP

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

Charter Member · 428 posts

RE: How do I control the repeat rate of a .wav file?

If you are worried about your HD space, I can't help, but if it's upload/downloads, no problem. Zip it up and see the size! The silence compresses to nothing, at least that's the way it worked in my beach waves and seagulls files.Steve

Alert | IP

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

Charter Member · 255 posts

RE: How do I control the repeat rate of a .wav file?

I'm not concerned too much about HD space, but was concerned about memory allocation. I'm not extending the ambience of the sound, but plugging in "silence" (Gold Wave\Edit\Insert Silence). Does silence take up memory?

Alert | IP

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

Charter Member · 148 posts

RE: How do I control the repeat rate of a .wav file?

Who really knows, but I think that the .wav files are stored in native format in memory so the memory usage and file size are the same (well near enough).You say you have created sound sources ie placed as those pillars in the RE. How are they activated by the train?Oh yes, an answer to your actual question You seem to imply your using the StartLoop function. Why not use a RandomTrigger? Look in a wagon .sms file to see how its used. Use a time range of, say, 15 to 25 seconds and your squeal .wav with no silence added. You will then also be able to get variable volume level.

Alert | IP

Restored from the Train-Sim.Com archive, captured November 26, 2002. About this archive.