dot-shiftFormants: Shift formants per sound

Description Usage Arguments

Description

Internal soundgen function called by shiftFormants

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
.shiftFormants(
  audio,
  scaleFactor,
  samplingRate = NULL,
  freqWindow = NULL,
  dynamicRange = 80,
  windowLength = 50,
  step = NULL,
  overlap = 75,
  wn = "gaussian",
  interpol = c("approx", "spline")[1],
  normalize = TRUE,
  play = FALSE
)

Arguments

audio

a list returned by readAudio

scaleFactor

1 = no change, >1 = raise formants (eg 1.1 = 10% up, 2 = one octave up), <1 = lower formants

samplingRate

sampling rate of x (only needed if x is a numeric vector)

freqWindow

the width of spectral smoothing window, Hz. Defaults to detected f0

dynamicRange

dynamic range, dB. All values more than one dynamicRange under maximum are treated as zero

windowLength

length of FFT window, ms

step

you can override overlap by specifying FFT step, ms (NB: because digital audio is sampled at discrete time intervals of 1/samplingRate, the actual step and thus the time stamps of STFT frames may be slightly different, eg 24.98866 instead of 25.0 ms)

overlap

overlap between successive FFT frames, %

wn

window type accepted by ftwindow, currently gaussian, hanning, hamming, bartlett, rectangular, blackman, flattop

interpol

the method for interpolating scaled spectra

normalize

if TRUE, scales input prior to FFT

play

if TRUE, plays the processed audio


soundgen documentation built on June 20, 2021, 1:06 a.m.