Added implementation for pianoMachine.isRecording().