2019-02-20 snapshot

Post anything about MX Simulator here. Please. I'm begging you.
aaronr5
Posts: 593
Joined: Wed Dec 29, 2010 8:03 am
Team: DAM
Location: North Carolina

Re: 2019-02-20 snapshot

Postby aaronr5 » Sat Feb 23, 2019 5:05 am

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.

User avatar
AtlasZoor
Posts: 286
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Zimbabwe

Re: 2019-02-20 snapshot

Postby AtlasZoor » Sat Feb 23, 2019 6:47 am

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


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!
Image

aaronr5
Posts: 593
Joined: Wed Dec 29, 2010 8:03 am
Team: DAM
Location: North Carolina

Re: 2019-02-20 snapshot

Postby aaronr5 » Sat Feb 23, 2019 7:06 am

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!


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.

User avatar
aeffertz
Posts: 3524
Joined: Sat Sep 06, 2014 7:01 am
Team: W.B.G
Location: Wiscansin

Re: 2019-02-20 snapshot

Postby aeffertz » Sat Feb 23, 2019 9:13 am

I can't figure out how to save or convert audio to a .sw file.
Image

aaronr5
Posts: 593
Joined: Wed Dec 29, 2010 8:03 am
Team: DAM
Location: North Carolina

Re: 2019-02-20 snapshot

Postby aaronr5 » Sat Feb 23, 2019 9:46 am

aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.


I downloaded Awave Audio which lets you convert from pretty much any audio format but I think audacity might also let you save as .sw

User avatar
aeffertz
Posts: 3524
Joined: Sat Sep 06, 2014 7:01 am
Team: W.B.G
Location: Wiscansin

Re: 2019-02-20 snapshot

Postby aeffertz » Sat Feb 23, 2019 9:55 am

aaronr5 wrote:
aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.


I downloaded Awave Audio which lets you convert from pretty much any audio format but I think audacity might also let you save as .sw


Yeah, I found Awave as well but whenever I convert an mp3, it just sounds like static. Not sure what I'm messing up... :roll:
Image

User avatar
AtlasZoor
Posts: 286
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Zimbabwe

Re: 2019-02-20 snapshot

Postby AtlasZoor » Sat Feb 23, 2019 6:36 pm

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... :roll:


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.
Image

christianjonse
Posts: 351
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Postby christianjonse » Sat Feb 23, 2019 7:32 pm

am I able to record horn sounds? if so how? wanna try to get air horn sounds like from the mxgp games

christianjonse
Posts: 351
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Postby christianjonse » Sat Feb 23, 2019 7:57 pm

also how would I get it to work in game?

User avatar
Wahlamt
Posts: 7291
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: 2019-02-20 snapshot

Postby Wahlamt » Sat Feb 23, 2019 9:00 pm

christianjonse wrote:also how would I get it to work in game?

Have you looked at the example?

christianjonse
Posts: 351
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Postby christianjonse » Sat Feb 23, 2019 9:16 pm

Wahlamt wrote:
christianjonse wrote:also how would I get it to work in game?

Have you looked at the example?

Yea but do I still use notepad++?

User avatar
AtlasZoor
Posts: 286
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Zimbabwe

Re: 2019-02-20 snapshot

Postby AtlasZoor » Sat Feb 23, 2019 9:54 pm

christianjonse wrote:Yea but do I still use notepad++?


yes. just save it as a Js file.
Image

jlv
Site Admin
Posts: 13383
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2019-02-20 snapshot

Postby jlv » Sun Feb 24, 2019 2:27 am

aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.

Just export as mono 16 bit signed PCM with no header. You can definitely do that in Audacity.
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.

christianjonse
Posts: 351
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Postby christianjonse » Sun Feb 24, 2019 5:05 am

jlv wrote:
aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.

Just export as mono 16 bit signed PCM with no header. You can definitely do that in Audacity.

Hey jlv what do I do to implement air horn sounds?

User avatar
BcMxKx37
Posts: 1306
Joined: Sun Jun 02, 2013 5:20 am
Location: Costa Mesa, CA
Contact:

Re: 2019-02-20 snapshot

Postby BcMxKx37 » Sun Feb 24, 2019 8:16 am

christianjonse wrote:
jlv wrote:
aeffertz wrote:I can't figure out how to save or convert audio to a .sw file.

Just export as mono 16 bit signed PCM with no header. You can definitely do that in Audacity.

Hey jlv what do I do to implement air horn sounds?

he just told you
Image


Return to “General Discussion”

Who is online

Users browsing this forum: aeffertz and 4 guests