Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with sound_pressure_level() function #72

Open
OCMetcalf opened this issue Mar 13, 2024 · 0 comments
Open

Error with sound_pressure_level() function #72

OCMetcalf opened this issue Mar 13, 2024 · 0 comments

Comments

@OCMetcalf
Copy link

Hi,

I'm trying to measure the relative SPL of some sounds in wav files with an 8kHz sampling rate, running on Windows. I am reading in a csv that's been exported from Raven with start and end times in seconds, and high and low frequencies in khZ, adjusting the column headings to match those required by warbleR, then running the function with arguments to both apply a frequency filter and remove background noise:

spl<-sound_pressure_level(dat, path = path, pb = TRUE,
type = "mean", wl = 512, bp = "freq.range", remove.bgn = TRUE, mar = 1, envelope = "abs")

I get the following error, which i'm struggling to understand:
| 0 % ~calculating Error in seq.default(0.01, signal.noise, by = 0.01) :
wrong sign in 'by' argument

Thanks,
Ollie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant