Mélodies continue to be composed today, though perhaps the last uncontestedly great composer of them was Francis Poulenc, who died in 1963.
Mélodies are still played today. Though, the their last great composer was Francis Poulenc.