Skip to contents

Scans the global environment for objects of class Wave (from the tuneR package) and returns a summary table with their key attributes, including duration, sample rate, bit depth, and channel configuration.

Usage

wave_info()

Value

A data.frame with one row per Wave object and the following columns:

Name

Name of the object in the environment (character)

Duration

Length in seconds (numeric, rounded to 2 decimal places)

SampleRate

Sampling rate in Hz (integer)

BitDepth

Bit depth (integer, typically 16 or 24)

Channels

"Mono" or "Stereo" (character)

Samples

Total number of samples (integer)

Returns NULL (invisibly) with a message if no Wave objects are found.

Examples

if (FALSE) { # \dontrun{
# Create example Wave objects
library(tuneR)
sine_wave <- sine(440, duration = 1, samp.rate = 44100, bit = 16)
noise_wave <- noise(duration = 0.5, samp.rate = 48000, bit = 24)

# Get summary table
wave_info()
} # }