Automated Methods For Audio-Based Music Analysis With Applications To Musicology