ATSaddnz — uses the data from an ATS analysis file to perform noise resynthesis.
ATSaddnz reads from an ATS analysis file and uses the data to perform additive synthesis using a modified randi function.
iatsfile – the ATS number (n in ats.n) or the name in quotes of the analysis file made using ATS.
ifn – table number of a stored function containing a sine wave for ATSadd and a cosine for ATSaddnz (see examples below for more info)
ibands – number of noise bands that will be used in the resynthesis (the noise has a maximum of 25 bands)
ibandoffset (optional) – is the first noise band used (defaults to 0).
ibandincr (optional) – sets an increment by which these synthesis opcodes counts up from ibandoffset for ibins components in the re-synthesis (defaults to 1).
ktimepnt – The time pointer in seconds used to index the ATS file. Used for ATSaddnz exactly the same as for pvoc and ATSadd.
ATSaddnz and ATSadd are based on pvadd by Richard Karpen and use files created by Juan Pampin's ATS (Analysis - Transformation - Synthesis).
ATSaddnz also reads from an ATS file but it resynthesizes the noise from noise energy data contained in the ATS file. It uses a modified randi function to create band limited noise and modulates that with a user supplied wave table (one period of a cosine wave), to synthesize a user specified selection of frequency bands. Modulating the noise is required to put the band limited noise in the correct place in the frequency spectrum.
ktime line 0, p3, 2.5 asig atsaddnz ktime, "clarinet.ats", 2, 25
In the example above we're synthesizing all 25 noise bands from the data contained in the ATS analysis file called "clarinet.ats", we're using function table 2, which should be a cosine ie:
f2 0 4096 9 1 1 90
ktime line 2.5, p3, 0 asig atsaddnz ktime, 1, "clarinet.ats", 2, 1, 24
Here we synthesize only the 25th noise band (ibandoffset of 24 and ibands of 1). Also our time pointer is going from 2.5 to 0 over the duration of the note so we're reading backwards from 2.5 seconds in the analysis file.
ATSread, ATSreadnz, ATSinfo, ATSbufread, ATScross, ATSinterpread, ATSpartialtap, ATSaddnz, ATSsinnoi