ATSaddnzSpectral Processing:ATSATSaddnzATSaddnz uses the data from an ATS analysis file to perform noise resynthesis.
DescriptionATSaddnz reads from an ATS analysis file and uses the data to perform additive synthesis using a modified randi function.
Syntaxar ATSaddnz ktimepnt, iatsfile, ibands[, ibandoffset, ibandincr]Initializationiatsfile – the ATS number (n in ats.n) or the name in quotes of the analysis file made using ATSA.
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).
Performancektimepnt – 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 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.
Examples ktime line 0, p3, 2.5
asig ATSaddnz ktime, "clarinet.ats", 25
In the example above we are synthesizing all 25 noise bands from the data contained in the ATS analysis file called "clarinet.ats".
Here is a complete example of the ATSaddnz opcode. It uses the file ATSaddnz.csd.
Example of the ATSaddnz opcode.
Here is another example of the ATSaddnz opcode. It uses the file ATSaddnz-2.csd.
Example 2 of the ATSaddnz opcode.See alsoATS Spectral ProcessingCreditsAuthor: Alex NormanSeattle,Washington2004