summaryrefslogtreecommitdiff
path: root/tools/pcm2pdm.py
diff options
context:
space:
mode:
authorJon Nordby <jononor@gmail.com>2025-04-18 00:17:33 +0200
committerMartin StensgÄrd <mastensg@mastensg.net>2025-04-18 16:12:03 +0200
commit61d9a812d1ab7c62b0e76903fb55a8c4d180298b (patch)
treea96ea2d63fe9222e4569a085681f0933af470329 /tools/pcm2pdm.py
parentd26152cb2fdaf1381dc43eb69a3f299911b68d50 (diff)
tools: Simplify test signal to 1 khz sine
Comes out as a 1khz square wave... Not quite right
Diffstat (limited to 'tools/pcm2pdm.py')
-rw-r--r--tools/pcm2pdm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pcm2pdm.py b/tools/pcm2pdm.py
index 7cf05fb..f04f2ba 100644
--- a/tools/pcm2pdm.py
+++ b/tools/pcm2pdm.py
@@ -3,7 +3,7 @@ import soundfile
def second_order_delta_sigma(pcm):
# Normalize input XXX: remove normalization
- pcm = pcm / np.max(np.abs(pcm))
+ #pcm = pcm / np.max(np.abs(pcm))
n = len(pcm)
pdm = np.zeros(n, dtype=np.uint8)