comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirmidi/mirplay.m @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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 = {};