Datasets:

Modalities:
Audio
Languages:
English
ArXiv:
License:
Igor Gadelha commited on
Commit
d4e4920
1 Parent(s): bd8607d

fix mix_stems

Browse files
Files changed (1) hide show
  1. moisesdb/track.py +1 -0
moisesdb/track.py CHANGED
@@ -117,6 +117,7 @@ class MoisesDBTrack:
117
  stems = {}
118
  for stem, stem_sources in mix_map.items():
119
  stems_to_mix = [self.stem_mixture(s) for s in stem_sources]
 
120
  stems[stem] = trim_and_mix(stems_to_mix)
121
  return stems
122
 
 
117
  stems = {}
118
  for stem, stem_sources in mix_map.items():
119
  stems_to_mix = [self.stem_mixture(s) for s in stem_sources]
120
+ stems_to_mix = [s for s in stems_to_mix if s is not None]
121
  stems[stem] = trim_and_mix(stems_to_mix)
122
  return stems
123