playNote function with defaults parameters