view wiki/AIMCopyExamples.wiki @ 705:be2b68ced23d

Make the C++ SAI match the Matlab implementation. - Fix syntax error which caused a linear window to be used instead of the correct sine window. - Correct off-by-one indexing errors to compensate for 1-based indexing in Matlab. - Enable test to verify that the C++ output matches Matlab with high precision.
author ronw@google.com
date Tue, 16 Jul 2013 19:56:16 +0000
parents fce57e24aab2
children
line wrap: on
line source
#summary Quick examples of how to use AIMCopy for various tasks.

All examples assume a working directory of the root of the AIM-C source tree.

== SAI movie ==

Making a movie of the stabilized auditory image for every file in script.scp using the configuration provided in
[http://code.google.com/p/aimc/source/browse/trunk/src/Configurations/SAI_movie.aimcconfig src/Configurations/SAI_movie.aimcconfig].

Command-line:
{{{
build/darwin-release/AIMCopy -C src/Configurations/SAI_movie.aimcconfig -S script.scp
}}}

The contents of script.scp are simple. For example the following script will take sa1.wav sa2.wav and sa3.wav in the working directory and convert them to sa1.mov sa2.mov and sa3.mov respectively. (The .mov suffix is added by the graphics_time module).
{{{
sa1.wav sa1.
sa2.wav sa2.
sa3.wav sa3.
}}}

== Raw SAIs ==
Calculate stabilized auditory images for files in script.scp using the configuration from [http://code.google.com/p/aimc/source/browse/trunk/src/Configurations/SAI_dump.aimcconfig src/Configurations/SAI_dump.aimcconfig]

Command-line:
{{{
build/darwin-release/AIMCopy -C src/Configurations/SAI_dump.aimcconfig -S script.scp
}}}

In this case, the files are in the [AIMCDataFormat AIM-C data format] and will be *very large* (ca. 100Mb for a 5-second sound).