In [4]:
# import mir_eval
# a = mir_eval.io.load_labeled_intervals('/home/georgid/Documents/medleyDB/Annotations/AClassicEducation_NightOwl_SOURCEID.lab',delimiter=',')
# vocal_intervals = []
# vocal_labels = []
# for idx, label in enumerate(a[1]):
#     if label in VOCALS:
#         vocal_intervals.append(a[0][idx].tolist())
#         vocal_labels.append(label)
#         print label
# print vocal_intervals
# mir_eval.util.sort_labeled_intervals(vocal_intervals, vocal_labels)


# mir_eval.util.merge_labeled_intervals(vocal_intervals,vocal_labels)



import medleydb as mdb
import numpy
import mir_eval
import csv

ONLY_BOUNDARY = 0 # if set, store only the beginning of interval as a boundary, if 0, add end of interval

VOCALS = ["male singer", "female singer", "male speaker", "female speaker",
          "male rapper", "female rapper", "beatboxing", "vocalists"]
def samples_to_intervals(activations, min_diff = None):
    '''
    glue samples in time to intervals
    
    Parameters
    ----------------------
    activations: shape (n,2) 
        list of activation samples: (timestamp, confidence)
    min_diff:
        the minimal time, at which to split samples e.g. start a new time interval 
    
    Returns
    ----------------------------------------
    voiced_intervals: shape (n,2)
        list of (start_ts, end_ts)
    '''
    
    if min_diff == None:
        hop_size =  activations[1][0] - activations[0][0] + 0.001 # add 0.001 to avoid rounding differences
        min_diff = hop_size
    voiced_intervals = []
    start_ts = activations[0][0] # most recent start ts
    prev_sample = activations[0] # sample at previous ts
    
    for sample in activations[1:]:
        time_diff_prev = sample[0] - prev_sample[0]
        if time_diff_prev > min_diff: 
            voiced_intervals.append((start_ts, prev_sample[0])) # complete interval with most recent start_ts  
            start_ts = sample[0] # assign new start_ts
        prev_sample = sample
    voiced_intervals.append((start_ts, activations[-1,0])) # complete interval at last sample
    return voiced_intervals


def create_vocal_boundaries(track_name, activation_threshold=0.5, min_diff=0.5):
    '''
    Createa annotation of vocal boundaries. 
    take activations from http://medleydb.weebly.com/description.html#instrumentactivations with confidence > activation_threshold. 
    This replicates the way Source ID annotations are generated, but we allow to glue intervals within some min_diff (e.g. 0.5 seconds)  between consecutive intervals 
    '''
    mtrack = mdb.MultiTrack(track_name )
    predominant_stem = mtrack.predominant_stem
    print predominant_stem.instrument[0]
    
    activations = []
    if predominant_stem.instrument[0] in VOCALS:
        print ' track {}'.format(track_name)
        predominant_index = predominant_stem.stem_idx
        activation_conf = mtrack.activation_conf_from_stem(predominant_index)
        activation_conf_array = numpy.array(activation_conf)
        activations = activation_conf_array[numpy.where(activation_conf_array[:,1]>= activation_threshold)] 
    
    
    
    if len(activations) == 0:
        print 'no vocal activations for track {}'.format(track_name)
        return [],[],[]
    
    voiced_intervals = samples_to_intervals(activations, min_diff)
    
    ####### to boundaries
    voiced_boundaries = mir_eval.util.intervals_to_boundaries(voiced_intervals)
    voiced_boundaries = numpy.insert(voiced_boundaries, 0, 0) # prepend 0
    
    ##### assign vocal and novocal labels
    boundary_labels = ['vocal'] * len(voiced_boundaries)
    for i in range(0,len(boundary_labels),2):
        boundary_labels[i] = 'novocal'
    
    if not ONLY_BOUNDARY:
#         numpy.append(voiced_boundaries,mtrack.duration) # TODO: add boundary from vocal to last no-vocal
        all_intervals = mir_eval.util.boundaries_to_intervals(voiced_boundaries)
        boundary_labels.append('novocal')
    return voiced_boundaries, all_intervals, boundary_labels

In [39]:
################### example ussage: 1. create_vocal_boundaries and 2. store to csv

import glob
import os
path_vocals = '/Users/joro/Downloads/medleyDB_mono_vocal/'
vocal_tracks =  glob.glob(path_vocals + "*.wav")
vocal_track_names = []

for vocal_track in vocal_tracks:
        vocal_track_names.append(os.path.basename(vocal_track)[:-8]) # without .wav

for track_name in vocal_track_names:
    # 1. create_vocal_boundaries 
    voiced_boundaries, all_intervals,  labels = create_vocal_boundaries(track_name)
    
    ##### 2. store to csv 
    file_URI  = path_vocals + track_name +  '_MIX.csv'
    with open(file_URI,'w') as f:
        writer = csv.writer(f, delimiter=',')
        if ONLY_BOUNDARY:
            for boundary,  bd_label in zip(voiced_boundaries, labels):
                writer.writerow([boundary, bd_label])
        else:
            for interval, interval_label in zip(all_intervals, labels):
                print [interval[0], interval[1], interval_label]
                writer.writerow([interval[0], interval[1], interval_label])
    
#     raw_input('press for next track')


male singer
 track AClassicEducation_NightOwl
[[  0.00000000e+00   4.64000000e-02]
 [  4.64000000e-02   2.92570000e+00]
 [  2.92570000e+00   5.15480000e+00]
 [  5.15480000e+00   8.31270000e+00]
 [  8.31270000e+00   9.98460000e+00]
 [  9.98460000e+00   2.21054000e+01]
 [  2.21054000e+01   2.42416000e+01]
 [  2.42416000e+01   2.75853000e+01]
 [  2.75853000e+01   2.94429000e+01]
 [  2.94429000e+01   5.75855000e+01]
 [  5.75855000e+01   5.85143000e+01]
 [  5.85143000e+01   7.57435000e+01]
 [  7.57435000e+01   7.74618000e+01]
 [  7.74618000e+01   9.69665000e+01]
 [  9.69665000e+01   1.33096800e+02]
 [  1.33096800e+02   1.40016300e+02]
 [  1.40016300e+02   1.41502400e+02]
 [  1.41502400e+02   1.58035000e+02]
 [  1.58035000e+02   1.59335300e+02]
 [  1.59335300e+02   1.68437600e+02]]
HERE
[0.0, 0.046399999999999997, 'novocal']
[0.046399999999999997, 2.9257, 'vocal']
[2.9257, 5.1547999999999998, 'novocal']
[5.1547999999999998, 8.3126999999999995, 'vocal']
[8.3126999999999995, 9.9846000000000004, 'novocal']
[9.9846000000000004, 22.105399999999999, 'vocal']
[22.105399999999999, 24.241599999999998, 'novocal']
[24.241599999999998, 27.5853, 'vocal']
[27.5853, 29.442900000000002, 'novocal']
[29.442900000000002, 57.585500000000003, 'vocal']
[57.585500000000003, 58.514299999999999, 'novocal']
[58.514299999999999, 75.743499999999997, 'vocal']
[75.743499999999997, 77.461799999999997, 'novocal']
[77.461799999999997, 96.966499999999996, 'vocal']
[96.966499999999996, 133.0968, 'novocal']
[133.0968, 140.0163, 'vocal']
[140.0163, 141.50239999999999, 'novocal']
[141.50239999999999, 158.035, 'vocal']
[158.035, 159.33529999999999, 'novocal']
[159.33529999999999, 168.4376, 'vocal']
female singer
 track AimeeNorwich_Child
[[   0.       26.4707]
 [  26.4707  121.9512]]
HERE
[0.0, 26.470700000000001, 'novocal']
[26.470700000000001, 121.9512, 'vocal']
male singer
 track AlexanderRoss_GoodbyeBolero
[[   0.       11.5171]
 [  11.5171   16.4862]
 [  16.4862   17.1828]
 [  17.1828   21.8732]
 [  21.8732   23.22  ]
 [  23.22     33.6225]
 [  33.6225   35.5265]
 [  35.5265   40.542 ]
 [  40.542    41.2851]
 [  41.2851   45.3254]
 [  45.3254   46.5792]
 [  46.5792   51.409 ]
 [  51.409    52.9415]
 [  52.9415   57.1211]
 [  57.1211   60.1861]
 [  60.1861   62.8796]
 [  62.8796   64.9694]
 [  64.9694   92.7405]
 [  92.7405  110.4805]
 [ 110.4805  115.5425]
 [ 115.5425  116.4249]
 [ 116.4249  121.1617]
 [ 121.1617  122.4156]
 [ 122.4156  127.7098]
 [ 127.7098  128.7314]
 [ 128.7314  138.9946]
 [ 138.9946  140.9451]
 [ 140.9451  144.7996]
 [ 144.7996  146.7037]
 [ 146.7037  150.9761]
 [ 150.9761  152.9731]
 [ 152.9731  156.6418]
 [ 156.6418  159.2424]
 [ 159.2424  163.5149]
 [ 163.5149  165.0939]
 [ 165.0939  193.2365]
 [ 193.2365  257.7879]
 [ 257.7879  282.4011]]
