Skip to content

Commit

Permalink
add silence trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
Joann Ching committed Oct 4, 2024
1 parent aa6fb95 commit d4ea530
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions continue_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ def compute_next_prompt(previous_prompt, next_state, instruments_history, genre_
sample, _ = librosa.effects.trim(sample / np.max(np.abs(sample)))
audios.append(sample)

if i == 5:
break

# This utility applies cross fade for all audio segments.
joined_audio = maad.util.crossfade_list(audios, fs=sampling_rate, fade_len=generation_length*args.overlap)

Expand Down

0 comments on commit d4ea530

Please sign in to comment.