def test_read_features_wrong_fun(): my_file_struct = FileStruct("01_-_Come_Together.wav") my_file_struct.features_file = os.path.join( "fixtures", "01_-_Come_Together.json") mfcc = MFCC(my_file_struct, FeatureTypes.est_beatsync, sr=22050) mfcc.ref_power = np.mean mfcc.read_features()
def test_wrong_ref_power_mfcc(): """Test for wrong parameters for ref_power of the mfcc.""" MFCC(file_struct, FeatureTypes.framesync, ref_power="caca")