Hansen was for many years organist substitute for cathedral organist J. P. E. Hartmann in the Church of Our Lady. He also composed and has written a number of smaller pieces for piano and trumpet, but also other things such some Progressive End Exercises for Trumpet in F. In 1893 he joined the Royal Danish Academy of Music to teach trumpet there.