HERE
[0.0, 11.517099999999999, 'novocal']
[11.517099999999999, 16.4862, 'vocal']
[16.4862, 17.1828, 'novocal']
[17.1828, 21.873200000000001, 'vocal']
[21.873200000000001, 23.219999999999999, 'novocal']
[23.219999999999999, 33.622500000000002, 'vocal']
[33.622500000000002, 35.526499999999999, 'novocal']
[35.526499999999999, 40.542000000000002, 'vocal']
[40.542000000000002, 41.2851, 'novocal']
[41.2851, 45.325400000000002, 'vocal']
[45.325400000000002, 46.5792, 'novocal']
[46.5792, 51.408999999999999, 'vocal']
[51.408999999999999, 52.941499999999998, 'novocal']
[52.941499999999998, 57.121099999999998, 'vocal']
[57.121099999999998, 60.186100000000003, 'novocal']
[60.186100000000003, 62.879600000000003, 'vocal']
[62.879600000000003, 64.969399999999993, 'novocal']
[64.969399999999993, 92.740499999999997, 'vocal']
[92.740499999999997, 110.48050000000001, 'novocal']
[110.48050000000001, 115.5425, 'vocal']
[115.5425, 116.42489999999999, 'novocal']
[116.42489999999999, 121.1617, 'vocal']
[121.1617, 122.4156, 'novocal']
[122.4156, 127.7098, 'vocal']
[127.7098, 128.73140000000001, 'novocal']
[128.73140000000001, 138.99459999999999, 'vocal']
[138.99459999999999, 140.9451, 'novocal']
[140.9451, 144.7996, 'vocal']
[144.7996, 146.7037, 'novocal']
[146.7037, 150.9761, 'vocal']
[150.9761, 152.97309999999999, 'novocal']
[152.97309999999999, 156.64179999999999, 'vocal']
[156.64179999999999, 159.2424, 'novocal']
[159.2424, 163.51490000000001, 'vocal']
[163.51490000000001, 165.09389999999999, 'novocal']
[165.09389999999999, 193.23650000000001, 'vocal']
[193.23650000000001, 257.78789999999998, 'novocal']
[257.78789999999998, 282.40109999999999, 'vocal']
male singer
 track AlexanderRoss_VelvetCurtain
[[   0.       12.353 ]
 [  12.353    33.3439]
 [  33.3439   34.6442]
 [  34.6442   39.799 ]
 [  39.799    40.542 ]
 [  40.542    45.6969]
 [  45.6969   46.4863]
 [  46.4863   51.5019]
 [  51.5019   52.4307]
 [  52.4307   57.5855]
 [  57.5855   59.2109]
 [  59.2109   81.3627]
 [  81.3627   82.1522]
 [  82.1522   94.5981]
 [  94.5981   95.3411]
 [  95.3411   97.8024]
 [  97.8024  111.3165]
 [ 111.3165  120.2794]
 [ 120.2794  122.88  ]
 [ 122.88    130.2175]
 [ 130.2175  134.8615]
 [ 134.8615  143.4993]
 [ 143.4993  146.5179]
 [ 146.5179  153.7161]
 [ 153.7161  170.3416]
 [ 170.3416  180.3726]
 [ 180.3726  182.1373]
 [ 182.1373  210.8836]
 [ 210.8836  212.0446]
 [ 212.0446  215.3883]
 [ 215.3883  216.2242]
 [ 216.2242  222.2614]
 [ 222.2614  223.2366]
 [ 223.2366  226.9518]
 [ 226.9518  228.8094]
 [ 228.8094  268.4227]
 [ 268.4227  281.2865]
 [ 281.2865  290.2959]
 [ 290.2959  292.7572]
 [ 292.7572  300.1411]
 [ 300.1411  304.6458]
 [ 304.6458  311.9369]
 [ 311.9369  316.07  ]
 [ 316.07    323.4075]
 [ 323.4075  349.6461]
 [ 349.6461  360.6523]
 [ 360.6523  364.3675]
 [ 364.3675  373.9806]
 [ 373.9806  379.7391]
 [ 379.7391  390.0488]
 [ 390.0488  393.1138]
 [ 393.1138  403.052 ]
 [ 403.052   407.7424]
 [ 407.7424  419.2595]
 [ 419.2595  421.9066]
 [ 421.9066  431.7518]
 [ 431.7518  436.8602]
 [ 436.8602  447.7736]
 [ 447.7736  450.0027]
 [ 450.0027  460.6839]]
HERE
[0.0, 12.353, 'novocal']
[12.353, 33.343899999999998, 'vocal']
[33.343899999999998, 34.644199999999998, 'novocal']
[34.644199999999998, 39.798999999999999, 'vocal']
[39.798999999999999, 40.542000000000002, 'novocal']
[40.542000000000002, 45.696899999999999, 'vocal']
[45.696899999999999, 46.4863, 'novocal']
[46.4863, 51.501899999999999, 'vocal']
[51.501899999999999, 52.430700000000002, 'novocal']
[52.430700000000002, 57.585500000000003, 'vocal']
[57.585500000000003, 59.210900000000002, 'novocal']
[59.210900000000002, 81.362700000000004, 'vocal']
[81.362700000000004, 82.152199999999993, 'novocal']
[82.152199999999993, 94.598100000000002, 'vocal']
[94.598100000000002, 95.341099999999997, 'novocal']
[95.341099999999997, 97.802400000000006, 'vocal']
[97.802400000000006, 111.3165, 'novocal']
[111.3165, 120.2794, 'vocal']
[120.2794, 122.88, 'novocal']
[122.88, 130.2175, 'vocal']
[130.2175, 134.86150000000001, 'novocal']
[134.86150000000001, 143.49930000000001, 'vocal']
[143.49930000000001, 146.5179, 'novocal']
[146.5179, 153.71610000000001, 'vocal']
[153.71610000000001, 170.3416, 'novocal']
[170.3416, 180.37260000000001, 'vocal']
[180.37260000000001, 182.13730000000001, 'novocal']
[182.13730000000001, 210.8836, 'vocal']
[210.8836, 212.0446, 'novocal']
[212.0446, 215.38829999999999, 'vocal']
[215.38829999999999, 216.2242, 'novocal']
[216.2242, 222.26140000000001, 'vocal']
[222.26140000000001, 223.23660000000001, 'novocal']
[223.23660000000001, 226.95179999999999, 'vocal']
[226.95179999999999, 228.80940000000001, 'novocal']
[228.80940000000001, 268.42270000000002, 'vocal']
[268.42270000000002, 281.28649999999999, 'novocal']
[281.28649999999999, 290.29590000000002, 'vocal']
[290.29590000000002, 292.75720000000001, 'novocal']
[292.75720000000001, 300.14109999999999, 'vocal']
[300.14109999999999, 304.64580000000001, 'novocal']
[304.64580000000001, 311.93689999999998, 'vocal']
[311.93689999999998, 316.06999999999999, 'novocal']
[316.06999999999999, 323.40750000000003, 'vocal']
[323.40750000000003, 349.64609999999999, 'novocal']
[349.64609999999999, 360.65230000000003, 'vocal']
[360.65230000000003, 364.36750000000001, 'novocal']
[364.36750000000001, 373.98059999999998, 'vocal']
[373.98059999999998, 379.73910000000001, 'novocal']
[379.73910000000001, 390.04880000000003, 'vocal']
[390.04880000000003, 393.11380000000003, 'novocal']
[393.11380000000003, 403.05200000000002, 'vocal']
[403.05200000000002, 407.74239999999998, 'novocal']
[407.74239999999998, 419.2595, 'vocal']
[419.2595, 421.90660000000003, 'novocal']
[421.90660000000003, 431.7518, 'vocal']
[431.7518, 436.86020000000002, 'novocal']
[436.86020000000002, 447.77359999999999, 'vocal']
[447.77359999999999, 450.0027, 'novocal']
[450.0027, 460.68389999999999, 'vocal']
male singer
 track Auctioneer_OurFutureFaces
