Ejemplo n.º 1
0
def fill_instid_annotation(annot_fpath, instid_annot):
    """Fill an instrument id annotation with data from annot_fpath."""
    start_times, end_times, inst_labels = U.read_lab(annot_fpath, 3, 
                                                     delimiter=",", header=True)
    U.fill_range_annotation_data(start_times, end_times, inst_labels, 
                                 instid_annot)
    fill_instid_annotation_metadata(instid_annot)
Ejemplo n.º 2
0
def fill_instid_annotation(annot_fpath, instid_annot):
    """Fill an instrument id annotation with data from annot_fpath."""
    start_times, end_times, inst_labels = U.read_lab(annot_fpath,
                                                     3,
                                                     delimiter=",",
                                                     header=True)
    U.fill_range_annotation_data(start_times, end_times, inst_labels,
                                 instid_annot)
    fill_instid_annotation_metadata(instid_annot)
Ejemplo n.º 3
0
def fill_melody_annotation(annot_fpath, melody_annot, mel_type):
    """Fill a melody annotation with data from annot_fpath."""
    times, values = U.read_lab(annot_fpath, 2, delimiter=",")
    U.fill_timeseries_annotation_data(times, values, None, melody_annot)
    fill_melody_annotation_metadata(melody_annot, mel_type)
Ejemplo n.º 4
0
def fill_melody_annotation(annot_fpath, melody_annot, mel_type):
    """Fill a melody annotation with data from annot_fpath."""
    times, values = U.read_lab(annot_fpath, 2, delimiter=",")
    U.fill_timeseries_annotation_data(times, values, None, melody_annot)
    fill_melody_annotation_metadata(melody_annot, mel_type)