2019-02-20 snapshot
Re: 2019-02-20 snapshot
Also question for jlv, what is the second parameter for mx.set_sound_loop()? I couldn't figure it out I just know it didn't work for me without it a second parameter.
Re: 2019-02-20 snapshot
hey thanks man that worked. I appreciate your help. I feel pretty stupid so hopefully I can get better at this. Also, have you noticed any distortion in your sounds at all? I have a quick sample with some birds chirping and slight wind, and the wind is pretty distorted while the birds seam unaffected. I have set the frequency's correct according to how I save in audacity, so im not sure what is wrong. Anyways thanks for the help!aaronr5 wrote:That would not work. The first problem is you are not calling mx.start_sound(g_ambient) any where in the script so the sound will never play. Second you have some invalid JavaScript here. You are opening a block on the first line after you declare your variables which should not be there. Something like this would make a sound loop and follow the camera. Not sure if this is the best way but it worked for me.
code
Re: 2019-02-20 snapshot
I haven't noticed any distortion in my sounds. But I have only done a gate drop sound so far so its a pretty short sound clip. I don't know much about audio stuff myself so maybe jlv could answer that better than me.AtlasZoor wrote: hey thanks man that worked. I appreciate your help. I feel pretty stupid so hopefully I can get better at this. Also, have you noticed any distortion in your sounds at all? I have a quick sample with some birds chirping and slight wind, and the wind is pretty distorted while the birds seam unaffected. I have set the frequency's correct according to how I save in audacity, so im not sure what is wrong. Anyways thanks for the help!
Re: 2019-02-20 snapshot
I downloaded Awave Audio which lets you convert from pretty much any audio format but I think audacity might also let you save as .swaeffertz wrote:I can't figure out how to save or convert audio to a .sw file.
Re: 2019-02-20 snapshot
Yeah, I found Awave as well but whenever I convert an mp3, it just sounds like static. Not sure what I'm messing up...aaronr5 wrote:I downloaded Awave Audio which lets you convert from pretty much any audio format but I think audacity might also let you save as .swaeffertz wrote:I can't figure out how to save or convert audio to a .sw file.
Re: 2019-02-20 snapshot
What sound are you trying to do? I think you may be converting it correctly. I think any lower pitch noises get distorted to static. When I first got the sounds working I had a wind ambient noise and it was static as you describe. But the higher pitch bird chirps were ok, but still had some static.aeffertz wrote: Yeah, I found Awave as well but whenever I convert an mp3, it just sounds like static. Not sure what I'm messing up...
-
- Posts: 420
- Joined: Fri Oct 27, 2017 8:36 pm
- Team: Privateer
Re: 2019-02-20 snapshot
am I able to record horn sounds? if so how? wanna try to get air horn sounds like from the mxgp games
-
- Posts: 420
- Joined: Fri Oct 27, 2017 8:36 pm
- Team: Privateer
Re: 2019-02-20 snapshot
also how would I get it to work in game?
Re: 2019-02-20 snapshot
Have you looked at the example?christianjonse wrote:also how would I get it to work in game?
Discord: StorkeN#6883 - StorkenMXS Youtube - StorkenMXS Instagram - StorkenMXS Facebook - TMFR on Faceboook
-
- Posts: 420
- Joined: Fri Oct 27, 2017 8:36 pm
- Team: Privateer
Re: 2019-02-20 snapshot
Yea but do I still use notepad++?Wahlamt wrote:Have you looked at the example?christianjonse wrote:also how would I get it to work in game?
Re: 2019-02-20 snapshot
yes. just save it as a Js file.christianjonse wrote:Yea but do I still use notepad++?
Re: 2019-02-20 snapshot
Just export as mono 16 bit signed PCM with no header. You can definitely do that in Audacity.aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
-
- Posts: 420
- Joined: Fri Oct 27, 2017 8:36 pm
- Team: Privateer
Re: 2019-02-20 snapshot
Hey jlv what do I do to implement air horn sounds?jlv wrote:Just export as mono 16 bit signed PCM with no header. You can definitely do that in Audacity.aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.
Re: 2019-02-20 snapshot
he just told youchristianjonse wrote:Hey jlv what do I do to implement air horn sounds?jlv wrote:Just export as mono 16 bit signed PCM with no header. You can definitely do that in Audacity.aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.