Some sort of wire recorder? The teeth of the 3d printer ‘driver’ (sorry lost on the terminology here) already make an imprint on the filament, maybe it could be made intentional