Music Importing Tutorial

From Luma's Workshop
Jump to navigation Jump to search
This page is in progress and may contain incomplete information or editor's notes.

Todo:

  • Multichannel songs
  • Titlescreen
  • Sequenced music
  • Soundeffects

Music Importing

This tutorial will teach you how to import streamed music files.
The music is usually stored in AST files and are found in the AudioRes\Stream directory.

Look here for a list of all music filenames.

Preparing

Requirements:

  • ASTCreate converter tool
  • Audio tool for finding the loop point (Audacity, Brawlbox)
  • A .wav file

Set Up

Since ASTCreate is a line command tool, we simply create a .bat file to make everything easier and faster:

  • Create a text file (.txt) in the ASTCreate folder (give it a recognizable name like "Wav2Ast")
  • Open the text file and paste the following:
@ECHO OFF
echo Enter your loop point:
set /P LoopPoint=
"%~dp0ASTCreate.exe" %1 -o %1.ast -s %LoopPoint%
pause
  • Save the text file and change its extension from "txt" to "bat"

Conversion

Music Editing

Open your wav file in an audio tool such as Audacity to edit your song (making it louder, removing unwanted parts, etc.). You can also use it to find your loop point for looping the song.

A loop is the section of the song that replays over and over. When the song ends, it does not play the song from the beginning, instead it will start at a set position in the song. And that position is the loop point we need. (To be more exact, it consist of two values, the start and the end point, but since the end point is usually at the end of the song, we don't need to note it. AstCreate will automaticaly insert the end point for us.)

If you don't have a loop point, the song will simply start from the beginning if the song is over.


Tipp: Brawlbox has a very useful loop point finding tool. Go to File->New->Audio->BRSTM Audio Stream and select your wav file. The "Start" value will be your loop point.

Converting

  • Drag and drop your wav file onto the .bat file you created
  • A command prompt opens and asks you for the loop point. Enter it and press enter
    • Your ast file will be created in the same directory as your wav file
  • Replace one of the ast files from the AudioRes\Stream with yours

Done!