Mercurial > hg > ishara
view dsp/synth/@sine/block.m @ 36:9e7be347b3a0
Renamed sequence classes to avoid clashes with seq methods;
Fixed default slicing dimension while retaining behaviour of window.m;
Updated use of sequences in dsp/synth.
author | samer |
---|---|
date | Thu, 24 Jan 2013 14:51:23 +0000 |
parents | c75bb62b90a9 |
children | ae596261e75f |
line wrap: on
line source
function [y,phi]=block(o,phi,n,f) % block - generate sine wave w=2*pi*f; y=sin(2*pi*phi + w*(0:n-1)); phi=mod(phi+f*n,1);