def process_metadata(midi_file):
    out_file = (numpy_path / midi_file.relative_to(midi_path).with_suffix('.npy'))
    out_file.parent.mkdir(parents=True, exist_ok=True)
    if out_file.exists():
        return
    npenc = transform_midi(midi_file)
    if (npenc is not None):
        np.save(out_file, npenc)
def process_metadata(midi_file):
    out_file = (numpy_path / midi_file.relative_to(midi_path).with_suffix('.npy'))
    out_file.parent.mkdir(parents=True, exist_ok=True)
    if out_file.exists():
        return
    npenc = transform_midi(midi_file)
    if (npenc is not None):
        np.save(out_file, npenc)