[[   0.        0.9288]
 [   0.9288   22.1054]
 [  22.1054   29.9073]
 [  29.9073   36.6875]
 [  36.6875   37.6628]
 [  37.6628   42.5854]
 [  42.5854   52.3378]
 [  52.3378   65.0159]
 [  65.0159   65.6196]
 [  65.6196   70.6351]
 [  70.6351   96.8272]
 [  96.8272  107.787 ]
 [ 107.787   108.3443]
 [ 108.3443  164.9546]]
HERE
[0.0, 0.92879999999999996, 'novocal']
[0.92879999999999996, 22.105399999999999, 'vocal']
[22.105399999999999, 29.907299999999999, 'novocal']
[29.907299999999999, 36.6875, 'vocal']
[36.6875, 37.662799999999997, 'novocal']
[37.662799999999997, 42.5854, 'vocal']
[42.5854, 52.337800000000001, 'novocal']
[52.337800000000001, 65.015900000000002, 'vocal']
[65.015900000000002, 65.619600000000005, 'novocal']
[65.619600000000005, 70.635099999999994, 'vocal']
[70.635099999999994, 96.827200000000005, 'novocal']
[96.827200000000005, 107.78700000000001, 'vocal']
[107.78700000000001, 108.3443, 'novocal']
[108.3443, 164.9546, 'vocal']
male singer
 track AvaLuna_Waterduct
[[   0.       49.6443]
 [  49.6443   52.4307]
 [  52.4307   55.5886]
 [  55.5886   61.3007]
 [  61.3007   65.2945]
 [  65.2945   67.8951]
 [  67.8951   71.3317]
 [  71.3317   85.5888]
 [  85.5888   87.0284]
 [  87.0284   88.9789]
 [  88.9789   93.2513]
 [  93.2513   97.6167]
 [  97.6167   98.5919]
 [  98.5919  101.0532]
 [ 101.0532  105.5579]
 [ 105.5579  109.7375]
 [ 109.7375  111.8273]
 [ 111.8273  116.1462]
 [ 116.1462  117.1679]
 [ 117.1679  119.5828]
 [ 119.5828  120.4651]
 [ 120.4651  122.88  ]
 [ 122.88    128.267 ]
 [ 128.267   133.6541]
 [ 133.6541  134.5829]
 [ 134.5829  140.295 ]
 [ 140.295   142.0132]
 [ 142.0132  145.0783]
 [ 145.0783  147.7718]
 [ 147.7718  153.9947]
 [ 153.9947  155.6666]
 [ 155.6666  157.3849]
 [ 157.3849  157.8957]
 [ 157.8957  160.9607]
 [ 160.9607  163.2827]
 [ 163.2827  184.1342]
 [ 184.1342  186.0847]
 [ 186.0847  195.1869]
 [ 195.1869  196.7659]
 [ 196.7659  198.2984]
 [ 198.2984  202.6638]
 [ 202.6638  204.5678]
 [ 204.5678  205.3108]
 [ 205.3108  210.3263]
 [ 210.3263  214.9703]
 [ 214.9703  216.6886]
 [ 216.6886  217.5245]
 [ 217.5245  218.8249]
 [ 218.8249  221.1468]
 [ 221.1468  225.3264]
 [ 225.3264  226.5803]
 [ 226.5803  228.9488]
 [ 228.9488  233.7321]
 [ 233.7321  235.8219]
 [ 235.8219  239.955 ]
 [ 239.955   242.0448]]
HERE
[0.0, 49.644300000000001, 'novocal']
[49.644300000000001, 52.430700000000002, 'vocal']
[52.430700000000002, 55.5886, 'novocal']
[55.5886, 61.300699999999999, 'vocal']
[61.300699999999999, 65.294499999999999, 'novocal']
[65.294499999999999, 67.895099999999999, 'vocal']
[67.895099999999999, 71.331699999999998, 'novocal']
[71.331699999999998, 85.588800000000006, 'vocal']
[85.588800000000006, 87.028400000000005, 'novocal']
[87.028400000000005, 88.978899999999996, 'vocal']
[88.978899999999996, 93.251300000000001, 'novocal']
[93.251300000000001, 97.616699999999994, 'vocal']
[97.616699999999994, 98.591899999999995, 'novocal']
[98.591899999999995, 101.0532, 'vocal']
[101.0532, 105.5579, 'novocal']
[105.5579, 109.7375, 'vocal']
[109.7375, 111.82729999999999, 'novocal']
[111.82729999999999, 116.14619999999999, 'vocal']
[116.14619999999999, 117.1679, 'novocal']
[117.1679, 119.58280000000001, 'vocal']
[119.58280000000001, 120.46510000000001, 'novocal']
[120.46510000000001, 122.88, 'vocal']
[122.88, 128.267, 'novocal']
[128.267, 133.6541, 'vocal']
[133.6541, 134.5829, 'novocal']
[134.5829, 140.29499999999999, 'vocal']
[140.29499999999999, 142.01320000000001, 'novocal']
[142.01320000000001, 145.07830000000001, 'vocal']
[145.07830000000001, 147.77180000000001, 'novocal']
[147.77180000000001, 153.99469999999999, 'vocal']
[153.99469999999999, 155.66659999999999, 'novocal']
[155.66659999999999, 157.38489999999999, 'vocal']
[157.38489999999999, 157.89570000000001, 'novocal']
[157.89570000000001, 160.9607, 'vocal']
[160.9607, 163.28270000000001, 'novocal']
[163.28270000000001, 184.13419999999999, 'vocal']
[184.13419999999999, 186.0847, 'novocal']
[186.0847, 195.18690000000001, 'vocal']
[195.18690000000001, 196.76589999999999, 'novocal']
[196.76589999999999, 198.29839999999999, 'vocal']
[198.29839999999999, 202.66380000000001, 'novocal']
[202.66380000000001, 204.56780000000001, 'vocal']
[204.56780000000001, 205.3108, 'novocal']
[205.3108, 210.3263, 'vocal']
[210.3263, 214.97030000000001, 'novocal']
[214.97030000000001, 216.68860000000001, 'vocal']
[216.68860000000001, 217.52449999999999, 'novocal']
[217.52449999999999, 218.82490000000001, 'vocal']
[218.82490000000001, 221.14680000000001, 'novocal']
[221.14680000000001, 225.32640000000001, 'vocal']
[225.32640000000001, 226.58029999999999, 'novocal']
[226.58029999999999, 228.94880000000001, 'vocal']
[228.94880000000001, 233.7321, 'novocal']
[233.7321, 235.8219, 'vocal']
[235.8219, 239.95500000000001, 'novocal']
[239.95500000000001, 242.04480000000001, 'vocal']
male singer
 track BigTroubles_Phantom
[[   0.        9.7988]
 [   9.7988   59.536 ]
 [  59.536    65.4803]
 [  65.4803   90.8365]
 [  90.8365  123.9481]
 [ 123.9481  141.1773]]
HERE
[0.0, 9.7988, 'novocal']
[9.7988, 59.536000000000001, 'vocal']
[59.536000000000001, 65.4803, 'novocal']
[65.4803, 90.836500000000001, 'vocal']
[90.836500000000001, 123.9481, 'novocal']
[123.9481, 141.1773, 'vocal']
female singer
 track BrandonWebster_DontHearAThing
[[   0.        9.6131]
 [   9.6131   95.2947]
 [  95.2947  105.14  ]
 [ 105.14    139.7377]
 [ 139.7377  140.3878]
 [ 140.3878  169.5521]]
HERE
[0.0, 9.6130999999999993, 'novocal']
[9.6130999999999993, 95.294700000000006, 'vocal']
[95.294700000000006, 105.14, 'novocal']
[105.14, 139.73769999999999, 'vocal']
[139.73769999999999, 140.3878, 'novocal']
[140.3878, 169.5521, 'vocal']
male singer
 track BrandonWebster_YesSirICanFly
[[  0.       3.1115]
 [  3.1115  37.3377]
 [ 37.3377  38.0343]
 [ 38.0343  99.6136]]
HERE
[0.0, 3.1114999999999999, 'novocal']
[3.1114999999999999, 37.337699999999998, 'vocal']
[37.337699999999998, 38.034300000000002, 'novocal']
[38.034300000000002, 99.613600000000005, 'vocal']
male singer
 track CelestialShore_DieForUs
