On any given day, New Yorkers have opportunities aplenty to hear classical music, from concerts at Carnegie Hall and Lincoln Center to events at churches and other smaller venues.

But the Solera Quartet’s program on Tuesday afternoon was an altogether different occasion: Think Beethoven on a floating correctional facility.

The New York-based...