Skip to content

Commit

Permalink
Removed typo in my comments
Browse files Browse the repository at this point in the history
`-12` should have been `-0.12` but the comment was redundant, so I removed it.
  • Loading branch information
Ma5onic authored Apr 24, 2024
1 parent fc17f8b commit 46a5090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/automix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46a5090

Please sign in to comment.