[[   0.        9.7059]
 [   9.7059   17.6936]
 [  17.6936   19.5512]
 [  19.5512   26.9816]
 [  26.9816   29.1643]
 [  29.1643   36.9197]
 [  36.9197   38.8238]
 [  38.8238   46.5328]
 [  46.5328   49.7836]
 [  49.7836   54.7991]
 [  54.7991   57.8177]
 [  57.8177   63.4369]
 [  63.4369   64.7372]
 [  64.7372   74.6289]
 [  74.6289   95.5269]
 [  95.5269  103.561 ]
 [ 103.561   105.3722]
 [ 105.3722  113.2205]
 [ 113.2205  116.4249]
 [ 116.4249  121.6261]
 [ 121.6261  124.4125]
 [ 124.4125  130.1711]
 [ 130.1711  131.3321]
 [ 131.3321  139.5055]
 [ 139.5055  140.9451]
 [ 140.9451  144.2888]]
HERE
[0.0, 9.7058999999999997, 'novocal']
[9.7058999999999997, 17.6936, 'vocal']
[17.6936, 19.551200000000001, 'novocal']
[19.551200000000001, 26.9816, 'vocal']
[26.9816, 29.164300000000001, 'novocal']
[29.164300000000001, 36.919699999999999, 'vocal']
[36.919699999999999, 38.823799999999999, 'novocal']
[38.823799999999999, 46.532800000000002, 'vocal']
[46.532800000000002, 49.7836, 'novocal']
[49.7836, 54.799100000000003, 'vocal']
[54.799100000000003, 57.817700000000002, 'novocal']
[57.817700000000002, 63.436900000000001, 'vocal']
[63.436900000000001, 64.737200000000001, 'novocal']
[64.737200000000001, 74.628900000000002, 'vocal']
[74.628900000000002, 95.526899999999998, 'novocal']
[95.526899999999998, 103.56100000000001, 'vocal']
[103.56100000000001, 105.37220000000001, 'novocal']
[105.37220000000001, 113.2205, 'vocal']
[113.2205, 116.42489999999999, 'novocal']
[116.42489999999999, 121.62609999999999, 'vocal']
[121.62609999999999, 124.41249999999999, 'novocal']
[124.41249999999999, 130.1711, 'vocal']
[130.1711, 131.3321, 'novocal']
[131.3321, 139.50550000000001, 'vocal']
[139.50550000000001, 140.9451, 'novocal']
[140.9451, 144.28880000000001, 'vocal']
female singer
 track ClaraBerryAndWooldog_AirTraffic
[[   0.       16.1611]
 [  16.1611   49.83  ]
 [  49.83     50.6195]
 [  50.6195   57.9106]
 [  57.9106   58.6536]
 [  58.6536   66.1769]
 [  66.1769   67.8487]
 [  67.8487   88.3751]
 [  88.3751   89.9541]
 [  89.9541   96.4093]
 [  96.4093  100.078 ]
 [ 100.078   140.3878]
 [ 140.3878  141.9204]
 [ 141.9204  164.9546]]
HERE
[0.0, 16.161100000000001, 'novocal']
[16.161100000000001, 49.829999999999998, 'vocal']
[49.829999999999998, 50.619500000000002, 'novocal']
[50.619500000000002, 57.910600000000002, 'vocal']
[57.910600000000002, 58.653599999999997, 'novocal']
[58.653599999999997, 66.176900000000003, 'vocal']
[66.176900000000003, 67.848699999999994, 'novocal']
[67.848699999999994, 88.375100000000003, 'vocal']
[88.375100000000003, 89.954099999999997, 'novocal']
[89.954099999999997, 96.409300000000002, 'vocal']
[96.409300000000002, 100.078, 'novocal']
[100.078, 140.3878, 'vocal']
[140.3878, 141.9204, 'novocal']
[141.9204, 164.9546, 'vocal']
female singer
 track ClaraBerryAndWooldog_Boys
[[   0.        4.226 ]
 [   4.226    34.4584]
 [  34.4584   39.8454]
 [  39.8454   84.7064]
 [  84.7064   97.756 ]
 [  97.756   141.3166]]
HERE
[0.0, 4.226, 'novocal']
[4.226, 34.458399999999997, 'vocal']
[34.458399999999997, 39.845399999999998, 'novocal']
[39.845399999999998, 84.706400000000002, 'vocal']
[84.706400000000002, 97.756, 'novocal']
[97.756, 141.31659999999999, 'vocal']
female singer
 track ClaraBerryAndWooldog_Stella
[[   0.       17.5078]
 [  17.5078   30.3717]
 [  30.3717   34.3191]
 [  34.3191   43.2356]
 [  43.2356   47.4616]
 [  47.4616   71.1459]
 [  71.1459   72.2605]
 [  72.2605   79.6444]
 [  79.6444   84.2884]
 [  84.2884   97.338 ]
 [  97.338   101.1926]
 [ 101.1926  109.7375]
 [ 109.7375  114.3351]
 [ 114.3351  125.62  ]
 [ 125.62    126.9203]
 [ 126.9203  147.6789]
 [ 147.6789  150.7904]
 [ 150.7904  157.9886]
 [ 157.9886  159.0102]
 [ 159.0102  166.9515]
 [ 166.9515  167.5552]
 [ 167.5552  184.1342]]
HERE
[0.0, 17.5078, 'novocal']
[17.5078, 30.371700000000001, 'vocal']
[30.371700000000001, 34.319099999999999, 'novocal']
[34.319099999999999, 43.235599999999998, 'vocal']
[43.235599999999998, 47.461599999999997, 'novocal']
[47.461599999999997, 71.145899999999997, 'vocal']
[71.145899999999997, 72.260499999999993, 'novocal']
[72.260499999999993, 79.644400000000005, 'vocal']
[79.644400000000005, 84.288399999999996, 'novocal']
[84.288399999999996, 97.337999999999994, 'vocal']
[97.337999999999994, 101.1926, 'novocal']
[101.1926, 109.7375, 'vocal']
[109.7375, 114.3351, 'novocal']
[114.3351, 125.62, 'vocal']
[125.62, 126.9203, 'novocal']
[126.9203, 147.6789, 'vocal']
[147.6789, 150.79040000000001, 'novocal']
[150.79040000000001, 157.98859999999999, 'vocal']
[157.98859999999999, 159.0102, 'novocal']
[159.0102, 166.95150000000001, 'vocal']
[166.95150000000001, 167.55520000000001, 'novocal']
[167.55520000000001, 184.13419999999999, 'vocal']
female singer
 track ClaraBerryAndWooldog_TheBadGuys
[[   0.       30.5575]
 [  30.5575   95.1554]
 [  95.1554   97.6167]
 [  97.6167  108.6694]
 [ 108.6694  110.0161]
 [ 110.0161  123.7159]
 [ 123.7159  124.7376]
 [ 124.7376  160.4499]
 [ 160.4499  164.583 ]
 [ 164.583   173.5459]
 [ 173.5459  176.7503]
 [ 176.7503  188.6389]
 [ 188.6389  191.8433]
 [ 191.8433  202.3387]
 [ 202.3387  206.1932]
 [ 206.1932  218.732 ]
 [ 218.732   220.8218]
 [ 220.8218  234.6144]]
HERE
[0.0, 30.557500000000001, 'novocal']
[30.557500000000001, 95.1554, 'vocal']
[95.1554, 97.616699999999994, 'novocal']
[97.616699999999994, 108.6694, 'vocal']
[108.6694, 110.01609999999999, 'novocal']
[110.01609999999999, 123.7159, 'vocal']
[123.7159, 124.7376, 'novocal']
[124.7376, 160.44990000000001, 'vocal']
[160.44990000000001, 164.583, 'novocal']
[164.583, 173.54589999999999, 'vocal']
[173.54589999999999, 176.75030000000001, 'novocal']
[176.75030000000001, 188.63890000000001, 'vocal']
[188.63890000000001, 191.8433, 'novocal']
[191.8433, 202.33869999999999, 'vocal']
[202.33869999999999, 206.19319999999999, 'novocal']
[206.19319999999999, 218.732, 'vocal']
[218.732, 220.8218, 'novocal']
[220.8218, 234.61439999999999, 'vocal']
female singer
 track ClaraBerryAndWooldog_WaltzForMyVictims
[[   0.       38.3129]
 [  38.3129   49.3656]
 [  49.3656   50.3409]
 [  50.3409   64.3193]
 [  64.3193   74.211 ]
 [  74.211    79.5051]
 [  79.5051   80.1088]
 [  80.1088   85.0779]
 [  85.0779   86.2854]
 [  86.2854  102.9573]
 [ 102.9573  104.3969]
 [ 104.3969  109.6911]
 [ 109.6911  110.3877]
 [ 110.3877  122.3227]]
