Yesterday I repaired an optical smoke detector. It has the assembly as you describe, with the proper mounting cradle for the IR emitter/receiver.
Now, to optically read a vibrating string; perhaps you have ideas, project has merit, go for it.
I do not know if a string will produce an useable...