No, it's a music reference indicating speed. In writing music, a 'bar' is a measure of time. There are usually four beats in a bar, so 'Eight beats to the bar' means that there are many blasts of the whistle in rapid succession - perhaps meaning that a train is about to leave soon or is travelling fast.