view signals/@sigtake/sigtake.m @ 42:ae596261e75f

Various fixes and development to audio handling
author samer
date Tue, 02 Dec 2014 14:51:13 +0000
parents 289445d368a7
children
line wrap: on
line source
classdef sigtake < signal
	properties (GetAccess=private, SetAccess=immutable)
		len
		sig
	end
	methods
		function s=sigtake(n,sig)
			s.len=n;
			s.sig=sig;
		end

		function s=tostring(sig), s=sprintf('take(%d,%s)',sig.len,tostring(sig.sig)); end
		function c=channels(s), c=channels(s.sig); end
		function c=rate(s), c=rate(s.sig); end
	end
end