Teach sample_duration to also take opts and allow rate to be specified:

Allows you to discover the length of a specific sample (in seconds) when 
played at a specific rate:

    puts sample_duration :loop_amen           #;=> 1.753310657596372
    puts sample_duration :loop_amen, :rate, 2 #;=> 0.876655328798186