Mercurial > hg > c4dm-chord-transcriptions
comparison chordtools/labread.m @ 1:8973548174c1 tip
adding tools to repo
author | christopherh |
---|---|
date | Mon, 06 May 2013 14:43:47 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:0a4ad3e72e75 | 1:8973548174c1 |
---|---|
1 % | |
2 %LABREAD read lab file | |
3 % | |
4 % [times1, times2, labels] = labread(labfile); | |
5 % | |
6 % read times and labels from a wavesurfer lab file | |
7 % | |
8 % | |
9 % returns: times1 (array of segment start-times) | |
10 % times2 (array of segment end-times) | |
11 % labels (cell array of label strings) | |
12 % | |
13 % See also labwrite, mlf2lab, checklabsyntax. | |
14 % | |
15 % Author: Christopher Harte, March 2009 | |
16 % | |
17 % Copyright: Centre for Digital Music, Queen Mary University of London 2005 | |
18 % | |
19 % This file is part of the C4DM Chord Toolkit V2.0 | |
20 % | |
21 % The C4DM Chord Toolkit is free software; you can redistribute it and/or | |
22 % modify it under the terms of the GNU General Public License as published | |
23 % by the Free Software Foundation; either version 2 of the License, or | |
24 % (at your option) any later version. | |
25 % | |
26 % The C4DM Chord Toolkit is distributed in the hope that it will be useful, | |
27 % but WITHOUT ANY WARRANTY; without even the implied warranty of | |
28 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
29 % GNU General Public License for more details. | |
30 % | |
31 % You should have received a copy of the GNU General Public License | |
32 % along with the C4DM Toolkit; if not, write to the Free Software | |
33 % Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
34 % | |
35 | |
36 function [times1, times2, labels] = labread(labfile); | |
37 | |
38 [times1,times2, labels] = textread(labfile, '%f %f %s'); | |
39 |