Author Topic: New Music tbl  (Read 2739 times)

0 Members and 1 Guest are viewing this topic.

Offline Dilmah G

  • Failed juggling
  • 211
  • Do try it.
GARRGHHH!

Okay, I'm running into some trouble here trying to create my own soundtrack, I'm using licence-free files (THANK YOU FREEPLAY!), I've followed the guide on the wiki and replace the ambience and battle tracks, however once the first track plays, none of the others seem to, and its really a one track wonder before my soundtrack is only really the thumping of the engine, ill copy the entry if it helps anyone


#SoundTrack Start
$Soundtrack Name: 8: Custom1
$Name: Lost.ogg 103.0 176400
$Name: FS2_AArv_A01.wav 1.8 105840 ; * Allied Arrival during Normal
$Name: FS2_Arv_E02.ogg 1.8 294000
$Name: Hour of Need.ogg 90.0 176400
$Name: Slowdive.ogg 72.5 176400
$Name: Creep.ogg 82.5 176400
$Name: FS2_AArv_A01.wav 1.8 105840 ; * Allied Arrival during Battle
$Name: FS2_Arv_E02.ogg 1.8 294000
$Name: FS2_Vict_A01.ogg 2.8 105840
$Name: FS2_Vict_A02.ogg 30.8 105840
$Name: Abandoned.ogg 60.0 176400 ; * Goal Failed
$Name: FS2_Dth_A01.wav 23.8 132300 ; * Player dies
#SoundTrack End



 

Offline Angelus

  • 210
  • The Angriest Angel
I tried that myself and failed epical.

*awaits anxious for a helping reply*

 

Offline ShadowGorrath

  • Not funny or clever
  • 211
What are the lengths of the tracks and what are their... bit rates? Ehh, the number in Hz ( like 44100Hz is the usual, etc. ).

 

Offline Dilmah G

  • Failed juggling
  • 211
  • Do try it.
What are the lengths of the tracks and what are their... bit rates? Ehh, the number in Hz ( like 44100Hz is the usual, etc. ).

They're all 44100,

Lost- 3:27
Hour of Need- 3:00
Slowdive- 2:35
Creep- 2:45

EDIT: Oh yeah, Abandoned is- 2:00

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
I wouldn't focus on trying to get the numbers 'right'. Last I knew, the numbers in music.tbl were known to not work properly for OGG files, but the decision was made not to fix them in the code because it was considered to be too much work or not really possible and that modders should figure them out themselves (through guess and check, I guess).

I would try shortening and lengthening the numbers and see which one works best, or if that helps the problem at all.

The wiki does look like it might have the right equation for wave files; the only thing I don't trust about it is that "2". I don't remember off the top of my head if that's appropriate for both stereo and mono files, or if it'll only work for stereo files.
-C

  

Offline Dilmah G

  • Failed juggling
  • 211
  • Do try it.
I wouldn't focus on trying to get the numbers 'right'. Last I knew, the numbers in music.tbl were known to not work properly for OGG files, but the decision was made not to fix them in the code because it was considered to be too much work or not really possible and that modders should figure them out themselves (through guess and check, I guess).

I would try shortening and lengthening the numbers and see which one works best, or if that helps the problem at all.

The wiki does look like it might have the right equation for wave files; the only thing I don't trust about it is that "2". I don't remember off the top of my head if that's appropriate for both stereo and mono files, or if it'll only work for stereo files.

Okay, well all of my files are stereo, I'll try shortening the numbers

EDIT: Screw that, I'll export them all again as .wav's, soo not worth the xtra effort with .oggs

EDIT: GAY! STILL NOT WORKING! GARRRGH!
« Last Edit: January 16, 2009, 03:19:47 am by Dilmah G »

 

Offline Krelus

  • 28
http://www.hard-light.net/wiki/index.php/Music.tbl#Music_Tracks

