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