Skip to content

Commit

Permalink
Optionally use individual stft options each stem
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Mar 25, 2024
1 parent c02f67c commit d863f14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/remucs/synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,16 @@ def synthesize(file, data, opts):
stems = [STEMS.index(stem) for stem in ['bass', 'other', 'vocals']]
factors = [pitch] * len(stems)
quefrencies = [0, 0, opts.quefrency]
framesize = opts.framesize
hopsize = opts.hopsize
framesizes = [opts.framesize] * len(stems)
hopsizes = [opts.hopsize] * len(stems)

for i, stem in enumerate(stems):
x[stem] = shiftpitch(x[stem],
samplerate=sr,
factor=factors[i],
quefrency=quefrencies[i],
framesize=framesize,
hopsize=hopsize)
framesize=framesizes[i],
hopsize=hopsizes[i])

if not opts.quiet:
if mono:
Expand Down

0 comments on commit d863f14

Please sign in to comment.