audio: no need for compute_rms
This commit is contained in:
@@ -8,10 +8,6 @@ import numpy as np
|
|||||||
import pyloudnorm as pyln
|
import pyloudnorm as pyln
|
||||||
|
|
||||||
|
|
||||||
def compute_rms(audio: np.ndarray):
|
|
||||||
return np.sqrt(np.mean(audio**2))
|
|
||||||
|
|
||||||
|
|
||||||
def normalize_value(value, min_value, max_value):
|
def normalize_value(value, min_value, max_value):
|
||||||
normalized = (value - min_value) / (max_value - min_value)
|
normalized = (value - min_value) / (max_value - min_value)
|
||||||
normalized_clamped = max(0, min(1, normalized))
|
normalized_clamped = max(0, min(1, normalized))
|
||||||
|
|||||||
Reference in New Issue
Block a user