AtsFile:
Filter:
sc3-plugins/Classes (extension) | Libraries > JoshUGens | UGens > Analysis:Synthesis

AtsFile
ExtensionExtension

For working with ATS file data
 

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

.new

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.

.load

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

Instance Methods

.data

.load

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

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

Arguments:

path

.readData

.freqMax

.removeZeroFreqs

.freeBuffer

Releases the ATS buffer.

.getBandNoi

Arguments:

band

.asControlInput

.path

.init

Arguments:

argpath
argserver

.getParTime

Arguments:

par

.getParFreq

Arguments:

par

Returns:

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

.ampMax

.header

.sndDur

.getFrameAmp

Arguments:

frame

Returns:

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

.getParPhase

Arguments:

par

.getParAmp

Arguments:

par

Partial number.

Returns:

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

.getFramePhase

Arguments:

frame

.winSize

.checkMN

.getFrameNoi

Arguments:

frame

.numPartials

.buffer

.asUGenInput

.atsType

.numFrames

.bufnum

.sr

.readHeader

.loadToBuffer

Arguments:

buffer

.getFrameFreq

Arguments:

frame

Frame number.

Returns:

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

Examples