pvsgain

pvsgain — Scale the amplitude of a pv stream.

Description

Scale the amplitude of a pv stream.

Syntax

fsig pvsgain fsigin, kgain 

Performance

fsig -- output pv stream

fsigin -- input pv stream

kgain -- amplitude scaling (defaults to 1).

[Warning] 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

Example 608. Example

asig  in                                 ; get the signal in

fsig  pvsanal   asig, 1024, 256, 1024, 1 ; analyse it
ftps  pvsgain   fsig, 2          ; amplify it
atps  pvsynth   ftps                     ; synthesise it
      out       atps   ; output it


See Also

pvsanal, pvsynth, pvsadsyn

Credits

Author: Victor Lazzarini
2011

New plugin in version 5

2011