Get playNote function to work