FluidBufStats{ *process { arg server, source, startFrame = 0, numFrames = -1, startChan = 0, numChans = -1, stats, numDerivs = 0, low = 0, middle = 50, high = 100, action; source = source.asUGenInput; stats = stats.asUGenInput; source.isNil.if {"FluidBufStats: Invalid source buffer".throw}; stats.isNil.if {"FluidBufStats: Invalid stats buffer".throw}; server = server ? Server.default; forkIfNeeded{ server.sendMsg(\cmd, \BufStats, source, startFrame, numFrames, startChan, numChans, stats, numDerivs, low, middle, high); server.sync; stats = server.cachedBufferAt(stats); stats.updateInfo; server.sync; action.value(stats); }; } }