As someone who has successfully added about six or seven OGG based soundtracks, YES. The numbers matter. The equation listed there is correct. I am unsure as to where that 2 comes from, but that's what works, and who am I to argue with that?

Follow the directions there to the letter. It's basic algebra.

 

Offline ShadowGorrath

  • Not funny or clever
  • 211
I've also added multiple fully working soundtracks. To me, they all work. Half the length in seconds for the first number, and the second is usually 176400 if I remember right. Never had real problems with this.

 

Offline Dilmah G

  • Failed juggling
  • 211
  • Do try it.
That's what I've been doing, anyway...

I'll double check and make sure

EDIT: w00t4t10n! it like....worked! I doubled checked them, but I realised some of the tracks had spaces in their names, so I replaced with underscores, and their fine now

« Last Edit: January 16, 2009, 07:51:27 pm by Dilmah G »

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
http://www.hard-light.net/wiki/index.php/Music.tbl#Music_Tracks

As someone who has successfully added about six or seven OGG based soundtracks, YES. The numbers matter. The equation listed there is correct. I am unsure as to where that 2 comes from, but that's what works, and who am I to argue with that?

Follow the directions there to the letter. It's basic algebra.

Woah. I never said that the numbers didn't matter, I just said that they were wrong. When I last checked, they contradicted the values given by foobar, Audacity, and dBPowerAmp, and when I discussed it with taylor, he ignored that issue and told me that it was up to the modders to get it right. That is the basis I was going on.

Having played around with that formula, it looks like the formula gets the numbers wrong in foobar (I don't have Audacity or dB installed) by a factor of 2. You could account for this by saying that the "2" is the number of bytes, or the number of channels (stereo or mono) but one or both of those would depend on the ogg/wave file and would be invalidated for certain types of files. Now, I suppose you could arbitrarily call this "Freespace 2's number for music length, and here's the formula" and there would be no ambiguity, but if you're going to call it "samples per measure", then it had better be samples per measure. Especially when it contradicts three separate dedicated audio programs. Otherwise all it does is serve as a barrier to anybody who actually does work with audio, which is pretty bad design for an audio interface.

However, you're right that this is pretty much a "it just works" issue now, rather than a "what's right?" one since people have used it for release.
« Last Edit: January 16, 2009, 09:35:46 pm by WMCoolmon »
-C

 

Offline Krelus

  • 28
http://www.hard-light.net/wiki/index.php/Music.tbl#Music_Tracks

As someone who has successfully added about six or seven OGG based soundtracks, YES. The numbers matter. The equation listed there is correct. I am unsure as to where that 2 comes from, but that's what works, and who am I to argue with that?

Follow the directions there to the letter. It's basic algebra.

Woah. I never said that the numbers didn't matter, I just said that they were wrong. When I last checked, they contradicted the values given by foobar, Audacity, and dBPowerAmp, and when I discussed it with taylor, he ignored that issue and told me that it was up to the modders to get it right. That is the basis I was going on.

Having played around with that formula, it looks like the formula gets the numbers wrong in foobar (I don't have Audacity or dB installed) by a factor of 2. You could account for this by saying that the "2" is the number of bytes, or the number of channels (stereo or mono) but one or both of those would depend on the ogg/wave file and would be invalidated for certain types of files. Now, I suppose you could arbitrarily call this "Freespace 2's number for music length, and here's the formula" and there would be no ambiguity, but if you're going to call it "samples per measure", then it had better be samples per measure. Especially when it contradicts three separate dedicated audio programs. Otherwise all it does is serve as a barrier to anybody who actually does work with audio, which is pretty bad design for an audio interface.

However, you're right that this is pretty much a "it just works" issue now, rather than a "what's right?" one since people have used it for release.

First, I'd like to apologize for the somewhat snippy tone of my previous post. I was in a bit of a poor mood at the time and I apologize (I loathe my college's Advisement office :wtf:)

But yeah, I use Audacity and I was confused for a while as to why my tracks kept cutting out halfway through... It might just be some little glitch in the development process, idk.