adsynt Signal Generators:Additive Synthesis/Resynthesis adsynt adsynt Performs additive synthesis with an arbitrary number of partials, not necessarily harmonic. Description Performs additive synthesis with an arbitrary number of partials, not necessarily harmonic. Syntax ares adsynt kamp, kcps, iwfn, ifreqfn, iampfn, icnt [, iphs] Initialization iwfn -- table containing a waveform, usually a sine. Table values are not interpolated for performance reasons, so larger tables provide better quality. ifreqfn -- table containing frequency values for each partial. ifreqfn may contain beginning frequency values for each partial, but is usually used for generating parameters at runtime with tablew. Frequencies must be relative to kcps. Size must be at least icnt. iampfn -- table containing amplitude values for each partial. iampfn may contain beginning amplitude values for each partial, but is usually used for generating parameters at runtime with tablew. Amplitudes must be relative to kamp. Size must be at least icnt. icnt -- number of partials to be generated iphs -- initial phase of each oscillator, if iphs = -1, initialization is skipped. If iphs > 1, all phases will be initialized with a random value. Performance kamp -- amplitude of note kcps -- base frequency of note. Partial frequencies will be relative to kcps. Frequency and amplitude of each partial is given in the two tables provided. The purpose of this opcode is to have an instrument generate synthesis parameters at k-rate and write them to global parameter tables with the tablew opcode. Examples Here is an example of the adsynt opcode. It uses the file adsynt.csd. These two instruments perform additive synthesis. The output of each sounds like a Tibetan bowl. The first one is static, as parameters are only generated at init-time. In the second one, parameters are continuously changed. Example of the adsynt opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Additive Synthesis/Resynthesis Credits Author: Peter Neubäcker Munich, Germany August, 1999 New in Csound version 3.58