view signals/@sigreclock/sigreclock.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents 289445d368a7
children
line wrap: on
line source
classdef sigreclock < signal
	properties (GetAccess=private, SetAccess=immutable)
		fs
		sig
	end
	methods
		function s=sigreclock(rate,sig)
			s.fs=rate;
			s.sig=sig;
		end

		function s=tostring(sig), s=sprintf('reclock(%g,%s)',sig.rate,tostring(sig.sig)); end
		function s=construct(sig), s=construct(sig.sig); end
		function c=channels(s), c=channels(s.sig); end
		function c=rate(s), c=s.fs; end
	end
end