HERE
[0.0, 38.312899999999999, 'novocal']
[38.312899999999999, 49.365600000000001, 'vocal']
[49.365600000000001, 50.340899999999998, 'novocal']
[50.340899999999998, 64.319299999999998, 'vocal']
[64.319299999999998, 74.210999999999999, 'novocal']
[74.210999999999999, 79.505099999999999, 'vocal']
[79.505099999999999, 80.108800000000002, 'novocal']
[80.108800000000002, 85.0779, 'vocal']
[85.0779, 86.285399999999996, 'novocal']
[86.285399999999996, 102.9573, 'vocal']
[102.9573, 104.3969, 'novocal']
[104.3969, 109.69110000000001, 'vocal']
[109.69110000000001, 110.3877, 'novocal']
[110.3877, 122.3227, 'vocal']
male singer
 track Creepoid_OldTree
[[   0.       15.7896]
 [  15.7896   65.2945]
 [  65.2945   93.7622]
 [  93.7622  143.8244]]
HERE
[0.0, 15.7896, 'novocal']
[15.7896, 65.294499999999999, 'vocal']
[65.294499999999999, 93.762200000000007, 'novocal']
[93.762200000000007, 143.8244, 'vocal']
male singer
 track Debussy_LenfantProdigue
[[   0.        4.3189]
 [   4.3189   18.0187]
 [  18.0187   18.9475]
 [  18.9475   31.3469]
 [  31.3469   34.8764]
 [  34.8764   73.8395]
 [  73.8395   81.1305]
 [  81.1305  166.9515]
 [ 166.9515  168.066 ]
 [ 168.066   211.9982]]
HERE
[0.0, 4.3189000000000002, 'novocal']
[4.3189000000000002, 18.018699999999999, 'vocal']
[18.018699999999999, 18.947500000000002, 'novocal']
[18.947500000000002, 31.346900000000002, 'vocal']
[31.346900000000002, 34.876399999999997, 'novocal']
[34.876399999999997, 73.839500000000001, 'vocal']
[73.839500000000001, 81.130499999999998, 'novocal']
[81.130499999999998, 166.95150000000001, 'vocal']
[166.95150000000001, 168.066, 'novocal']
[168.066, 211.9982, 'vocal']
male singer
 track DreamersOfTheGhetto_HeavyLove
[[   0.       41.7959]
 [  41.7959   45.186 ]
 [  45.186    46.4863]
 [  46.4863   53.313 ]
 [  53.313    54.0561]
 [  54.0561   56.4245]
 [  56.4245   57.539 ]
 [  57.539    61.858 ]
 [  61.858    62.6939]
 [  62.6939   68.8704]
 [  68.8704   70.1707]
 [  70.1707   72.1676]
 [  72.1676   73.5608]
 [  73.5608   77.6475]
 [  77.6475   78.7156]
 [  78.7156   84.3349]
 [  84.3349   86.6569]
 [  86.6569   92.5547]
 [  92.5547   93.4835]
 [  93.4835  140.9451]
 [ 140.9451  141.5024]
 [ 141.5024  149.3972]
 [ 149.3972  153.4839]
 [ 153.4839  165.1868]
 [ 165.1868  166.6728]
 [ 166.6728  173.2209]
 [ 173.2209  174.4747]
 [ 174.4747  183.1126]
 [ 183.1126  185.5274]
 [ 185.5274  268.98  ]
 [ 268.98    269.6301]
 [ 269.6301  276.7354]
 [ 276.7354  277.8964]
 [ 277.8964  280.5899]
 [ 280.5899  281.8438]
 [ 281.8438  283.3763]
 [ 283.3763  284.3516]
 [ 284.3516  285.3268]]
HERE
[0.0, 41.795900000000003, 'novocal']
[41.795900000000003, 45.186, 'vocal']
[45.186, 46.4863, 'novocal']
[46.4863, 53.313000000000002, 'vocal']
[53.313000000000002, 54.056100000000001, 'novocal']
[54.056100000000001, 56.424500000000002, 'vocal']
[56.424500000000002, 57.539000000000001, 'novocal']
[57.539000000000001, 61.857999999999997, 'vocal']
[61.857999999999997, 62.693899999999999, 'novocal']
[62.693899999999999, 68.870400000000004, 'vocal']
[68.870400000000004, 70.170699999999997, 'novocal']
[70.170699999999997, 72.167599999999993, 'vocal']
[72.167599999999993, 73.5608, 'novocal']
[73.5608, 77.647499999999994, 'vocal']
[77.647499999999994, 78.715599999999995, 'novocal']
[78.715599999999995, 84.334900000000005, 'vocal']
[84.334900000000005, 86.656899999999993, 'novocal']
[86.656899999999993, 92.554699999999997, 'vocal']
[92.554699999999997, 93.483500000000006, 'novocal']
[93.483500000000006, 140.9451, 'vocal']
[140.9451, 141.50239999999999, 'novocal']
[141.50239999999999, 149.3972, 'vocal']
[149.3972, 153.48390000000001, 'novocal']
[153.48390000000001, 165.18680000000001, 'vocal']
[165.18680000000001, 166.6728, 'novocal']
[166.6728, 173.2209, 'vocal']
[173.2209, 174.47470000000001, 'novocal']
[174.47470000000001, 183.11259999999999, 'vocal']
[183.11259999999999, 185.5274, 'novocal']
[185.5274, 268.98000000000002, 'vocal']
[268.98000000000002, 269.63010000000003, 'novocal']
[269.63010000000003, 276.73540000000003, 'vocal']
[276.73540000000003, 277.89640000000003, 'novocal']
[277.89640000000003, 280.5899, 'vocal']
[280.5899, 281.84379999999999, 'novocal']
[281.84379999999999, 283.37630000000001, 'vocal']
[283.37630000000001, 284.35160000000002, 'novocal']
[284.35160000000002, 285.32679999999999, 'vocal']
male singer
 track FacesOnFilm_WaitingForGa
[[   0.       17.9258]
 [  17.9258   41.9817]
 [  41.9817   65.8054]
 [  65.8054   91.208 ]
 [  91.208   139.134 ]
 [ 139.134   180.7441]]
HERE
[0.0, 17.925799999999999, 'novocal']
[17.925799999999999, 41.981699999999996, 'vocal']
[41.981699999999996, 65.805400000000006, 'novocal']
[65.805400000000006, 91.207999999999998, 'vocal']
[91.207999999999998, 139.13399999999999, 'novocal']
[139.13399999999999, 180.7441, 'vocal']
female singer
 track FamilyBand_Again
[[   0.        0.9288]
 [   0.9288    8.3592]
 [   8.3592   13.1425]
 [  13.1425   20.6658]
 [  20.6658   26.3779]
 [  26.3779   35.898 ]
 [  35.898    38.6844]
 [  38.6844   45.9755]
 [  45.9755   50.0622]
 [  50.0622   57.539 ]
 [  57.539    62.3688]
 [  62.3688   69.8921]
 [  69.8921   75.6042]
 [  75.6042   84.985 ]
 [  84.985    88.0036]
 [  88.0036   95.1089]
 [  95.1089  100.5888]
 [ 100.5888  108.0192]
 [ 108.0192  112.8954]
 [ 112.8954  125.7593]
 [ 125.7593  127.2454]
 [ 127.2454  148.2362]
 [ 148.2362  156.131 ]
 [ 156.131   156.7811]
 [ 156.7811  175.032 ]
 [ 175.032   176.4252]
 [ 176.4252  179.2116]
 [ 179.2116  181.8587]
 [ 181.8587  182.416 ]
 [ 182.416   186.9671]
 [ 186.9671  192.2612]
 [ 192.2612  194.9083]
 [ 194.9083  196.9981]
 [ 196.9981  199.4594]]
