sona.vid: Create a dynamic sonagram as video clip using dynaSpec

View source: R/sona_vid.R

sona.vidR Documentation

Create a dynamic sonagram as video clip using dynaSpec

Description

Implements dynamic sonagrams as .mp4 files as explained in much detail here (here)[https://marce10.github.io/dynaSpec/] Only works if (FFMPEG)[https://ffmpeg.org/download.html] is installed (see (wikihow tutorial)[https://www.wikihow.com/Install-FFmpeg-on-Windows] to get help)

Usage

sona.vid(
  wave = NULL,
  res = 120,
  wl = 1024,
  ymin = 0,
  ymax = 9,
  loop = 1,
  scalecexlab = 0.5,
  scalefontlab = 0.5,
  cexlab = 0.5,
  cexaxis = 0.5,
  t.range = 10,
  tlab = "",
  flab = "kHz",
  colbg = c("black", "white"),
  fix.time = F,
  out = "default"
)

Arguments

wave

path to a .mp3 or .wav audio file.

res

res

wl

A numeric vector of length 1 specifying the window length of the spectrogram, default is NULL. If supplied, 'hop.size' is ignored.

ymin

min frequency

ymax

max frequency

loop

Logical argument to control if the video is formatted to be played in a loop (i.e. if ends at the start of the clip).

scalecexlab

scalecexlab

scalefontlab

scalefontlab

cexlab

cexlab

cexaxis

cexaxis

t.range

x-axis width in seconds

tlab

name of time (x) axis

flab

name of frequency (y) axis

colbg

Character string to control the background color. Default is 'white'.

fix.time

Logical argument to control if the time axis moves along with the spectrogram or remains fixed. Default is TRUE (fixed).

out

output file name

References

https://marce10.github.io/dynaSpec/


mottensmann/NocMigR documentation built on Oct. 3, 2023, 3:36 a.m.