annotate dsp/synth/@msine/block.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents c75bb62b90a9
children
rev   line source
samer@34 1 function [y,phi]=block(o,phi,n,f)
samer@34 2 % block - generate sine wave
samer@34 3
samer@34 4 t=2*pi*f*(0:n-1);
samer@34 5 y=sin(repmat(2*pi*phi,[1,n]) + t);
samer@34 6 phi=mod(phi+f*n,1);
samer@34 7