The show's instrumental jazz fusion theme music, written by Jack Elliott and Allyn Ferguson, opens with a distinctive bass line performed by studio musician Chuck Berghofer. The bass line was improvised by Berghofer at the request of producer Dominik Hauser: "Can you do something on the bass? This guy is a cop in New York. Can we just start it out with the bass?" The theme song was ranked # 23 and # 27, respectively, by Complex and Paste magazines, in their lists of "best TV theme songs".

Answer this question based on the passage: who played bass on barney miller theme song? OK. Let's think. My stream of consciousness:
To answer the above question, the relevant sentence is: The show's instrumental jazz fusion theme music, written by Jack Elliott and Allyn Ferguson, opens with a distinctive bass line performed by studio musician Chuck Berghofer. The answer is Chuck Berghofer.