The ASMAA controls the position of an aperture, which admits light to specific, computercontrolled positions on the ATR crystal, within the spectrofluidic device. Guided by the goal to have the most flexible fabrication protocol possible, the ATR crystal can be imbedded in the channel with ridges parallel or perpendicular to the direction of flow and/or the optical beam path.