mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 20:33:53 +01:00
adjust waveform (fix normalization)
This commit is contained in:
@@ -73,8 +73,8 @@ def generate():
|
||||
|
||||
# Slice the array like numpy would
|
||||
out = shapedSamples[offset-l*count:offset+l*count]
|
||||
out = [i/(max(sf)+0.1) for i in out]
|
||||
if max(out) > 1 or min(out) < -1: print("clipped")
|
||||
out = [i/(max(out)) for i in out]
|
||||
if max(out) > 1 or min(out) < -1: raise Exception("Clipped")
|
||||
|
||||
if PLOT:
|
||||
# Plot the waveform
|
||||
|
||||
Reference in New Issue
Block a user