This commit implements a structure for sample processing and two implemenations of this structure in volume and pan effects.