In ancient times, there was a famous musician called Gong Mingyi(公明仪), and he played the lute very well. One day, while he was playing the lute, he saw a cow eating grass outside the window. Suddenly he had an idea, why not play a melody for the cow? So he played music for the cow. But the cow ignored the music and continued to eat the grass as nothing happened. Then he realised that maybe the melody was too high for the cow to understand.
So he played a melody that imitated the buzzing of swarms of flying mosquitoes, and another melody of a calf bleating for its mates. At this time, the cow raised her head and listened attentively with her ears pricked up.
Later, the phrase “playing lute to a cow”(对牛弹琴-duì niú tán qín) was coined to mean offering a treat to an ungrateful audience, similar to the English idiom “to cast pearls before swine”.