PV_Morph:
Filter:
Description
Class methods
new
Inherited class methods
Instance methods
Inherited instance methods
Examples
Classes (extension)
|
UGens
>
FFT
PV_Morph
:
UGen
:
AbstractFunction
:
Object
Extension
one kind of spectral morphing
Source:
bhobFFT.sc
See also:
PV_XFade
Description
Morphs between two fft buffers.
Class Methods
PV_Morph.
new
(
bufferA
,
bufferB
,
morph: 0.0
)
Arguments:
bufferA
fft buffer A.
bufferB
fft buffer B.
morph
0-1
Inherited class methods
Instance Methods
Inherited instance methods
Examples
s.boot; ( b = Buffer.alloc(s,2048,1); c = Buffer.alloc(s,2048,1); d = Buffer.read(s,"sounds/a11wlk01.wav"); ) ( SynthDef("help-morph", { arg out=0, bufnumA=0, bufnumB=1; var inA, chainA, inB, chainB, chain; inA = Pulse.ar(180, LFCub.kr(1, 0, 0.1, 0.3), 0.5); inB = VarSaw.ar(190, 0, LFCub.kr(0.8, 0, 0.4, 0.5), 0.5); chainA = FFT(bufnumA, inA); chainB = FFT(bufnumB, inB); chain = PV_Morph(chainA, chainB, MouseX.kr); Out.ar(out, IFFT(chain).dup); }).play(s,[\out, 0, \bufnumA, b.bufnum, \bufnumB, c.bufnum ]); ) ( SynthDef("help-morph2", { arg out=0, bufnumA=0, bufnumB=1, soundBufnum=2; var inA, chainA, inB, chainB, chain; inA = Mix(Formant.ar([120, 180], [1200, 2000], [240, 360], 0.2)); inB = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1); chainA = FFT(bufnumA, inA); chainB = FFT(bufnumB, inB); chain = PV_Morph(chainA, chainB, MouseX.kr); Out.ar(out, IFFT(chain).dup); }).play(s,[\out, 0, \bufnumA, b.bufnum, \bufnumB, c.bufnum, \soundBufnum, d.bufnum]); )
helpfile source:
/usr/local/share/SuperCollider/Extensions/SC3plugins/BhobUGens/HelpSource/Classes/PV_Morph.schelp
link::Classes/PV_Morph::