Bounce detector

Could it be that the notes are pre-programmed and the 'piano' only detects a knock and triggers the next note?