|
ASTi Application Note 39: How to Convert .WAV Files for Use with Model Builder
A *.WAV file (or any other format, for that matter) is required to
be converted into .AU format (Sun/Next) to allow direct use within Model
Builder. There are various audio editing packages available however one
we recommend is 'Cool Edit'.
Since the initial writing of this application note, Adobe purchased the rights to the Cool Edit software & the resulting software is named Audition. The instructions below were written with Cool Edit in mind, so may not match the steps needed to do the same thing in Audition.
Assuming you use Cool Edit, the process is (relatively)
simple:
- Open the required .WAV file in Cool Edit.
- Ensure the sample rate is set to match the sample rate
of the model you want to run the soundfile in. The sample rate for the
file is shown on the first line of the summary box in the center of the
screen immediately below the displayed waveform. It may read something
like: "22050 / 16 bit / Mono".
- If the sample rate of your .WAV file does not match
you Model Builder Model the sample rate will need to be converted. To determine
the sample rate of the model see the MODELn CONFIGURATION WINDOW (where
n = model number) and check the line titled "Sample Rate". To convert
the sample rate to match the model do the following:
- Select the EDIT menu.
- Select CONVERT SAMPLE TYPE.
- Select the required sample rate (e.g. 8000) and click
OK.
- Now to convert the file type, select the FILE menu,
and select the SAVE AS option.
- Select SAVE AS TYPE.
- Choose the "Next/Sun(*.au,*.snd)" option.
- Ensure the bottom left tick box marked as SAVE EXTRA
NON_AUDIO INFORMATION is not selected.
- Select the OPTIONS box
- Ensure the "mu-Law 8-bit" option is selected and click
OK.
- Enter a suitable name for the file (8 characters or
less).
- Select SAVE.
- Copy this file to the A: drive, such that you can move
this to the DACS.
- At the DACS, change directory to the required soundfile
directory. This may be "C:\MBUILDER\USER\SOUNDS8" (for 8kHz samples), "C:\MBUILDER\USER\SOUNDS16"
(for 16kHz samples), or "C:\MBUILDER\USER\SOUNDS22" (for 22kHz samples),
typically. Note if you have customized your directory structure this may
be different.
- Copy the soundfile into the directory.
- This file is now usable in the same way as a file created
on the DACS. To insert the file into a model:
- From the MODEL'n' CONFIGURATION WINDOW (where 'n' =
model number), select F2 key to bring up the menu.
- Select 'soundFiles'.
- Select 'End' key to take you to the end of the existing
soundfile list.
- Select F2 to bring up the menu.
- Select 'aPend' to add the new soundfile to the end of
the current list.
- Select 'File' (this assumes you don't want to add it
into a new or existing Soundfile Group).
- Change the 'Identifier to the required name.
- Move the cursor down to the line titled 'Filename' and
select the 'Delete' key, followed by the 'Enter' key. This then lists the
files in the default soundfile directory. If necessary use the '..' selection
to move up directories, and move down by moving the cursor onto displayed
directories and selecting the 'Enter' key, until you locate the soundfile
added earlier. Move the cursor over the soundfile and select the 'Enter'
key. The soundfile will now be inserted into the model.
- Check the following in the lower portion of the page:
- 'File' is shown as 'Valid'.
- 'Sample Rate' matches the model rate.
- 'Format' is reported as '1'.
- If all is well then this file is ready to be used in
the model. If not, check the process used to convert the format, Items
5 to 11 given above.
|