This does NOT work with MIDI files at present, because of SNAFU in SMF class, where end_write() opens the file on its own, without _file_path being set. Needs some careful work, because basically the SMF<=>SMFSource relationship is not tenable