From 46a5090757eb1629f2c5c3a46c64d48a51eed555 Mon Sep 17 00:00:00 2001 From: Ma5onic <18509613+Ma5onic@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:25:17 -0400 Subject: [PATCH] Removed typo in my comments `-12` should have been `-0.12` but the comment was redundant, so I removed it. --- tools/automix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/automix.py b/tools/automix.py index b1086dd2..5a324f1b 100644 --- a/tools/automix.py +++ b/tools/automix.py @@ -210,7 +210,7 @@ def get_part(spec, source, dt, dp): if isinstance(dt, np.ndarray) and dt.size == 1: dt = float(dt.item()) # Convert numpy array to Python scalar # Convert tempo change from relative change (e.g., -0.12 for 88%) to percentage change expected by `repitch` - tempo_percentage_change = dt * 100 # Convert to percentage (e.g., -12 for 88% speed) + tempo_percentage_change = dt * 100 # Convert to percentage # Apply pitch and tempo changes wav = repitch(wav, dp, tempo_percentage_change, voice=source == 3, samplerate=SR) # Adjust onsets according to new tempo