Mercurial > hg > camir-ismir2012
annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirmidi/display.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 display(m) |
Daniel@0 | 2 % MIRMIDI/DISPLAY display of MIDI representation |
Daniel@0 | 3 |
Daniel@0 | 4 figure |
Daniel@0 | 5 disp(' '); |
Daniel@0 | 6 d = get(m,'Data'); |
Daniel@0 | 7 n = get(m,'Name'); |
Daniel@0 | 8 for i = 1:length(d) |
Daniel@0 | 9 pianoroll(d{i}); |
Daniel@0 | 10 fig = get(0,'CurrentFigure'); |
Daniel@0 | 11 va = inputname(1); |
Daniel@0 | 12 if isempty(va) |
Daniel@0 | 13 va = 'ans'; |
Daniel@0 | 14 end |
Daniel@0 | 15 disp([va,' is the MIDI representation related to file ',n{i},... |
Daniel@0 | 16 ' is displayed in Figure ',num2str(fig),'.']); |
Daniel@0 | 17 end |
Daniel@0 | 18 disp(' '); |