ATSread Spectral Processing:ATS ATSread ATSread reads data from an ATS file. Description ATSread returns the amplitude (kamp) and frequency (kfreq) information of a user specified partial contained in the ATS analysis file at the time indicated by the time pointer ktimepnt. Syntax kfreq, kamp ATSread ktimepnt, iatsfile, ipartial Initialization iatsfile – the ATS number (n in ats.n) or the name in quotes of the analysis file made using ATSA. ipartial – the number of the analysis partial to return the frequency in Hz and amplitude. Performance kfreq, kamp - outputs of the ATSread unit. These values represent the frequency and amplitude of a specific partial selected by the user using ipartial. The partials' informations are derived from an ATS analysis. ATSread linearly interpolates the frequency and amplitude between frames in the ATS analysis file at k-rate. The output is dependent on the data in the analysis file and the pointer ktimepnt. ktimepnt – The time pointer in seconds used to index the ATS file. Used for ATSread exactly the same as for pvoc and ATSadd. Examples Here is an example of the ATSread opcode. It uses the file ATSread.csd. Example of the ATSread opcode. Here we are using ATSread to get the 10th partial's frequency and amplitude data out of the 'beats.ats' ATS analysis file. We are using that data to drive an oscillator, but we could use it for anything else that can take a k-rate input, like the bandwidth and resonance of a filter etc. Here is a musical example of the ATSread opcode. It uses the file ATSread-musical.csd. Example 2 of the ATSread opcode. See also ATS Spectral Processing Credits Author: Alex Norman Seattle,Washington 2004