Mercurial > hg > camir-aes2014
annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirmidi/mirplay.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 function varargout = mirplay(a,varargin) |
wolffd@0 | 2 % mirplay method for mirmidi objects. |
wolffd@0 | 3 |
wolffd@0 | 4 specif.option = struct; |
wolffd@0 | 5 |
wolffd@0 | 6 specif.eachchunk = 'Normal'; |
wolffd@0 | 7 |
wolffd@0 | 8 varargout = mirfunction(@mirplay,a,varargin,nargout,specif,@init,@main); |
wolffd@0 | 9 if nargout == 0 |
wolffd@0 | 10 varargout = {}; |
wolffd@0 | 11 end |
wolffd@0 | 12 |
wolffd@0 | 13 |
wolffd@0 | 14 function [x type] = init(x,option) |
wolffd@0 | 15 type = ''; |
wolffd@0 | 16 |
wolffd@0 | 17 |
wolffd@0 | 18 function noargout = main(a,option,postoption) |
wolffd@0 | 19 if iscell(a) |
wolffd@0 | 20 a = a{1}; |
wolffd@0 | 21 end |
wolffd@0 | 22 d = get(a,'Data'); |
wolffd@0 | 23 n = get(a,'Name'); |
wolffd@0 | 24 for k = 1:length(d) |
wolffd@0 | 25 display(['Playing analysis of file: ' n{k}]) |
wolffd@0 | 26 playmidi(d{k}); |
wolffd@0 | 27 end |
wolffd@0 | 28 noargout = {}; |