Skip to content

Commit 0e864ff

Browse files
committed
updated setup file
1 parent 6ef0872 commit 0e864ff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

examples/audio_denoising_big_files.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,22 @@
1515

1616
t = FastWaveletTransform(WAVELET_NAME)
1717
c = VisuShrinkCompressor()
18+
before = list()
19+
after = list()
1820

1921
start = time()
2022
with soundfile.SoundFile(OUTPUT_FILE, "w", samplerate=rate, channels=info.channels) as of:
2123
for block in soundfile.blocks(INPUT_FILE, int(rate * info.duration * 0.1)): # reading 10 % of duration
22-
2324
coefficients = t.waveDec(block)
2425
coefficients = c.compress(coefficients)
2526
clean = t.waveRec(coefficients)
26-
27+
before.append(snr(block))
28+
after.append(snr(clean))
2729
clean = np.asarray(clean)
2830
of.write(clean)
2931

3032
end = time()
3133
print(f"Time taken :: {end - start}")
34+
35+
print(before)
36+
print(after)

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
'wavelet/util',
1212
'wavelet/wavelets/',
1313
'wavelet/compression'],
14-
scripts=['wavelet/'],
1514
url='https://github.com/AP-Atul/Wavelets',
1615
license='LICENSE',
1716
description='Simple and easy to understand implementation of Wavelet Transform',

0 commit comments

Comments
 (0)