annotate dsp/synth/@sine/block_sr.m @ 34:c75bb62b90a9

Imported audio synthesis tools.
author samer
date Sun, 20 Jan 2013 19:05:05 +0000
parents
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