Learn R Programming

seewave (version 2.2.4)

bstd: Brigthness, Standard Deviation time plot

Description

This function displays a plot inspired from original timber BSTD plot

Usage

bstd(wave, f, channel = 1, wl = 512, ovlp = 0,
xlab = "Time (s)", ylab = "",
xlim = NULL, ylim = NULL,
palette = colorRamp(c("yellow", "red")), plot = TRUE, ...)

Value

The function returns a 4-column matrix:

time

the time axis (X-axis)

rms

the rms value (Y-axis)

sf

the spectral flux (thickness)

zcr

the zero crossing rate (color)

Arguments

wave

an R object.

f

sampling frequency of wave (in Hz). Does not need to be specified if embedded in wave.

channel

channel of the R object, by default left channel (1).

wl

length of the window for the analysis (even number of points, by default = 512).

ovlp

overlap between two successive analysis windows (in %).

xlab

title of the time X-axis.

ylab

title of the rms Y-axis.

xlim

range of time X-axis (in s).

ylim

range of rms scaled Y-axis (within [0, 1]).

palette

color palette using colorRamp function.

plot

logical, if TRUE plots BSTD grpahic (by default TRUE).

...

other plot graphical parameters.

Author

Jérôme Sueur

References

Malt M, Jourdan E (2015) Le “BSTD” – Une représentation graphique de la brillance et de l’écart type spectral, comme possible représentation de l’évolution du timbre sonore. L’analyse musicale aujourd’hui, Delatour, 2015, 9782752102430. hal-01265269

See Also

oscillo

Examples

Run this code
data(tico)
## default parameters
bstd(tico)
## change of the STFT parameters
bstd(tico, wl=256, ovlp=90)
## change of the color palette
bstd(tico, palette=colorRamp(c("yellow", "green", "red")), wl=256, ovlp=90) 

Run the code above in your browser using DataLab