getVocalFry_per_epoch: Constant subharmonics regime

View source: R/subharmonics.R

getVocalFry_per_epochR Documentation

Constant subharmonics regime

Description

Internal soundgen function.

Usage

getVocalFry_per_epoch(
  rolloff,
  pitch_per_gc,
  nSubharm,
  sideband_width_vector,
  subDep_vector,
  throwaway01
)

Arguments

rolloff

matrix of original amplitudes of each harmonic in f0 stack returned by getRolloff (columns=time, rows=frequency bins)

pitch_per_gc

vector of the same length as ncol(rolloff)): f0 in Hz, one value per glottal cycle

nSubharm

the number of subharmonics to generate (a positive integer). If nSubharm==1, subFreq = f0 / 2. If nSubharm==2, subFreq = f0 / 3 and 2 * f0 / 3. Etc

sideband_width_vector

(either numeric or vector of the same length as pitch_per_gc): regulates how quickly the strength of subharmonics fades as they move away from harmonics in f0 stack. Low values produce narrow sidebands, high values produce uniformly strong subharmonics

throwaway01

discard harmonics that are weaker than this number (between 0 and 1) to save computational resources

Details

Helper function for adding vocal fry (subharmonics) to a single epoch, with unchanging subharmonics regime (fixed number of subharmonics and sideband width). See master function getVocalFry.

Value

Returns a modified rolloff matrix with added subharmonics


soundgen documentation built on Aug. 14, 2022, 5:05 p.m.