PV_MaxMagN:
Filter:
Description
Class methods
new
Inherited class methods
Instance methods
Inherited instance methods
Examples
Classes (extension)
|
Libraries
>
JoshUGens
|
UGens
>
FFT
PV_MaxMagN
:
PV_ChainUGen
:
WidthFirstUGen
:
UGen
:
AbstractFunction
:
Object
Extension
Return the N strongest bins
Source:
JoshPV.sc
Subclasses:
PV_MinMagN
Description
Class Methods
PV_MaxMagN.
new
(
buffer
,
numbins
)
Arguments:
buffer
numbins
Inherited class methods
Instance Methods
Inherited instance methods
Examples
s.boot; ( SynthDef(\maxmag, {arg fftbuf; var in, chain, out; in = SinOsc.ar(440, 0, 0.5) + PinkNoise.ar * 0.5; chain = FFT(fftbuf, in); // let the strongest (0 - 1023) partials through chain = PV_MaxMagN(chain, MouseX.kr(0,1023)); out = IFFT(chain); Out.ar(0, out); }).add; ) // the fft buf s.sendMsg(\b_alloc, 0, 2048); // start the synth s.sendMsg(\s_new, \maxmag, z = s.nextNodeID, 0, 1, \fftbuf, 0); // free it s.sendMsg(\n_free, z); s.sendMsg(\b_free, 0); s.quit
helpfile source:
/usr/local/share/SuperCollider/Extensions/SC3plugins/JoshUGens/HelpSource/Classes/PV_MaxMagN.schelp
link::Classes/PV_MaxMagN::