2019-02-20 snapshot

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

Re: 2019-02-20 snapshot

Post by aaronr5 »

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.
AtlasZoor
Posts: 370
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: 2019-02-20 snapshot

Post by AtlasZoor »

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!
If you like my tracks and wanna support, paypal or venmo @evanwebb110
Image
aaronr5
Posts: 596
Joined: Wed Dec 29, 2010 8:03 am
Team: DAM
Location: North Carolina

Re: 2019-02-20 snapshot

Post by aaronr5 »

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.
aeffertz
Posts: 4039
Joined: Sat Sep 06, 2014 7:01 am
Team: Studio ATE
Location: Wiscansin

Re: 2019-02-20 snapshot

Post by aeffertz »

I can't figure out how to save or convert audio to a .sw file.
Image
aaronr5
Posts: 596
Joined: Wed Dec 29, 2010 8:03 am
Team: DAM
Location: North Carolina

Re: 2019-02-20 snapshot

Post by aaronr5 »

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
aeffertz
Posts: 4039
Joined: Sat Sep 06, 2014 7:01 am
Team: Studio ATE
Location: Wiscansin

Re: 2019-02-20 snapshot

Post by aeffertz »

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
AtlasZoor
Posts: 370
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: 2019-02-20 snapshot

Post by AtlasZoor »

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.
If you like my tracks and wanna support, paypal or venmo @evanwebb110
Image
christianjonse
Posts: 420
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Post by christianjonse »

am I able to record horn sounds? if so how? wanna try to get air horn sounds like from the mxgp games
christianjonse
Posts: 420
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Post by christianjonse »

also how would I get it to work in game?
Wahlamt
Posts: 7956
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: 2019-02-20 snapshot

Post by Wahlamt »

christianjonse wrote:also how would I get it to work in game?
Have you looked at the example?
christianjonse
Posts: 420
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Post by christianjonse »

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++?
AtlasZoor
Posts: 370
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: 2019-02-20 snapshot

Post by AtlasZoor »

christianjonse wrote:Yea but do I still use notepad++?
yes. just save it as a Js file.
If you like my tracks and wanna support, paypal or venmo @evanwebb110
Image
jlv
Site Admin
Posts: 15129
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2019-02-20 snapshot

Post by jlv »

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: 420
Joined: Fri Oct 27, 2017 8:36 pm
Team: Privateer

Re: 2019-02-20 snapshot

Post by christianjonse »

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?
BcMxKx37
Posts: 1758
Joined: Sun Jun 02, 2013 5:20 am
Team: Phil's
Location: Costa Mesa, CA
Contact:

Re: 2019-02-20 snapshot

Post by BcMxKx37 »

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
Post Reply