Chris O'Shea pointed me on this very relevant project: Brain-Computer Interface for Musical Applications:
The objective of this project is to develop technology to interface the brain with musical devices. In addition to improving social well-being and gaining a better understanding of the underlying neurology of musical processing