classdef sigdrop < signal
	properties (GetAccess=private, SetAccess=immutable)
		todrop % natural
		sig    % signal(C,R)
	end
	methods
		function s=sigdrop(n,sig)
			s.todrop=n;
			s.sig=sig;
		end

		function s=tostring(sig)
			s=sprintf('drop(%d,%s)',sig.todrop,tostring(sig.sig));
		end

		function c=rate(s), c=rate(s.sig); end
		function c=channels(s), c=channels(s.sig); end
		function s=construct(sig)
			s=construct(sig.sig);
			s.start();
			sigreadn(s,sig.todrop);
			s.stop();
		end
	end
end