HERE
[0.0, 0.92879999999999996, 'novocal']
[0.92879999999999996, 8.3591999999999995, 'vocal']
[8.3591999999999995, 13.1425, 'novocal']
[13.1425, 20.665800000000001, 'vocal']
[20.665800000000001, 26.3779, 'novocal']
[26.3779, 35.898000000000003, 'vocal']
[35.898000000000003, 38.684399999999997, 'novocal']
[38.684399999999997, 45.975499999999997, 'vocal']
[45.975499999999997, 50.062199999999997, 'novocal']
[50.062199999999997, 57.539000000000001, 'vocal']
[57.539000000000001, 62.3688, 'novocal']
[62.3688, 69.892099999999999, 'vocal']
[69.892099999999999, 75.604200000000006, 'novocal']
[75.604200000000006, 84.984999999999999, 'vocal']
[84.984999999999999, 88.003600000000006, 'novocal']
[88.003600000000006, 95.108900000000006, 'vocal']
[95.108900000000006, 100.58880000000001, 'novocal']
[100.58880000000001, 108.0192, 'vocal']
[108.0192, 112.8954, 'novocal']
[112.8954, 125.7593, 'vocal']
[125.7593, 127.2454, 'novocal']
[127.2454, 148.2362, 'vocal']
[148.2362, 156.131, 'novocal']
[156.131, 156.78110000000001, 'vocal']
[156.78110000000001, 175.03200000000001, 'novocal']
[175.03200000000001, 176.42519999999999, 'vocal']
[176.42519999999999, 179.2116, 'novocal']
[179.2116, 181.8587, 'vocal']
[181.8587, 182.416, 'novocal']
[182.416, 186.96709999999999, 'vocal']
[186.96709999999999, 192.2612, 'novocal']
[192.2612, 194.9083, 'vocal']
[194.9083, 196.99809999999999, 'novocal']
[196.99809999999999, 199.45939999999999, 'vocal']
female singer
 track Handel_TornamiAVagheggiar
[[   0.       23.22  ]
 [  23.22     43.7928]
 [  43.7928   46.3006]
 [  46.3006   97.9418]
 [  97.9418  103.7003]
 [ 103.7003  139.2268]
 [ 139.2268  147.9576]
 [ 147.9576  168.484 ]
 [ 168.484   171.1775]
 [ 171.1775  222.958 ]]
HERE
[0.0, 23.219999999999999, 'novocal']
[23.219999999999999, 43.7928, 'vocal']
[43.7928, 46.300600000000003, 'novocal']
[46.300600000000003, 97.941800000000001, 'vocal']
[97.941800000000001, 103.7003, 'novocal']
[103.7003, 139.2268, 'vocal']
[139.2268, 147.95760000000001, 'novocal']
[147.95760000000001, 168.48400000000001, 'vocal']
[168.48400000000001, 171.17750000000001, 'novocal']
[171.17750000000001, 222.958, 'vocal']
male singer
 track HeladoNegro_MitadDelMundo
[[   0.       23.2664]
 [  23.2664   35.155 ]
 [  35.155    36.2696]
 [  36.2696   43.4213]
 [  43.4213   44.2572]
 [  44.2572   59.6288]
 [  59.6288   60.6505]
 [  60.6505   64.4122]
 [  64.4122   64.9694]
 [  64.9694   67.8951]
 [  67.8951   69.1026]
 [  69.1026   71.7032]
 [  71.7032   73.0964]
 [  73.0964   80.4804]
 [  80.4804   81.0376]
 [  81.0376   83.824 ]
 [  83.824    85.1708]
 [  85.1708   90.0005]
 [  90.0005   91.7188]
 [  91.7188  163.7936]]
HERE
[0.0, 23.266400000000001, 'novocal']
[23.266400000000001, 35.155000000000001, 'vocal']
[35.155000000000001, 36.269599999999997, 'novocal']
[36.269599999999997, 43.421300000000002, 'vocal']
[43.421300000000002, 44.257199999999997, 'novocal']
[44.257199999999997, 59.628799999999998, 'vocal']
[59.628799999999998, 60.650500000000001, 'novocal']
[60.650500000000001, 64.412199999999999, 'vocal']
[64.412199999999999, 64.969399999999993, 'novocal']
[64.969399999999993, 67.895099999999999, 'vocal']
[67.895099999999999, 69.102599999999995, 'novocal']
[69.102599999999995, 71.703199999999995, 'vocal']
[71.703199999999995, 73.096400000000003, 'novocal']
[73.096400000000003, 80.480400000000003, 'vocal']
[80.480400000000003, 81.037599999999998, 'novocal']
[81.037599999999998, 83.823999999999998, 'vocal']
[83.823999999999998, 85.1708, 'novocal']
[85.1708, 90.000500000000002, 'vocal']
[90.000500000000002, 91.718800000000002, 'novocal']
[91.718800000000002, 163.7936, 'vocal']
male singer
 track HezekiahJones_BorrowedHeart
[[  0.00000000e+00   9.29000000e-02]
 [  9.29000000e-02   1.94119000e+01]
 [  1.94119000e+01   3.31581000e+01]
 [  3.31581000e+01   3.73377000e+01]
 [  3.73377000e+01   4.02170000e+01]
 [  4.02170000e+01   8.59603000e+01]
 [  8.59603000e+01   8.67498000e+01]
 [  8.67498000e+01   8.67962000e+01]
 [  8.67962000e+01   1.72570700e+02]
 [  1.72570700e+02   2.41534000e+02]]
HERE
[0.0, 0.092899999999999996, 'novocal']
[0.092899999999999996, 19.411899999999999, 'vocal']
[19.411899999999999, 33.158099999999997, 'novocal']
[33.158099999999997, 37.337699999999998, 'vocal']
[37.337699999999998, 40.216999999999999, 'novocal']
[40.216999999999999, 85.960300000000004, 'vocal']
[85.960300000000004, 86.749799999999993, 'novocal']
[86.749799999999993, 86.796199999999999, 'vocal']
[86.796199999999999, 172.57069999999999, 'novocal']
[172.57069999999999, 241.53399999999999, 'vocal']
female singer
 track HopAlong_SisterCities
[[   0.       20.8051]
 [  20.8051   71.0066]
 [  71.0066   74.2574]
 [  74.2574  103.4681]
 [ 103.4681  104.722 ]
 [ 104.722   124.784 ]
 [ 124.784   126.1308]
 [ 126.1308  135.4652]
 [ 135.4652  138.3445]
 [ 138.3445  167.5088]
 [ 167.5088  168.3911]
 [ 168.3911  178.0042]
 [ 178.0042  179.0259]
 [ 179.0259  189.5677]
 [ 189.5677  190.125 ]
 [ 190.125   199.9702]
 [ 199.9702  201.6421]
 [ 201.6421  210.605 ]]
HERE
[0.0, 20.805099999999999, 'novocal']
[20.805099999999999, 71.006600000000006, 'vocal']
[71.006600000000006, 74.257400000000004, 'novocal']
[74.257400000000004, 103.46810000000001, 'vocal']
[103.46810000000001, 104.72199999999999, 'novocal']
[104.72199999999999, 124.78400000000001, 'vocal']
[124.78400000000001, 126.13079999999999, 'novocal']
[126.13079999999999, 135.46520000000001, 'vocal']
[135.46520000000001, 138.34450000000001, 'novocal']
[138.34450000000001, 167.50880000000001, 'vocal']
[167.50880000000001, 168.39109999999999, 'novocal']
[168.39109999999999, 178.0042, 'vocal']
[178.0042, 179.02590000000001, 'novocal']
[179.02590000000001, 189.5677, 'vocal']
[189.5677, 190.125, 'novocal']
[190.125, 199.97020000000001, 'vocal']
[199.97020000000001, 201.6421, 'novocal']
[201.6421, 210.60499999999999, 'vocal']
male singer
 track InvisibleFamiliars_DisturbingWildlife
[[   0.        1.7183]
 [   1.7183    6.6409]
 [   6.6409    7.2911]
 [   7.2911   24.7989]
 [  24.7989   26.0528]
 [  26.0528   37.5234]
 [  37.5234   38.638 ]
 [  38.638    50.4337]
 [  50.4337   51.3625]
 [  51.3625   62.8796]
 [  62.8796   65.1552]
 [  65.1552   93.9944]
 [  93.9944  116.9357]
 [ 116.9357  128.2206]
 [ 128.2206  129.0565]
 [ 129.0565  140.8058]
 [ 140.8058  145.3105]
 [ 145.3105  156.6883]
 [ 156.6883  157.6635]
 [ 157.6635  182.2302]
 [ 182.2302  183.1126]
 [ 183.1126  194.8619]
 [ 194.8619  195.8835]
 [ 195.8835  201.0848]
 [ 201.0848  201.735 ]
 [ 201.735   206.2396]]
