wolffd@0: function varargout = mirplay(a,varargin) wolffd@0: % mirplay method for mirmidi objects. wolffd@0: wolffd@0: specif.option = struct; wolffd@0: wolffd@0: specif.eachchunk = 'Normal'; wolffd@0: wolffd@0: varargout = mirfunction(@mirplay,a,varargin,nargout,specif,@init,@main); wolffd@0: if nargout == 0 wolffd@0: varargout = {}; wolffd@0: end wolffd@0: wolffd@0: wolffd@0: function [x type] = init(x,option) wolffd@0: type = ''; wolffd@0: wolffd@0: wolffd@0: function noargout = main(a,option,postoption) wolffd@0: if iscell(a) wolffd@0: a = a{1}; wolffd@0: end wolffd@0: d = get(a,'Data'); wolffd@0: n = get(a,'Name'); wolffd@0: for k = 1:length(d) wolffd@0: display(['Playing analysis of file: ' n{k}]) wolffd@0: playmidi(d{k}); wolffd@0: end wolffd@0: noargout = {};