mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-31 09:19:15 +02:00
reduce sampling rate
This commit is contained in:
+4
-4
@@ -1,5 +1,5 @@
|
||||
PLOT = True
|
||||
FFT = PLOT and True
|
||||
PLOT = False
|
||||
FFT = PLOT and False
|
||||
|
||||
import math
|
||||
import io, os
|
||||
@@ -9,7 +9,7 @@ if FFT: import numpy as np
|
||||
DATA_RATE = 1187.5
|
||||
SIZE_RATIO = 1
|
||||
|
||||
ratio = 16
|
||||
ratio = 4
|
||||
sample_rate = DATA_RATE*ratio
|
||||
print(f"{sample_rate=}")
|
||||
if not sample_rate.is_integer(): raise ValueError("Need a even value")
|
||||
@@ -92,4 +92,4 @@ def generate():
|
||||
generate()
|
||||
|
||||
outc.close()
|
||||
outh.close()
|
||||
outh.close()
|
||||
|
||||
Reference in New Issue
Block a user