PV_MagSquared:
Filter:
Description
Class methods
new
Inherited class methods
Instance methods
Inherited instance methods
Examples
Classes
|
UGens
>
FFT
PV_MagSquared
:
PV_ChainUGen
:
WidthFirstUGen
:
UGen
:
AbstractFunction
:
Object
Square magnitudes.
Source:
FFT.sc
Subclasses:
PV_Conj
,
PV_MagNoise
,
PV_PhaseShift270
,
PV_PhaseShift90
See also:
FFT
,
IFFT
Description
Squares the magnitudes and renormalizes to previous peak. This makes weak bins weaker.
Class Methods
PV_MagSquared.
new
(
buffer
)
Arguments:
buffer
FFT buffer.
Inherited class methods
Instance Methods
Inherited instance methods
Examples
s.boot; ( b = Buffer.alloc(s,2048,1); c = Buffer.read(s, Platform.resourceDir +/+ "sounds/a11wlk01.wav"); ) ( SynthDef("help-magSquared", { arg out=0, bufnum=0, soundBufnum=2; var in, chain; in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chain = FFT(bufnum, in); chain = PV_MagSquared(chain); Out.ar(out, 0.003 * IFFT(chain).dup); }).play(s,[\out, 0, \bufnum, b.bufnum, \soundBufnum, c.bufnum]); )
helpfile source:
https://github.com/supercollider/supercollider/tree/3.13/HelpSource/Classes/PV_MagSquared.schelp
link::Classes/PV_MagSquared::