Programmer Guide/SPU Reference/ADDSYN: Difference between revisions
From STX Wiki
Jump to navigationJump to search
(initial import) |
m (1 revision: Initial import) |
(No difference)
|
Revision as of 17:31, 18 November 2010
ADDSYN - additive synthesis
Usage:
ADDSYN sr l f a p nc df da
Inputs:
sr | sampling rate in Hz |
l | length of output buffer (number of samples / evaluation cycle) |
f | frequency in Hz |
amp | amplitude(s) (linear) |
p | phase (initial phase settings) |
nc | number of components |
df | frequency/ies increment in Hz |
da | magnitude factor |
Outputs:
y | number (l=1) or vector (l>1), synthesized signal |
Function:
This atom using additive synthesis of sine waves to generate a signal. The signal of sampling rate sr is stored in the output y. The inputs (except p and nc) are updated at the beginning of each evaluation cycle to allow modulations. For the additive synthesis the following formula is used:
with: