AtsFile:
Filter:
Classes (extension) | Libraries > JoshUGens | UGens > Analysis:Synthesis

AtsFile : File : UnixFILE : IOStream : Stream : AbstractFunction : Object
ExtensionExtension

For working with ATS file data
Source: AtsFile.sc
 

Description

ATS (Analysis-Transformation-Synthesis) files are analysis files created using Oscar DeLiscia, Juan Pampin and Pete Moss's atsa command-line analysis tool (available at http://www.dxarts.washington.edu/ats). The analysis of the sound first attemps to track and record frequency data into sinusoidal partials. Then, any sound that couldn't be analyzed into partial information is analyzed as noise information. The information can then be tranformed and resynthesized using this information.

Once installed, type atsa at the command line to see flag options and usage.

An example from within the SuperCollider_f directory:

    atsa sounds/a11wlk01.wav sounds/a11wlk01.ats -H5000

-H5000 limits the analysis to frequencies below 5kHz.

Class Methods

AtsFile.new(path, server)

Load an ATS file into memory at path with buffer number bufnum. server defaults to Server.default.

Arguments:

path

Path to the ats file.

server

Server.

AtsFile.load(path, server)

Loads the information of the ATS file into a buffer for use by the AtsSynth UGens. If buffer is nil, one will be allocated for you. Only for real-time usage.

Arguments:

path
server

Inherited class methods

Instance Methods

.data

.load(buffer)

Loads the information of the ATS file into a buffer for use by the AtsSynth UGens. If buffer is nil, one will be allocated for you. Only for real-time usage.

Arguments:

buffer

Buffer to use for loading the ATS file.

.frameSize

.saveForSC(path)

Save the ATS file as an AIFF that can be loaded into a buffer (for NRT and fast loading file data in real-time)

Arguments:

path

Path to the saved file.

.save(path)

Arguments:

path

.readData

.freqMax

.removeZeroFreqs

.freeBuffer

Releases the ATS buffer.

.getBandNoi(band)

Arguments:

band

.asControlInput

.path

.init(argpath, argserver)

Arguments:

argpath
argserver

.getParTime(par)

Arguments:

par

.getParFreq(par)

Arguments:

par

Returns:

An array of frequencies of partial number par (starting with 0) per frame of analysis.

.ampMax

.header

.sndDur

.getFrameAmp(frame)

Arguments:

frame

Returns:

An array of amps for a given frame (starting with 0).

.getParPhase(par)

Arguments:

par

.getParAmp(par)

Arguments:

par

Partial number.

Returns:

An array of amplitudes of partial number par (starting with 0) per frame of analysis.

.getFramePhase(frame)

Arguments:

frame

.winSize

.checkMN

.getFrameNoi(frame)

Arguments:

frame

.numPartials

.buffer

.asUGenInput

.atsType

.numFrames

.bufnum

.sr

.readHeader

.loadToBuffer(buffer)

Arguments:

buffer

.getFrameFreq(frame)

Arguments:

frame

Frame number.

Returns:

An array of frequencies for a given frame (starting with 0).

Inherited instance methods

Examples