-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows-notes.txt
36 lines (28 loc) · 1.14 KB
/
windows-notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Rob Macrae
Date: Mon, May 25, 2009 at 7:46 AM
[...]
I recently wanted to get your matlab audio landmarking algorithm
working on a windows machine and thought I'd let you know of the traps
and fixes that were involved so you can let others know.
Firstly I had a problem with myls which I just replaced with a dir,
then struct2cell then (1,:) as I was working with offline files.
In mp3read and mp3info: The paths to mpg123.exe and mp3info.exe had to
be complete global paths. The same applies to the mp3 folder (despite
being included in Matlabs saved paths).
Also, Matlab 2004 doesn't have the 'first' flag for the unique method
(used in match_query.m) and so this will need to be replaced. Here I
offer an alternative firstUnique.m that gets the same results:
function [B,M] = firstUnique(A)
% B is the unique elements in A
% M indexes the first instance of each so B = A(M)
B = unique(A);
M = zeros(size(B));
for ib = 1:length(B)
M(ib) = min(find(A==B(ib)));
end
Thanks
Robert Macrae
Research Student
Centre for Digital Music at Queen Mary University
(and temporary) intern in the Multimedia Research Group at Telefonica I&D