add midi editor space

This commit is contained in:
王新升
2026-02-08 22:43:00 +08:00
parent 73dc3c0952
commit 4ae4d2c1ca
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ class SoulXSinger(nn.Module):
print("Warning: pitch_shift is True but note_pitch or f0 is None. Set f0_shift to 0.")
f0_shift = 0
else:
f0_shift = 0
f0_shift = pitch_shift
if gt_f0 is None or pt_f0 is None:
gt_f0, pt_f0 = torch.zeros_like(gt_mel2note).float().to(gt_mel2note.device), torch.zeros_like(pt_mel2note).float().to(pt_mel2note.device)