When I came nearer I heard somebody ____the piano
When I came nearer I heard somebody playing the piano
Were playing (past continious)