Usage
powertrack (sound, timestep = 2, windowlength = timestep, fs = 22050,
smoothing = .03, show = TRUE, output = FALSE, ...)
Arguments
sound
A numeric vector representing a waveform, or a 'sound' object created with the loadsound() or makesound() functions.
timestep
Determines how far the window will be moved for each adjacent analysis, in milliseconds. The minimum permissible timestep is 0.1 milliseconds.
windowlength
Determines how much of the signal is included for each analysis step, in milliseconds. By default this is set to be equal to the timestep, resulting in no overlap.
fs
The sampling frequency of the sound. If a 'sound' object is passed, this does not need to be specified.
smoothing
This is passed to an internal call of lowess() and acts as the 'f' parameter for that function. A larger number will result in greater smoothing. For no smoothing set this to 0 or to a negative number.
show
If TRUE, the track is plotted.
output
If TRUE, a dataframe containing timesteps, and power at each timestep is returned.
...
Additional parameters are passed to the internal call of plot(), and used to create the figure.