dhrebeniuk / RosaKit

LibRosa port to Swift for ability using same prepossessing logic in iOS/MacOS platforms
MIT License
85 stars 14 forks source link

Different results for STFT #15

Open carmenberndt opened 1 year ago

carmenberndt commented 1 year ago

Hi, thank you for your work!

I tried out STFT from librosa in Python with n_fft of 128 and get an output of shape (1,65, 5). When doing the same with RosaKit in Swift on iOS, the output shape is (1,65,13). In Swift I have set the hopLength to 32 (bc in RosaKit hop_length is winLength // 4 by defualt, and winLength is nFFT).

Any idea why I get different results with your library?