annotate 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
rev   line source
samer@34 1 function [y,phi]=block(o,phi,f)
samer@34 2 % block_sr - generate sine wave
samer@34 3
samer@34 4 u=cumsum([phi,f],2);
samer@34 5 y=sin(2*pi*u(1:end-1));
samer@34 6 phi=mod(u(end),1);
samer@34 7