pvswarp
Warp the spectral envelope of a PVS signal by means of shifting and scaling.
Syntax
Performance
fsig -- output pv stream
fsigin -- input pv stream
kscal -- spectral envelope scaling ratio. Values > 1 stretch the envelope and < 1 compress it.
kshift -- spectral envelope shift (in Hz), values > 0 shift the envelope linearly upwards and values < 0 shift it downwards.
klowest -- lowest frequency shifted (affects only kshift, defaults to 0).
kmethod -- spectral envelope extraction method. 1: liftered cepstrum method; 2: true envelope method (defaults to 1).
kgain -- amplitude scaling (defaults to 1).
kcoefs -- number of cepstrum coefs used in formant preservation (defaults to 80).
Warning
It is unsafe to use the same f-variable for both input and output of pvs opcodes. Using the same one might lead to undefined behavior on some opcodes. Use a different one on the left and right sides of the opcode.
Examples
Here is an example of the pvswarp opcode. It uses the file pvswarp.csd.
Used with vocal sounds, it will shift the formants and result in a changed vowel timbre, similar to the effect of a singer inhaling helium (the 'donald duck' effect).
See also
Tools for Real-time Spectral Processing (pvs opcodes)
Credits
Author: Victor Lazzarini
November 2004
New plugin in version 5
November 2004.