reversing the problem:
n_frames = 127
data_len = ((n_frames-1)*hop_size)+1+(win_size-1)    (== 33280)
data_in = torch.zeros(data_len)
STFT_center = torch.stft(data_in,n_fft,hop_length=hop_size,win_length=win_size,window=window_t,center=True,pad_mode=‘reflect’,normalized=False,onesided=True)
— > STFT_center.shape == torch.Size([1025, 131, 2])
STFT_notcenter = torch.stft(data_in_t,n_fft,hop_length=hop_size,win_length=win_size,window=window_t,center=False,pad_mode=‘reflect’,normalized=False,onesided=True)
— > STFT_notcenter == torch.Size([1025, 123, 2])
So in both cases center=True/False there is a difference of ± 4 frames in the STFT output shape … it would be very useful to have some clarifications on that please !
thanks