Jump to content



Photo

New, Easier way to make a walk-up music file


  • Please log in to reply
64 replies to this topic

#41 MilkmanAnt

MilkmanAnt

    Rookie

  • Modders
  • 853 posts
  • Gender:Male
  • Location:Brooklyn, NY
  • Interests:Baseball, MVP

Posted 28 September 2007 - 11:29 PM

Thats not what to click on.... 1st of all did you make the batch file using this command in the notepad???

sx -sndstream *.mp3 -sa300 -crop1,335000 -fadeout1000 -=*.asf

Make sure you have your 86 mp3's, the SX.EXE file and the batch file in the same folder. If so, double click the batch file and your it will transform the mp3's into 8 sec. asf files.

Reply with further comments.
  • 0


#42 djjoe

djjoe

    Rookie

  • Members
  • 120 posts

Posted 29 September 2007 - 12:00 PM

thanks for your help milkmanant-yes,I made a folder and put evrything needed inside.I opened notepad and copied and pasted the command,but when I double click the notepad it just opens up.
  • 0

#43 MilkmanAnt

MilkmanAnt

    Rookie

  • Modders
  • 853 posts
  • Gender:Male
  • Location:Brooklyn, NY
  • Interests:Baseball, MVP

Posted 29 September 2007 - 01:15 PM

Let's see...did you copy the command to the notepad and saved it as

sxbatch.bat

Make sure you did that and saved it to your folder. Then you should have a batch file. Double click that and you should be minutes away from the next step.
  • 0

#44 djjoe

djjoe

    Rookie

  • Members
  • 120 posts

Posted 29 September 2007 - 03:57 PM

yes,I did.I renamed the notepad file with the command in it to sxbatch.bat. I then placed it inside my folder ,but when I doulble click on it it just opens the notepad and nothing happens.Thanks.
  • 0

#45 UncleMo

UncleMo

    Hall of Famer

  • Contributors +
  • 6,371 posts
  • Gender:Male

Posted 30 September 2007 - 01:50 AM

Glad to hear you got it working. When I first created new walkup music, I too found that it was louder than I liked. The set

In the command

sx -sndstream *.mp3 -sa300 -crop1,335000 -fadeout1000 -=*.asf

The -sa300 makes the sound 3 times louder than normal (i.e. 300%)

I found that making the sound 85% of normal sounded right. I could hear the walkup music but still hear the announcers at the same time.

To do this, the command would be as follows:

sx -sndstream *.mp3 -sa85 -crop1,335000 -fadeout1000 -=*.asf


I appreciate you bringing that part about the 300 down to a level that was easy to understand.

So that this can be used for other audio files, such as crowd4a.ast or anything else, what does this mean: "-crop1,335000 "
  • 0

#46 Jim825

Jim825

    Commissioner

  • Administrators
  • 3,871 posts
  • Gender:Male
  • Location:Shrewsbury, MA

Posted 30 September 2007 - 11:11 PM

That part indicates the length of the batter walkup music and where to start from.

-crop1,335000 means that you want to crop (i.e. shorten the song) and you want to start at frame 1 (the first frame) and you want the song to be 335000 frames long (8 seconds).

When I created walkup music for the 1978 mod and the upcoming 1956 mod, I played around and found that I could adjust the 8 second segment of a song I wanted to pick. To do this, I simply had to figure out where the starting frame should be (i.e. what value to put after the "crop" text.

If 335000 frames = 8 seconds, then that means 41875 frames = 1 second.
I simply listened to the song, determined how many seconds in I wanted the walkup music to start and then multiplied that number by 41875.

For example, if I wanted to skip the 1st 10 seconds of the song and then grab the next 8 seconds of the song for the walkup music, I would do the following:

10 seconds x 41875 frames / seconds = 418750 frames and the "crop" part of the command would look as follows:

-crop418750,335000

This means that you start cropping at frame 418750 and collect 8 seconds worth of the song.
  • 0

#47 UncleMo

UncleMo

    Hall of Famer

  • Contributors +
  • 6,371 posts
  • Gender:Male

Posted 30 September 2007 - 11:38 PM

I needed to know that.
I'm trying to use this for other audio files, and without that knowledge I'd be left to doing it the old way.

From your help all the way back a couple of years ago on the rookie.big to this, I thank you very much.
  • 0

#48 Jim825

Jim825

    Commissioner

  • Administrators
  • 3,871 posts
  • Gender:Male
  • Location:Shrewsbury, MA

Posted 30 September 2007 - 11:55 PM

Glad to help! :)
  • 0

#49 djjoe

djjoe

    Rookie

  • Members
  • 120 posts

Posted 01 October 2007 - 08:33 PM

anybody have an idea why my batch file doesnt do anything when I double click.It just stays in notepad.Thanks.
  • 0

#50 Jim825

