HOPKINS: (Courtesy of Eriktorbjorn) slight optimisation of the sound code