Daniel@0: function display(m) Daniel@0: % MIRMIDI/DISPLAY display of MIDI representation Daniel@0: Daniel@0: figure Daniel@0: disp(' '); Daniel@0: d = get(m,'Data'); Daniel@0: n = get(m,'Name'); Daniel@0: for i = 1:length(d) Daniel@0: pianoroll(d{i}); Daniel@0: fig = get(0,'CurrentFigure'); Daniel@0: va = inputname(1); Daniel@0: if isempty(va) Daniel@0: va = 'ans'; Daniel@0: end Daniel@0: disp([va,' is the MIDI representation related to file ',n{i},... Daniel@0: ' is displayed in Figure ',num2str(fig),'.']); Daniel@0: end Daniel@0: disp(' ');