@@ -4,23 +4,26 @@ FluidBufSpectralShape : FluidBufProcessor {
44 ^\FluidBufSpecShp
55 }
66
7- *kr { |source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , features, minFreq = 0 , maxFreq = -1 , rolloffPercent = 95 , unit = 0 , power = 0 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , padding = 1 , trig = 1 , blocking = 0 |
7+ *kr { |source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , features, select, minFreq = 0 , maxFreq = -1 , rolloffPercent = 95 , unit = 0 , power = 0 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , padding = 1 , trig = 1 , blocking = 0 |
88
99 var maxFFTSize = if (fftSize == -1 ) {windowSize.nextPowerOfTwo} {fftSize};
10+ var selectbits = select !? {FluidSpectralShape .prProcessSelect(select)} ?? {FluidSpectralShape .prProcessSelect(FluidSpectralShape .features)};
1011
1112 source = source.asUGenInput;
1213 features = features.asUGenInput;
1314
1415 source.isNil.if {"FluidBufSpectralShape: Invalid source buffer" .throw};
1516 features.isNil.if {"FluidBufSpectralShape: Invalid features buffer" .throw};
1617
17- ^FluidProxyUgen .kr(this .objectClassName++\Trigger , -1 , source, startFrame, numFrames, startChan, numChans, features, padding, minFreq, maxFreq, rolloffPercent, unit, power, windowSize, hopSize, fftSize, maxFFTSize, trig, blocking);
18+
19+ ^FluidProxyUgen .kr(this .objectClassName++\Trigger , -1 , source, startFrame, numFrames, startChan, numChans, features, padding, selectbits, minFreq, maxFreq, rolloffPercent, unit, power, windowSize, hopSize, fftSize, maxFFTSize, trig, blocking);
1820
1921 }
2022
21- *process { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , features, minFreq = 0 , maxFreq = -1 , rolloffPercent = 95 , unit = 0 , power = 0 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , padding = 1 , freeWhenDone = true , action|
23+ *process { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , features, select, minFreq = 0 , maxFreq = -1 , rolloffPercent = 95 , unit = 0 , power = 0 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , padding = 1 , freeWhenDone = true , action|
2224
2325 var maxFFTSize = if (fftSize == -1 ) {windowSize.nextPowerOfTwo} {fftSize};
26+ var selectbits = select !? {FluidSpectralShape .prProcessSelect(select)} ?? {FluidSpectralShape .prProcessSelect(FluidSpectralShape .features)};
2427
2528 source = source.asUGenInput;
2629 features = features.asUGenInput;
@@ -31,13 +34,14 @@ FluidBufSpectralShape : FluidBufProcessor {
3134 ^this .new(
3235 server, nil , [features]
3336 ).processList(
34- [source, startFrame, numFrames, startChan, numChans, features, padding, minFreq, maxFreq, rolloffPercent, unit, power, windowSize, hopSize, fftSize, maxFFTSize, 0 ], freeWhenDone, action
37+ [source, startFrame, numFrames, startChan, numChans, features, padding, selectbits, minFreq, maxFreq, rolloffPercent, unit, power, windowSize, hopSize, fftSize, maxFFTSize, 0 ], freeWhenDone, action
3538 );
3639 }
3740
38- *processBlocking { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , features, minFreq = 0 , maxFreq = -1 , rolloffPercent = 95 , unit = 0 , power = 0 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , padding = 1 , freeWhenDone = true , action|
41+ *processBlocking { |server, source, startFrame = 0 , numFrames = -1 , startChan = 0 , numChans = -1 , features, select, minFreq = 0 , maxFreq = -1 , rolloffPercent = 95 , unit = 0 , power = 0 , windowSize = 1024 , hopSize = -1 , fftSize = -1 , padding = 1 , freeWhenDone = true , action|
3942
4043 var maxFFTSize = if (fftSize == -1 ) {windowSize.nextPowerOfTwo} {fftSize};
44+ var selectbits = select !? {FluidSpectralShape .prProcessSelect(select)} ?? {FluidSpectralShape .prProcessSelect(FluidSpectralShape .features)};
4145
4246 source = source.asUGenInput;
4347 features = features.asUGenInput;
@@ -48,7 +52,7 @@ FluidBufSpectralShape : FluidBufProcessor {
4852 ^this .new(
4953 server, nil , [features]
5054 ).processList(
51- [source, startFrame, numFrames, startChan, numChans, features, padding, minFreq, maxFreq, rolloffPercent, unit, power, windowSize, hopSize, fftSize, maxFFTSize, 1 ], freeWhenDone, action
55+ [source, startFrame, numFrames, startChan, numChans, features, padding, selectbits, minFreq, maxFreq, rolloffPercent, unit, power, windowSize, hopSize, fftSize, maxFFTSize, 1 ], freeWhenDone, action
5256 );
5357 }
5458}
0 commit comments