HERE
[0.0, 1.7182999999999999, 'novocal']
[1.7182999999999999, 6.6409000000000002, 'vocal']
[6.6409000000000002, 7.2911000000000001, 'novocal']
[7.2911000000000001, 24.7989, 'vocal']
[24.7989, 26.052800000000001, 'novocal']
[26.052800000000001, 37.523400000000002, 'vocal']
[37.523400000000002, 38.637999999999998, 'novocal']
[38.637999999999998, 50.433700000000002, 'vocal']
[50.433700000000002, 51.362499999999997, 'novocal']
[51.362499999999997, 62.879600000000003, 'vocal']
[62.879600000000003, 65.155199999999994, 'novocal']
[65.155199999999994, 93.994399999999999, 'vocal']
[93.994399999999999, 116.9357, 'novocal']
[116.9357, 128.22059999999999, 'vocal']
[128.22059999999999, 129.0565, 'novocal']
[129.0565, 140.8058, 'vocal']
[140.8058, 145.31049999999999, 'novocal']
[145.31049999999999, 156.6883, 'vocal']
[156.6883, 157.6635, 'novocal']
[157.6635, 182.2302, 'vocal']
[182.2302, 183.11259999999999, 'novocal']
[183.11259999999999, 194.86189999999999, 'vocal']
[194.86189999999999, 195.8835, 'novocal']
[195.8835, 201.0848, 'vocal']
[201.0848, 201.73500000000001, 'novocal']
[201.73500000000001, 206.2396, 'vocal']
female singer
 track LizNelson_Coldwar
[[   0.       23.6379]
 [  23.6379   69.1955]
 [  69.1955   70.0778]
 [  70.0778  115.0781]
 [ 115.0781  115.914 ]
 [ 115.914   164.3508]]
HERE
[0.0, 23.637899999999998, 'novocal']
[23.637899999999998, 69.195499999999996, 'vocal']
[69.195499999999996, 70.077799999999996, 'novocal']
[70.077799999999996, 115.07810000000001, 'vocal']
[115.07810000000001, 115.914, 'novocal']
[115.914, 164.35079999999999, 'vocal']
female singer
 track LizNelson_ImComingHome
[[   0.        0.1858]
 [   0.1858   69.0097]
 [  69.0097   69.8456]
 [  69.8456  148.1433]
 [ 148.1433  148.747 ]
 [ 148.747   178.3293]]
HERE
[0.0, 0.18579999999999999, 'novocal']
[0.18579999999999999, 69.009699999999995, 'vocal']
[69.009699999999995, 69.845600000000005, 'novocal']
[69.845600000000005, 148.14330000000001, 'vocal']
[148.14330000000001, 148.74700000000001, 'novocal']
[148.74700000000001, 178.32929999999999, 'vocal']
female singer
 track LizNelson_Rainfall
[[   0.       14.3964]
 [  14.3964   28.0961]
 [  28.0961   28.607 ]
 [  28.607    35.155 ]
 [  35.155    35.7587]
 [  35.7587   57.8641]
 [  57.8641   58.8858]
 [  58.8858   89.629 ]
 [  89.629   101.7963]
 [ 101.7963  104.6291]
 [ 104.6291  105.6044]
 [ 105.6044  118.979 ]
 [ 118.979   119.5828]
 [ 119.5828  122.6478]
 [ 122.6478  123.3908]
 [ 123.3908  149.7223]
 [ 149.7223  150.326 ]
 [ 150.326   178.5615]
 [ 178.5615  191.0538]
 [ 191.0538  193.5615]
 [ 193.5615  194.769 ]
 [ 194.769   197.3696]
 [ 197.3696  198.2984]
 [ 198.2984  204.8464]
 [ 204.8464  205.7752]
 [ 205.7752  208.283 ]
 [ 208.283   208.9332]
 [ 208.9332  211.9517]
 [ 211.9517  212.6019]
 [ 212.6019  234.7537]
 [ 234.7537  236.0076]
 [ 236.0076  279.2432]]
HERE
[0.0, 14.3964, 'novocal']
[14.3964, 28.0961, 'vocal']
[28.0961, 28.606999999999999, 'novocal']
[28.606999999999999, 35.155000000000001, 'vocal']
[35.155000000000001, 35.758699999999997, 'novocal']
[35.758699999999997, 57.864100000000001, 'vocal']
[57.864100000000001, 58.885800000000003, 'novocal']
[58.885800000000003, 89.629000000000005, 'vocal']
[89.629000000000005, 101.7963, 'novocal']
[101.7963, 104.62909999999999, 'vocal']
[104.62909999999999, 105.6044, 'novocal']
[105.6044, 118.979, 'vocal']
[118.979, 119.58280000000001, 'novocal']
[119.58280000000001, 122.6478, 'vocal']
[122.6478, 123.3908, 'novocal']
[123.3908, 149.72229999999999, 'vocal']
[149.72229999999999, 150.32599999999999, 'novocal']
[150.32599999999999, 178.5615, 'vocal']
[178.5615, 191.0538, 'novocal']
[191.0538, 193.5615, 'vocal']
[193.5615, 194.76900000000001, 'novocal']
[194.76900000000001, 197.36959999999999, 'vocal']
[197.36959999999999, 198.29839999999999, 'novocal']
[198.29839999999999, 204.84639999999999, 'vocal']
[204.84639999999999, 205.77520000000001, 'novocal']
[205.77520000000001, 208.28299999999999, 'vocal']
[208.28299999999999, 208.9332, 'novocal']
[208.9332, 211.95169999999999, 'vocal']
[211.95169999999999, 212.6019, 'novocal']
[212.6019, 234.75370000000001, 'vocal']
[234.75370000000001, 236.0076, 'novocal']
[236.0076, 279.2432, 'vocal']
male singer
 track MatthewEntwistle_DontYouEver
[[   0.       29.3965]
 [  29.3965   33.3903]
 [  33.3903   33.9011]
 [  33.9011   38.4058]
 [  38.4058   38.9166]
 [  38.9166   43.7464]
 [  43.7464   44.2572]
 [  44.2572   48.7155]
 [  48.7155   52.0591]
 [  52.0591   62.4617]
 [  62.4617   62.9725]
 [  62.9725  107.6013]]
HERE
[0.0, 29.3965, 'novocal']
[29.3965, 33.390300000000003, 'vocal']
[33.390300000000003, 33.9011, 'novocal']
[33.9011, 38.405799999999999, 'vocal']
[38.405799999999999, 38.916600000000003, 'novocal']
[38.916600000000003, 43.746400000000001, 'vocal']
[43.746400000000001, 44.257199999999997, 'novocal']
[44.257199999999997, 48.715499999999999, 'vocal']
[48.715499999999999, 52.059100000000001, 'novocal']
[52.059100000000001, 62.4617, 'vocal']
[62.4617, 62.972499999999997, 'novocal']
[62.972499999999997, 107.60129999999999, 'vocal']
female singer
 track MatthewEntwistle_Lontano
[[   0.       12.4459]
 [  12.4459   13.4211]
 [  13.4211   17.2756]
 [  17.2756   19.6905]
 [  19.6905   21.0373]
 [  21.0373   22.1054]
 [  22.1054   25.0776]
 [  25.0776   28.2819]
 [  28.2819   28.9321]
 [  28.9321   36.0838]
 [  36.0838   39.0095]
 [  39.0095   46.1613]
 [  46.1613   48.4368]
 [  48.4368   53.6381]
 [  53.6381   54.5205]
 [  54.5205   59.3502]
 [  59.3502   63.7156]
 [  63.7156   77.5546]
 [  77.5546   80.9912]
 [  80.9912   87.1213]
 [  87.1213   91.2544]
 [  91.2544  103.4681]
 [ 103.4681  104.722 ]
 [ 104.722   112.6168]
 [ 112.6168  113.7313]
 [ 113.7313  119.9078]
 [ 119.9078  124.784 ]
 [ 124.784   126.1772]
 [ 126.1772  131.5178]
 [ 131.5178  138.5767]
 [ 138.5767  142.2919]
 [ 142.2919  149.7687]
 [ 149.7687  153.0659]
 [ 153.0659  158.8709]
 [ 158.8709  166.2549]
 [ 166.2549  167.4623]
 [ 167.4623  178.8401]
 [ 178.8401  182.3231]
 [ 182.3231  199.8309]
 [ 199.8309  200.6204]
 [ 200.6204  201.317 ]
 [ 201.317   201.3634]
 [ 201.3634  207.865 ]
 [ 207.865   208.7938]
 [ 208.7938  214.6917]
 [ 214.6917  216.0385]
 [ 216.0385  225.1407]
 [ 225.1407  225.8373]
 [ 225.8373  227.0912]
 [ 227.0912  228.1593]
 [ 228.1593  230.0169]
 [ 230.0169  230.667 ]
 [ 230.667   231.6887]
 [ 231.6887  233.2212]
 [ 233.2212  241.0231]
 [ 241.0231  244.8312]
 [ 244.8312  250.2647]
 [ 250.2647  253.7477]
 [ 253.7477  254.8622]
 [ 254.8622  255.8839]]
