Skip to content

Commit fa903ab

Browse files
committed
Started implementing the program in JAVA. Need to research Goertzel Implementation in Java. Need to continue testing in MATLAB to achieve a higher accuracy
1 parent c3e4518 commit fa903ab

34 files changed

+1153
-169
lines changed

.classpath

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="src"/>
3+
<classpathentry kind="src" path="source"/>
44
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
55
<classpathentry kind="lib" path="lib/MusicG/musicg-1.4.2.0.jar"/>
6+
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
67
<classpathentry kind="output" path="bin"/>
78
</classpath>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
,tino1b2be,insurrection,10.12.2015 18:37,file:///home/tino1b2be/.config/libreoffice/4;
1+
,tino1b2be,insurrection,14.12.2015 22:27,file:///home/tino1b2be/.config/libreoffice/4;

Documentation/DTMF Decoder.odt

-34 Bytes
Binary file not shown.

Prototyping/generateTestData.m~

Lines changed: 0 additions & 80 deletions
This file was deleted.

Prototyping/getRawKeys.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
for j = 1 : size(dft_data,2) % for each decoded frame
8080
%get index of highest DTMF high and low frequencies
81-
if (mean(dft_data(:,j)) < (0.60 * topAvg))
81+
if (mean(dft_data(:,j)) < (0.61 * topAvg))
8282
rawKeys(j) = '_';
8383

8484
else

Prototyping/makeFrames.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
% frameSize = 512;
5454
% end
5555

56-
frameSize = 360;
56+
frameSize = 370;
5757

58-
if (length(data) < 512)
58+
if (length(data) < frameSize)
5959
frameSize = length(data);
6060
numFrames = 1;
6161
else

Prototyping/makeFrames.m~

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,21 @@ function frames = makeFrames (data, Fs)
5353
% frameSize = 512;
5454
% end
5555

56-
frameSize = 360;
56+
frameSize = 370;
5757

58-
if (length(data) < 512)
58+
if (length(data) < 370)
5959
frameSize = length(data);
6060
numFrames = 1;
6161
else
62-
numFrames = floor(length(data)/frameSize)*3 - 2;
62+
numFrames = floor(length(data)/frameSize)*2 - 1;
6363
end
6464

65-
66-
6765
% must preallocate memory for the output
6866
frames = zeros(frameSize,numFrames); % number of frames (columns)
6967
%frames(:,1) = data(1:frameSize); % slice off the first frame
7068

7169
col = 1;
72-
for i= 1 : floor(frameSize/3) : length(data)
70+
for i= 1 : floor(frameSize/2) : length(data)
7371
new = data(i:i+frameSize-1);
7472
frames(:,col) = new;
7573
if (col == numFrames) % break when all the frames have been created

Prototyping/transformFrames2.m

Lines changed: 0 additions & 78 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)