You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
Python
24 lines
1.0 KiB
Python
FluidBufLoudness : UGen{
|
|
|
|
*kr { |source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, features, kWeighting = 1, truePeak = 1, windowSize = 1024, hopSize = 512, doneAction = 0|
|
|
|
|
var maxwindowSize = windowSize.nextPowerOfTwo;
|
|
|
|
source = source.asUGenInput;
|
|
features = features.asUGenInput;
|
|
|
|
source.isNil.if {"FluidBufPitch: Invalid source buffer".throw};
|
|
features.isNil.if {"FluidBufPitch: Invalid features buffer".throw};
|
|
|
|
^this.multiNew('control', source, startFrame, numFrames, startChan, numChans, features, kWeighting, truePeak, windowSize, hopSize, maxwindowSize, doneAction);
|
|
}
|
|
|
|
*process { |server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, features, kWeighting = 1, truePeak = 1, windowSize = 1024, hopSize = 512, action|
|
|
^FluidNRTProcess.new(
|
|
server, this, action, [features]
|
|
).process(
|
|
source, startFrame, numFrames, startChan, numChans, features, kWeighting, truePeak, windowSize, hopSize
|
|
);
|
|
}
|
|
}
|