HERE
[0.0, 12.4459, 'novocal']
[12.4459, 13.421099999999999, 'vocal']
[13.421099999999999, 17.275600000000001, 'novocal']
[17.275600000000001, 19.6905, 'vocal']
[19.6905, 21.037299999999998, 'novocal']
[21.037299999999998, 22.105399999999999, 'vocal']
[22.105399999999999, 25.0776, 'novocal']
[25.0776, 28.2819, 'vocal']
[28.2819, 28.932099999999998, 'novocal']
[28.932099999999998, 36.083799999999997, 'vocal']
[36.083799999999997, 39.009500000000003, 'novocal']
[39.009500000000003, 46.161299999999997, 'vocal']
[46.161299999999997, 48.436799999999998, 'novocal']
[48.436799999999998, 53.638100000000001, 'vocal']
[53.638100000000001, 54.520499999999998, 'novocal']
[54.520499999999998, 59.350200000000001, 'vocal']
[59.350200000000001, 63.715600000000002, 'novocal']
[63.715600000000002, 77.554599999999994, 'vocal']
[77.554599999999994, 80.991200000000006, 'novocal']
[80.991200000000006, 87.121300000000005, 'vocal']
[87.121300000000005, 91.254400000000004, 'novocal']
[91.254400000000004, 103.46810000000001, 'vocal']
[103.46810000000001, 104.72199999999999, 'novocal']
[104.72199999999999, 112.6168, 'vocal']
[112.6168, 113.7313, 'novocal']
[113.7313, 119.90779999999999, 'vocal']
[119.90779999999999, 124.78400000000001, 'novocal']
[124.78400000000001, 126.1772, 'vocal']
[126.1772, 131.51779999999999, 'novocal']
[131.51779999999999, 138.57669999999999, 'vocal']
[138.57669999999999, 142.2919, 'novocal']
[142.2919, 149.7687, 'vocal']
[149.7687, 153.0659, 'novocal']
[153.0659, 158.87090000000001, 'vocal']
[158.87090000000001, 166.25489999999999, 'novocal']
[166.25489999999999, 167.4623, 'vocal']
[167.4623, 178.84010000000001, 'novocal']
[178.84010000000001, 182.32310000000001, 'vocal']
[182.32310000000001, 199.83090000000001, 'novocal']
[199.83090000000001, 200.62039999999999, 'vocal']
[200.62039999999999, 201.31700000000001, 'novocal']
[201.31700000000001, 201.36340000000001, 'vocal']
[201.36340000000001, 207.86500000000001, 'novocal']
[207.86500000000001, 208.7938, 'vocal']
[208.7938, 214.6917, 'novocal']
[214.6917, 216.0385, 'vocal']
[216.0385, 225.14070000000001, 'novocal']
[225.14070000000001, 225.8373, 'vocal']
[225.8373, 227.09119999999999, 'novocal']
[227.09119999999999, 228.1593, 'vocal']
[228.1593, 230.01689999999999, 'novocal']
[230.01689999999999, 230.667, 'vocal']
[230.667, 231.68870000000001, 'novocal']
[231.68870000000001, 233.22120000000001, 'vocal']
[233.22120000000001, 241.0231, 'novocal']
[241.0231, 244.8312, 'vocal']
[244.8312, 250.2647, 'novocal']
[250.2647, 253.74770000000001, 'vocal']
[253.74770000000001, 254.8622, 'novocal']
[254.8622, 255.88390000000001, 'vocal']
male singer
 track Meaxic_TakeAStep
[[   0.       38.8238]
 [  38.8238  167.2766]
 [ 167.2766  196.4873]
 [ 196.4873  242.3234]]
HERE
[0.0, 38.823799999999999, 'novocal']
[38.823799999999999, 167.2766, 'vocal']
[167.2766, 196.4873, 'novocal']
[196.4873, 242.32339999999999, 'vocal']
male singer
 track Meaxic_YouListen
[[   0.       36.8268]
 [  36.8268   44.0715]
 [  44.0715   46.2541]
 [  46.2541   53.8703]
 [  53.8703   54.7062]
 [  54.7062   74.3967]
 [  74.3967   82.9881]
 [  82.9881   89.3504]
 [  89.3504   93.8086]
 [  93.8086  106.8582]
 [ 106.8582  118.3289]
 [ 118.3289  120.6509]
 [ 120.6509  123.6695]
 [ 123.6695  130.9141]
 [ 130.9141  132.2609]
 [ 132.2609  172.5707]
 [ 172.5707  211.1623]
 [ 211.1623  229.6918]
 [ 229.6918  230.2955]
 [ 230.2955  255.8375]]
HERE
[0.0, 36.826799999999999, 'novocal']
[36.826799999999999, 44.0715, 'vocal']
[44.0715, 46.254100000000001, 'novocal']
[46.254100000000001, 53.8703, 'vocal']
[53.8703, 54.706200000000003, 'novocal']
[54.706200000000003, 74.396699999999996, 'vocal']
[74.396699999999996, 82.988100000000003, 'novocal']
[82.988100000000003, 89.350399999999993, 'vocal']
[89.350399999999993, 93.808599999999998, 'novocal']
[93.808599999999998, 106.8582, 'vocal']
[106.8582, 118.3289, 'novocal']
[118.3289, 120.65089999999999, 'vocal']
[120.65089999999999, 123.6695, 'novocal']
[123.6695, 130.91409999999999, 'vocal']
[130.91409999999999, 132.26089999999999, 'novocal']
[132.26089999999999, 172.57069999999999, 'vocal']
[172.57069999999999, 211.16229999999999, 'novocal']
[211.16229999999999, 229.6918, 'vocal']
[229.6918, 230.2955, 'novocal']
[230.2955, 255.83750000000001, 'vocal']
male singer
 track MusicDelta_80sRock
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-39-6e1ae9a18372> in <module>()
     12 for track_name in vocal_track_names:
     13     # 1. create_vocal_boundaries
---> 14     voiced_boundaries, all_intervals,  labels = create_vocal_boundaries(track_name)
     15 
     16     ##### 2. store to csv

<ipython-input-38-8a8007af1a3b> in create_vocal_boundaries(track_name, activation_threshold, min_diff)
     96     if not ONLY_BOUNDARY:
     97 #         numpy.append(voiced_boundaries,mtrack.duration)
---> 98         all_intervals = mir_eval.util.boundaries_to_intervals(voiced_boundaries)
     99         print all_intervals
    100         boundary_labels.append('novocal')

/usr/local/lib/python2.7/site-packages/mir_eval/util.pyc in boundaries_to_intervals(boundaries)
    265     """
    266 
--> 267     if not np.allclose(boundaries, np.unique(boundaries)):
    268         raise ValueError('Boundary times are not unique or not ascending.')
    269 

/usr/local/lib/python2.7/site-packages/numpy/core/numeric.pyc in allclose(a, b, rtol, atol, equal_nan)
   2457 
   2458     """
-> 2459     res = all(isclose(a, b, rtol=rtol, atol=atol, equal_nan=equal_nan))
   2460     return bool(res)
   2461 

/usr/local/lib/python2.7/site-packages/numpy/core/numeric.pyc in isclose(a, b, rtol, atol, equal_nan)
   2539     yfin = isfinite(y)
   2540     if all(xfin) and all(yfin):
-> 2541         return within_tol(x, y, atol, rtol)
   2542     else:
   2543         finite = xfin & yfin

/usr/local/lib/python2.7/site-packages/numpy/core/numeric.pyc in within_tol(x, y, atol, rtol)
   2522     def within_tol(x, y, atol, rtol):
   2523         with errstate(invalid='ignore'):
-> 2524             result = less_equal(abs(x-y), atol + rtol * abs(y))
   2525         if isscalar(a) and isscalar(b):
   2526             result = bool(result)

ValueError: operands could not be broadcast together with shapes (9,) (8,) 

In [11]:
voiced_intervals = numpy.array([[1,2],[5,6]])
voiced_boundaries = mir_eval.util.intervals_to_boundaries(voiced_intervals)
voiced_boundaries = numpy.insert(voiced_boundaries, 0, 0) # prepend 0
voiced_boundaries = numpy.append(voiced_boundaries,100) # TODO: add boundary from vocal to last no-vocal

all_intervals = mir_eval.util.boundaries_to_intervals(voiced_boundaries)
non_vocal_intervals = all_intervals[::2,:]
for interval in non_vocal_intervals:
    print interval[0]


0
2
6

In [ ]: