spec() extremely slow when not rounding

12 views
Skip to first unread message

Kevin Darras

unread,
Feb 5, 2024, 3:46:24 PMFeb 5
to seewave
Is the following 10-fold execution time factor delay normal?

Here is some code to reproduce the issue with this WAV file: https://drive.google.com/file/d/1CouPerT2wHDprysrI_vN_Iip_Xpvvogp/view?usp=sharing

library(seewave)
library(tuneR)
wave=readWave("9741896_18_04_2021_0540.wav")
wave_duration=length(wave@left)/wa...@samp.rate
system.time(spec(wave,from=0,to=floor(wave_duration)))
system.time(spec(wave))
Reply all
Reply to author
Forward
0 new messages