0
0

I am trying to do a simulation where we have gear grinding from a transmission. The simulation will go from where the gears are slipping alot to where eventually the gears will start meshing up and we will get no slippage. The sound should go from a rapid clicking sound, to a slow clicking sound, i.e. the gaps between the clicks is larger. I have some gear grinding samples, and I have tried using set frequency on the channel playing the sample but that does seem to be getting the job done. It does not seem like the gaps are increasing between the clicks the way I am expecting. Its ok if the click sound itself pitch decreases, what we are really looking for is a noticeable change in the frequency of the clicks (i.e. 10 clicks per second vs 30).

I guess I could try to pull out a single click, and try to stitch something together but my system is only running at 60 Hz, and I think we need about 180 clicks per second at the high end. Any suggestions?

  • You must to post comments
0
0

Hi dheitbri,

[quote:13c27dp7] Its ok if the click sound itself pitch decreases, what we are really looking for is a noticeable change in the frequency of the clicks (i.e. 10 clicks per second vs 30). [/quote:13c27dp7]
You should be able to achieve this by just setting the frequency to 1/3 of what it’s default value is.

[quote:13c27dp7] It does not seem like the gaps are increasing between the clicks the way I am expecting.[/quote:13c27dp7]
When using setFrequency the gap will be stretched but the click sound will also be stretched. To increase the gap without stretching the click sound you have to extract individual clicks as you suggested.

[quote:13c27dp7]I guess I could try to pull out a single click, and try to stitch something together but my system is only running at 60 Hz, and I think we need about 180 clicks per second at the high end. Any suggestions?[/quote:13c27dp7]
You can use Sound::setSubSoundSentence to queue up some sounds to be stitched together. This would allow you to queue up some ahead of time and the 60Hz update frequency wouldn’t be a limitation.

Another Alternative would be to just extract one click sound and pad the end of the sound with silence. Then play that as a looping sound using Sound::setLoopPoint to change the size of the gap between clicks.

Hope this helps,

-Pete

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.