ADDSYN
From STX Wiki
Jump to navigationJump to search
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: