ATSpartialtap
Prev | Orchestra Opcodes and Operators | Next

## ATSpartialtap

ATSpartialtap — returns a frequency, amplitude pair from an ATSbufread opcode.

## Description

ATSpartialtap takes a partial number and returns a frequency, amplitude pair. The frequency and amplitude data comes from an atsbufread ATSbufread opcode.

## Syntax

    kfrq, kamp ATSpartialtap ipartialnum

## Initialization

ipartialnum - indicates the partial that the ATSpartialtap opcode should read from an ATSbufread.

## Performance

kfrq - returns the frequency value for the requested partial.

kamp - returns the amplitude value for the requested partial.

ATSpartialtap takes a partial number and returns a frequency, amplitude pair. The frequency and amplitude data comes from an ATSbufread opcode. This is more restricted version of ATSread, since each ATSread opcode has its own independent time pointer, and ATSpartialtap is restricted to the data given by an ATSbufread. Its simplicity is its attractive feature.

## Examples

      ktime line 0, p3, 2.4
      atsbufread  ktime, 1, "crt.ats", 20
      kfreq1, kamp1 atspartialtap 1
      kfreq2, kamp2 atspartialtap 10
      kfreq3, kamp3 atspartialtap 20

This example here uses an ATSpartialtap, and an ATSbufread to read partials 1, 10 and 20 from 'crt.ats'. These amplitudes and frequencies could be used to re-synthesize those partials, or something all together different.

## See also

ATSread, ATSreadnz, ATSinfo, ATSsinnoi, ATSbufread, ATScross, ATSinterpread, ATSadd, ATSaddnz

## Credits

Author: Alex Norman
Seattle,Washington
2004

Prev | Up | Next
ATSreadnz | Home | ATSsinnoi