A barrel organ plays music by using turning a barrel , with notes decided by an arrangement of pins .
Since the music is hard-coded onto the barrel , the only way for a barrel organ to play a different set of tunes is to replace the barrel with another one .