Mercurial > hg > ishara
view dsp/synth/@sine/block_sr.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,f) % block_sr - generate sine wave u=cumsum([phi,f],2); y=sin(2*pi*u(1:end-1)); phi=mod(u(end),1);