Skip to content

Commit

Permalink
fix error for return piano roll
Browse files Browse the repository at this point in the history
  • Loading branch information
jdasam committed Feb 18, 2021
1 parent 9159f99 commit cbcc906
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion transcribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def inference(self, audio):
self.switch_on_or_off()
# time_list.append(time())
if self.num_under_thr > self.patience:
return [], []
if self.return_roll:
return [0]*88
else:
return [], []
self.update_mel_buffer()
# time_list.append(time())
acoustic_out = self.update_acoustic_out(self.mel_buffer.transpose(-1, -2))
Expand Down

0 comments on commit cbcc906

Please sign in to comment.