News:

Rings of Reznor!

Main Menu

The Sound of Music

Started by BentonGrey, August 28, 2011, 07:55:56 PM

Previous topic - Next topic

BentonGrey

Nevermind, I figured it out.  You don't need the "Sounds" in your directory entry.  All you need is "Musak\filename."
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

cmdrkoenig67


BentonGrey

Quote from: cmdrkoenig67 on August 29, 2011, 12:34:11 AM
Wha-?!

Haha, creating new entries for music, the file path does NOT have to include the sound folder or anything before it.  You merely need to put your music in the "Musak" folder, and start your file path there.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

cmdrkoenig67


ow_tiobe_sb

Rumour has it that the hills are alive with it, but I prefer to think that the rain in Spain stays mainly in the plain.

ow_tiobe_sb
Phantom Bunburyist and Whirled Braker
Two words: Moog.

BentonGrey

I am having a different issue now, though.  I set a song to play in the beginning of the mission, and it runs its course but doesn't repeat.  How can I get new mission music to loop?
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

ow_tiobe_sb

I will preface myself by indicating that the following advice could be completely incorrect.  Based on my reading of the "Freedom Force Scripting Guide 1.0" document, I would say you would need to first set up a sound object and then call it using the appropriate sound command (e.g., Sound PlayMusic(NAME)).  Include in that sound object the loop() attribute.  For example:

import sound
tpb_music = sound.load('backup_mutha')
tpb_music.loop()


I now invite Dana or Prem to demonstrate the twelve different ways in which this is bad advice. ;)

ow_tiobe_sb
Phantom Bunburyist and Whirled Braker
Two words: Moog.

BentonGrey

Hmm...thanks Tiobe...it seems that setting up a sound entry would make sense, but I can only call things in EZScript from the resources tab.  What would the naming convention be to tie a sound and resource entry together?
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

BentonGrey

Ahh!  I've got it!  Music entries DO have to follow the naming convention of existing music.  It has to be music_FILENAME1, or some such.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

cmdrkoenig67

#9
All of the in-game music is on the Resources tab and yes, they have to be named music_filename.  That's where and how I set my music files up for my mods.

I didn't use the Sounds tab at all when setting up music files.  I did use it for a map once, by making a music file a sound file and having it be a global sound on the map (but that was before I started the mods, a few years ago).

Dana

BentonGrey

#10
Bah!  I still can't get custom music to keep playing when I call it in a mission.  Any suggestions guys?  I've got the music built-in via the resource tab, but when I call it, the song plays through once, it doesn't loop like the built-in mission music does.
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

cmdrkoenig67

I've had that problem in one of my mod's missions too...The music I have also only plays once and doesn't loop.  I don't know what to tell you, my friend.

Dana

Previsionary

you may have to summon python code just for music then.
Disappear when you least expe--

Outcast

I think you can find a similar discussion about looping custom music/mp3s here.

Quote...The original soundtrack loops ad infinitum just fine.  It is when I attempt to use a custom soundtrack that it only plays through once. -Torch

QuoteCustom mp3s are looping for me as well.  This is not an EZ script thing, but an issue with the game.  Make sure your mp3 is the same format as the in-game music (sample rate 44100, 2 channel stereo). -M25

QuoteThe music works fine now.   I changed my custom mp3's to be 2 channel stereo and that did the trick.  Thanks M25! - Torch

Hope that helps. :)



BentonGrey

Hey Outcast, I bet that's the issue!  Does anyone know how I can go about saving this in the proper format?
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

ow_tiobe_sb

Benton, if the tracks that are crisping your tatties are mine, just send me a list.  I'll convert them and see that you receive the updated versions with my apologies.

ow_tiobe_sb
Phantom Bunburyist and Whirled Braker
Two words: Moog.

BentonGrey

Crisping...my...tatties...?  Sure, I'll send you a list. :P
God Bless
"If God came down upon me and gave me a wish again, I'd wish to be like Aquaman, 'cause Aquaman can take the pain..." -Ballad of Aquaman
Check out mymods and blog!
https://bentongrey.wordpress.com/

Panther_Gunn

Quote from: BentonGrey on April 27, 2012, 02:19:58 PM
Crisping...my...tatties...?

Is that the same as frying your frenchies?
The Best There Is At What I Do......when I have the time.

ow_tiobe_sb

Quote from: Panther_Gunn on April 27, 2012, 02:35:01 PM
Is that the same as frying your frenchies?

Goodness, no!  That sounds so barbaric!

Check, Dr. Grey.  I'll set my mind to the task tonight.  It appears my mastering process defaults to "Joint Stereo," as opposed to just "Stereo," upon export.  This may be causing the problem.  Sorry for your troubles.

ow_tiobe_sb
Phantom Bunburyist and Whirled Braker
Two words: Moog.

Outcast

Quote from: BentonGrey on April 27, 2012, 04:03:01 AM
Hey Outcast, I bet that's the issue!  Does anyone know how I can go about saving this in the proper format?

I was interested to know how to do this too Benton. So I tried to find a few tutorials online. I found a few about how to convert mono to a 2 channel stereo using Audacity. But i was not sure if this was what you really needed. (or if they were any good at all.) :doh:

http://www.ehow.com/how_2131095_convert-mono-stereo.html

http://chacadwa.com/foh/mono-to-stereo-in-audacity

I'm also not sure if it's the same thing, but I've only tried changing the main menu music theme once. I used a song i recorded using Audacity and it seems to loop just fine. So i thought you could try recording the music again using Audacity with preferences to record using 2 channel stereo. :unsure: :wacko:

In any case, ow_tiobe_sb seems to have it all covered. Hope everything works out. :)