#NEWLINE# def test_cqt( ) : #NEWLINE# #INDENT# sr = 11025 #NEWLINE# duration = 5.0 #NEWLINE# y = make_signal ( sr , duration ) #NEWLINE# for hop_length in [ ( - 1 ) , 0 , 16 , 63 , 65 ] : #NEWLINE# #INDENT# ( yield ( raises ( librosa . ParameterError ) ( __test_cqt_size ) , y , sr , hop_length , None , 72 , 12 , 0.0 , 2 , None , 1 , 0.01 ) ) #NEWLINE# #UNINDENT# ( yield ( raises ( librosa . ParameterError ) ( __test_cqt_size ) , y , sr , 512 , 500 , ( 4 * 12 ) , 12 , 0.0 , 2 , None , 1 , 0.01 ) ) #NEWLINE# for fmin in [ 3000 , 4800 ] : #NEWLINE# #INDENT# for n_bins in [ 1 , 2 ] : #NEWLINE# #INDENT# for bins_per_octave in [ 12 ] : #NEWLINE# #INDENT# ( yield ( __test_cqt_size , y , sr , 512 , fmin , n_bins , bins_per_octave , 0.0 , 2 , None , 1 , 0.01 ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for fmin in [ None , librosa . note_to_hz ( 'C2' ) ] : #NEWLINE# #INDENT# for n_bins in [ 1 , 12 , 24 , 48 , 72 , 74 , 76 ] : #NEWLINE# #INDENT# for bins_per_octave in [ 12 , 24 ] : #NEWLINE# #INDENT# for tuning in [ None , 0 , 0.25 ] : #NEWLINE# #INDENT# for resolution in [ 1 , 2 ] : #NEWLINE# #INDENT# for norm in [ 1 , 2 ] : #NEWLINE# #INDENT# ( yield ( __test_cqt_size , y , sr , 512 , fmin , n_bins , bins_per_octave , tuning , resolution , None , norm , 0.01 ) )