dPhase: Phase derivatives

View source: R/shiftPitch.R

dPhaseR Documentation

Phase derivatives

Description

Internal soundgen function called by pitchShift().

Usage

dPhase(
  phase,
  magn,
  step_s,
  freqs,
  alpha,
  propagation = c("time", "adaptive")[1],
  tol = 10^(-6),
  nr = nrow(phase),
  nc = ncol(phase)
)

Arguments

phase, magn

phase and magnitude of a spectrogram

step_s

step in s

freqs

a vector of central frequencies per bin

alpha

stretch factor

propagation

the method for propagating phase: "time" = horizontal propagation (default), "adaptive" = an experimental implementation of "vocoder done right" (Prusa & Holighaus 2017)

tol

tolerance of "vocoder done right" algorithm

nr, nc

dimensions of input spectrogram


soundgen documentation built on Sept. 12, 2024, 6:29 a.m.