diff options
author | Jon Nordby <jononor@gmail.com> | 2025-04-18 00:17:33 +0200 |
---|---|---|
committer | Martin StensgÄrd <mastensg@mastensg.net> | 2025-04-18 16:12:03 +0200 |
commit | 61d9a812d1ab7c62b0e76903fb55a8c4d180298b (patch) | |
tree | a96ea2d63fe9222e4569a085681f0933af470329 /tools/pdm2pcm.py | |
parent | d26152cb2fdaf1381dc43eb69a3f299911b68d50 (diff) |
tools: Simplify test signal to 1 khz sine
Comes out as a 1khz square wave...
Not quite right
Diffstat (limited to 'tools/pdm2pcm.py')
-rw-r--r-- | tools/pdm2pcm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pdm2pcm.py b/tools/pdm2pcm.py index 6d2c284..15b86ce 100644 --- a/tools/pdm2pcm.py +++ b/tools/pdm2pcm.py @@ -40,7 +40,7 @@ def main(): # Normalize pcm_data -= 128.0 - pcm_data = 2**15 * (pcm_data / np.max(np.abs(pcm_data))) + pcm_data = 2**13 * (pcm_data / np.max(np.abs(pcm_data))) print(numpy.min(pcm_data), numpy.max(pcm_data), numpy.mean(pcm_data)) |