Jim825

    Commissioner

  • Administrators
  • 3,871 posts
  • Gender:Male
  • Location:Shrewsbury, MA

Posted 02 October 2007 - 01:55 AM

It could be that somehow Windows Explorer has file types of .bat configured to open with Notepad.

What you could do is open a DOS window (i.e. Command Prompt window), go to the folder where you have the batch file and run it "manually" by typing in the name of the batch file (without the .bat extension) and then pressing the Enter key. That's the way that I usually run batch files (so that I can see error messages if there are any problems).
  • 0

#51 djjoe

djjoe

    Rookie

  • Members
  • 120 posts

Posted 10 November 2007 - 05:55 PM

thanks guys,I finally got my batch file to work,but while working on first file,the SX.EXE encounters an error.Any idea?Thanks.
  • 0

#52 UncleMo

UncleMo

    Hall of Famer

  • Contributors +
  • 6,371 posts
  • Gender:Male

Posted 18 November 2007 - 08:11 PM

I happen to have a technical question.
A lot of other audio files have a filler file, as described here. What becomes of that file? For example, let's say I am working on the crowd4a.ast file, I create all of my new sound files (85 total), and I use this method. What becomes of this 86th file mentioned in the link above?
  • 0

#53 MilkmanAnt

MilkmanAnt

    Rookie

  • Modders
  • 853 posts
  • Gender:Male
  • Location:Brooklyn, NY
  • Interests:Baseball, MVP

Posted 01 December 2007 - 10:11 PM

When I use the NHL Packing program on Vista, it says the it cant find the batdit.abk file so I cant unpack the file.
  • 0

#54 UncleMo

UncleMo

    Hall of Famer

  • Contributors +
  • 6,371 posts
  • Gender:Male

Posted 02 December 2007 - 08:06 PM

Piece. Of. Crap. I should never have gotten my hopes up like that.
Everything worked until I played my game. It froze my game at the start of the bottom of the 1st.

Second try: I then made sure I was only using non modded crowd4a.ast and .abk files, and it still froze my game when the second batter at the top of the 1st came up to the plate.
Nothing like hearing:
"One down one down one down One down one down one down One down one down one down" over, and over, and over again. FROZEN!

Screw it. I'm done.
  • 0

#55 mikewienerm

mikewienerm

    Rookie

  • Members
  • 147 posts

Posted 28 December 2007 - 05:09 PM

I got the 86 mp3's into a new folder, i put the sx.exe in that folder, and i created the sxbatch file. when i click on the sxbatch file it does not open. i have it in .bat form
  • 0

#56 Sean12131982

Sean12131982

    Rookie

  • Members
  • 156 posts
  • Location:Toronto
  • Interests:Baseball Stats

Posted 29 February 2008 - 01:40 PM

I do not have the Multiple Rename option when I right click on the selected music files. Is there another way to do this step?


I noticed this wasn't replied to but I am having the same problem. Any help would be great.

Thanks
  • 0

#57 Sean12131982

Sean12131982

    Rookie

  • Members
  • 156 posts
  • Location:Toronto
  • Interests:Baseball Stats

Posted 01 March 2008 - 03:39 AM

Okay got it all done. I have my 86 songs in the game and under the right genres. But....

I'm finding it loud and also the clips are shorter esp. when a homerun is hit, the music stops after a couple of seconds, unlike how it was before I did this. Is there a way to go and extend the length of the clips to the same lengths they were before using the method at the start of this thread?

Hope my question makes sense.

I know I could just go back and use the command
sx -sndstream *.mp3 -sa300 -crop1,335000 -fadeout1000 -=*.asf and change the -sa300 to -sa100 and also the crop number but to do it individually for 86 songs would take quite a while. So I was wondering if there is a quicker way.
  • 0

#58 Sean12131982

Sean12131982

    Rookie

  • Members
  • 156 posts
  • Location:Toronto
  • Interests:Baseball Stats

Posted 02 March 2008 - 03:02 AM

Don't worry....I figured it all out.

Thanks for all the info given in this thread really helped.
  • 0

#59 MilkmanAnt

MilkmanAnt

    Rookie

  • Modders
  • 853 posts
  • Gender:Male
  • Location:Brooklyn, NY
  • Interests:Baseball, MVP

Posted 03 March 2008 - 10:49 PM

Yes, each genre has its own range:

00001 to 00010 - Country
00011 to 00030 - Dance
00031 to 00045 - HipHop
00046 to 00055 - Pop
00056 to 00064 - Rock
00065 to 00073 - Heavy Rock
00074 to 00086 - Latin


I know certain numbers are for homeruns. I know 53 and anyone know the rest?
  • 0

#60 themadhatter

themadhatter

    Rookie

  • Members
  • 9 posts

Posted 11 August 2008 - 08:56 PM

When I use Nhl07_Ast_Pack_11 i always get the error
Address: 3585024 not found in abk
What does this mean and how can I fix it?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users