Skip to content

Error with sound_pressure_level() functionΒ #72

@OCMetcalf

Description

@OCMetcalf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions