Mercurial > hg > ishara
view dsp/synth/@msine/block.m @ 34:c75bb62b90a9
Imported audio synthesis tools.
author | samer |
---|---|
date | Sun, 20 Jan 2013 19:05:05 +0000 |
parents | |
children |
line wrap: on
line source
function [y,phi]=block(o,phi,n,f) % block - generate sine wave t=2*pi*f*(0:n-1); y=sin(repmat(2*pi*phi,[1,n]) + t); phi=mod(phi+f*n,1);