File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1406,6 +1406,7 @@ def compute_wrapper(
14061406 bitdepth = 16 ,
14071407 mask_secondary_effects = False ,
14081408 debug = False ,
1409+ segment_waves = False ,
14091410 ** kwargs ,
14101411):
14111412 """
@@ -1733,7 +1734,13 @@ def compute_wrapper(
17331734 trim_end = max (0 , min (segment .shape [1 ], call_end [1 ] + buffer_pix ))
17341735
17351736 segments ['stft_db' ].append (stft_db [:, start + trim_begin : start + trim_end ])
1736- segments ['waveplot' ].append (waveplot [:, start + trim_begin : start + trim_end ])
1737+ segment_waveplot = waveplot [:, start + trim_begin : start + trim_end ]
1738+ metadata_waveplot = {
1739+ "waveplot" : segment_waveplot ,
1740+ }
1741+ if segment_waves :
1742+ metadata .update (metadata_waveplot )
1743+ segments ['waveplot' ].append (segment_waveplot )
17371744 segments ['costs' ].append (costs [:, trim_begin :trim_end ])
17381745 if debug_path :
17391746 segments ['canvas' ].append (canvas [:, trim_begin :trim_end ])
You can’t perform that action at this time.
0 commit comments