refactored into DACSynthClass; reimplemented function sampling now dynamically on device