diff options
author | ymherklotz <ymherklotz@gmail.com> | 2018-03-19 17:16:00 +0000 |
---|---|---|
committer | ymherklotz <ymherklotz@gmail.com> | 2018-03-19 17:16:00 +0000 |
commit | f2ca5219a904fae17e9c744fe1a6d324527d5f56 (patch) | |
tree | d69b02960235a7424735d667caed72e724b5bd2a /Project | |
parent | f860d0c5bb890b4e73c2d2dc76bbb0d4258e0007 (diff) | |
download | NoiseSilencer-f2ca5219a904fae17e9c744fe1a6d324527d5f56.tar.gz NoiseSilencer-f2ca5219a904fae17e9c744fe1a6d324527d5f56.zip |
Fixing alphas
Diffstat (limited to 'Project')
-rw-r--r-- | Project/RTDSP/.launches/RTDSP.launch | 6 | ||||
-rw-r--r-- | Project/RTDSP/Matlab/create_spectrogram.m | 2 | ||||
-rw-r--r-- | Project/RTDSP/audio/car_best.wav | bin | 0 -> 4220460 bytes | |||
-rw-r--r-- | Project/RTDSP/audio/phatom4_best.wav | bin | 0 -> 5178924 bytes | |||
-rw-r--r-- | Project/RTDSP/enhance.c | 3 |
5 files changed, 5 insertions, 6 deletions
diff --git a/Project/RTDSP/.launches/RTDSP.launch b/Project/RTDSP/.launches/RTDSP.launch index 8830bf8..2cb7293 100644 --- a/Project/RTDSP/.launches/RTDSP.launch +++ b/Project/RTDSP/.launches/RTDSP.launch @@ -12,8 +12,8 @@ <stringAttribute key="com.ti.ccstudio.debug.core.DISPLAY_NAME_FORMAT" value="RTDSP [Debug] - {0}"/> <stringAttribute key="CCEDebugOptions.TARGET_CONFIGURATION_OPTION" value="full"/> <stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="<?xml version="1.0" encoding="UTF-8"?> <memoryBlockExpressionList/> "/> -<stringAttribute key="com.ti.ccstudio.debug.core.MRU_PROGRAM_NAME" value="C:\GIT\RTDSP\Project\RTDSP\Debug\RTDSP.out"/> -<stringAttribute key="com.ti.ccstudio.debug.core.MRU_MODULES" value="<?xml version="1.0" encoding="UTF-8"?> <modules> <module name="C:\GIT\RTDSP\lab3\RTDSP\Debug\RTDSP.out" time="Fri Jan 19 14:07:28 GMT 2018" time_long="1516370848357"/> <module name="C:\Github\RTDSP\lab3\RTDSP\Debug\RTDSP.out" time="Tue Jan 23 11:15:11 GMT 2018" time_long="1516706111426"/> <module name="C:\GIT\RTDSP\lab4\RTDSP\Debug\RTDSP.out" time="Thu Feb 01 11:44:21 GMT 2018" time_long="1517485461898"/> <module name="C:\github\RTDSP\lab4\RTDSP\Debug\RTDSP.out" time="Thu Feb 15 13:55:55 GMT 2018" time_long="1518702955359"/> <module name="C:\Github\RTDSP\lab5\RTDSP\Debug\RTDSP.out" time="Tue Feb 27 12:18:55 GMT 2018" time_long="1519733935329"/> <module name="C:\github\RTDSP\lab5\RTDSP\Debug\RTDSP.out" time="Thu Mar 01 13:36:20 GMT 2018" time_long="1519911380476"/> <module name="C:\github\RTDSP\Project\RTDSP\Debug\RTDSP.out" time="Thu Mar 08 15:31:06 GMT 2018" time_long="1520523066763"/> <module name="C:\GIT\RTDSP\Project\RTDSP\Debug\RTDSP.out" time="Thu Mar 15 16:05:05 GMT 2018" time_long="1521129905593"/> </modules> "/> +<stringAttribute key="com.ti.ccstudio.debug.core.MRU_PROGRAM_NAME" value="C:\github\RTDSP\Project\RTDSP\Debug\RTDSP.out"/> +<stringAttribute key="com.ti.ccstudio.debug.core.MRU_MODULES" value="<?xml version="1.0" encoding="UTF-8"?> <modules> <module name="C:\GIT\RTDSP\lab3\RTDSP\Debug\RTDSP.out" time="Fri Jan 19 14:07:28 GMT 2018" time_long="1516370848357"/> <module name="C:\Github\RTDSP\lab3\RTDSP\Debug\RTDSP.out" time="Tue Jan 23 11:15:11 GMT 2018" time_long="1516706111426"/> <module name="C:\GIT\RTDSP\lab4\RTDSP\Debug\RTDSP.out" time="Thu Feb 01 11:44:21 GMT 2018" time_long="1517485461898"/> <module name="C:\github\RTDSP\lab4\RTDSP\Debug\RTDSP.out" time="Thu Feb 15 13:55:55 GMT 2018" time_long="1518702955359"/> <module name="C:\Github\RTDSP\lab5\RTDSP\Debug\RTDSP.out" time="Tue Feb 27 12:18:55 GMT 2018" time_long="1519733935329"/> <module name="C:\github\RTDSP\lab5\RTDSP\Debug\RTDSP.out" time="Thu Mar 01 13:36:20 GMT 2018" time_long="1519911380476"/> <module name="C:\GIT\RTDSP\Project\RTDSP\Debug\RTDSP.out" time="Thu Mar 15 16:05:05 GMT 2018" time_long="1521129905593"/> <module name="C:\github\RTDSP\Project\RTDSP\Debug\RTDSP.out" time="Mon Mar 19 17:15:31 GMT 2018" time_long="1521479731757"/> </modules> "/> <stringAttribute key="CCEDebugOptions.CPU_NAME" value="Spectrum Digital DSK-EVM-eZdsp onboard USB Emulator_0/TMS320C671X"/> <stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="RTDSP"/> <stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="<?xml version="1.0" encoding="UTF-8"?> <globalVariableList/> "/> @@ -21,6 +21,6 @@ <stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/RTDSP.out"/> <stringAttribute key="CCEDebugOptions.CPU_ISA" value="TMS320C671X"/> <stringAttribute key="com.ti.ccstudio.debug.core.BUILD_CONFIGURATION" value="Debug"/> -<stringAttribute key="CCEDebugOptions.TARGET_CONFIGURATION_FILE" value="C:\GIT\RTDSP\Project\RTDSP\NewTargetConfiguration.ccxml"/> +<stringAttribute key="CCEDebugOptions.TARGET_CONFIGURATION_FILE" value="C:\github\RTDSP\Project\RTDSP\NewTargetConfiguration.ccxml"/> <stringAttribute key="org.eclipse.debug.core.source_locator_id" value="com.ti.ccstudio.debug.core.sourceLocator"/> </launchConfiguration> diff --git a/Project/RTDSP/Matlab/create_spectrogram.m b/Project/RTDSP/Matlab/create_spectrogram.m index 5bf2661..41c0f94 100644 --- a/Project/RTDSP/Matlab/create_spectrogram.m +++ b/Project/RTDSP/Matlab/create_spectrogram.m @@ -1,7 +1,7 @@ %% % Creates the spectrogram for the audio files -[song, fs] = audioread('../audio/best_case/car.wav'); +[song, fs] = audioread('../audio/phatom4_best.wav'); song = song(1:fs*10); figure spectrogram(song, 256, [], [], fs, 'yaxis'); diff --git a/Project/RTDSP/audio/car_best.wav b/Project/RTDSP/audio/car_best.wav Binary files differnew file mode 100644 index 0000000..88f9686 --- /dev/null +++ b/Project/RTDSP/audio/car_best.wav diff --git a/Project/RTDSP/audio/phatom4_best.wav b/Project/RTDSP/audio/phatom4_best.wav Binary files differnew file mode 100644 index 0000000..33d8303 --- /dev/null +++ b/Project/RTDSP/audio/phatom4_best.wav diff --git a/Project/RTDSP/enhance.c b/Project/RTDSP/enhance.c index 09b78d6..a5992ff 100644 --- a/Project/RTDSP/enhance.c +++ b/Project/RTDSP/enhance.c @@ -103,7 +103,7 @@ volatile int m_ptr = 0; float snr_val = 0; float total_snr = 0; float lambda = 0.05; -float alpha[NUM_ALPHA] = {300, 400, 600, 1000}; +float alpha[NUM_ALPHA] = {100, 50, 9, 1}; float avg = 0; float sum = 0; float *M[NUM_M]; @@ -267,7 +267,6 @@ void overestimation(void) { // Low pass filter X(w) void low_pass_filter(float* current, float* next) { int w; - float temp; for (w = 0; w < FFTLEN; ++w) { current[w] = (1-K)*current[w] + K*next[w]; next[w] = current[w]; |