Adding to Harvey`s reply...
The ideology behind music was different in each period.
In the Baroque period, music was still considered more of a science than an art.
In the Classical period, people wanted to be entertained by it.
In the Romantic period, composers got sick of entertaining people and went in for emotional expression.
And today, there are as many ideologies as there are composers.