gregoire@16: function status = timeDomainVisualization(tracks,figNum,settingFigure,figuresOption,fileName) mathieu@14: mathieu@14: % This program was written by Mathias Rossignol & Grégoire Lafay mathieu@14: % is Copyright (C) 2015 IRCAM mathieu@14: % mathieu@14: % This program is free software: you can redistribute it and/or modify it mathieu@14: % under the terms of the GNU General Public License as published by the Free mathieu@14: % Software Foundation, either version 3 of the License, or (at your option) mathieu@14: % any later version. mathieu@14: % mathieu@14: % This program is distributed in the hope that it will be useful, but mathieu@14: % WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY mathieu@14: % or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License mathieu@14: % for more details. mathieu@14: % mathieu@14: % You should have received a copy of the GNU General Public License along mathieu@14: % with this program. If not, see . mathieu@14: mathieu@14: % Producing a time domain visualization gregoire@16: step=0.5; % seconds gregoire@16: wStep = round(step*settingFigure.sr); gregoire@16: wSize = wStep*2; mathieu@34: for t=1:size(tracks,1) gregoire@16: for i=0:floor((size(tracks,2)-wSize)/wStep) mathieu@14: % Not really power, but more nicely additive, better suited for mathieu@14: % this representation I think gregoire@16: powers(i+1,t) = norm(tracks(t,i*wStep+1:min(size(tracks,2), i*wStep+wSize))); mathieu@14: end mathieu@14: end mathieu@14: mathieu@14: powers(powers