comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function varargout = mirplay(a,varargin)
2 % mirplay method for mirmidi objects.
3
4 specif.option = struct;
5
6 specif.eachchunk = 'Normal';
7
8 varargout = mirfunction(@mirplay,a,varargin,nargout,specif,@init,@main);
9 if nargout == 0
10 varargout = {};
11 end
12
13
14 function [x type] = init(x,option)
15 type = '';
16
17
18 function noargout = main(a,option,postoption)
19 if iscell(a)
20 a = a{1};
21 end
22 d = get(a,'Data');
23 n = get(a,'Name');
24 for k = 1:length(d)
25 display(['Playing analysis of file: ' n{k}])
26 playmidi(d{k});
27 end
28 noargout = {};