It's hard to understand ('which' in a phrase of 19th novel)
the whole population of Parker's Falls, consisting of shopkeepers, mistresses of boarding-houses, factory-girls, mill-men and schoolboys, rushed into the street and kept up such a terrible loquacity as more than compensated for the silence of the cotton-machines, which refrained from their usual din out of respect to the deceased.
In this paragraph, I'm confused whether 'which' is for [the people] or [the cotton-machines]?
Because of the tense 'refrained', I thought it is for cotton-machines,
(because if it's for [the people], isn't it correct that it has to be had refrained?!]
but it starts to confuse me.
1) [The people] refrained from their(people's) usual din out of respect to the deceased. But they rushed into the street and kept up such as a terrible loquacity ......
2) [The cotton-machines] refrained from their(machines') usual din out of respect to the deceased. But people rushed into the street and kept up such as a terrible loquacity ......
Which one is correct? Is there anybody could help me?