Mercurial > hg > ishara
view audio/sndpipe.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 62e31e7980e6 |
children |
line wrap: on
line source
% sndpipe - audio signal from shell pipe line. % sndpipe :: string~'shell command', options(sndstream) -> signal(C,R). % % The shell command must produce a self-describing stream that can be recognised % by the JavaSound subsystem. Then, function s=sndpipe(cmd,varargin) s=sndstream(@pipestream,'stringfn',@()sprintf('sndpipe(''%s'')',cmd),varargin{:}); function [str,cleanup]=pipestream(q) [str,cleanup]=pipein(cmd,q); str=austream(str); end end