annotate dsp/synth/@periodic/block_sr.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_sr(o,phi,f)
samer@34 2 % block_ar - Generate periodic signal with sample-rate control parameters
samer@34 3 %
samer@34 4 % block_sr :: periodic, real, [[N]] -> [[N]].
samer@34 5
samer@34 6 PH=cumsum([phi,f],2);
samer@34 7 y=o.fn(PH(:,1:end-1));
samer@34 8 phi=mod(PH(:,end),1);
samer@34 9