def METHOD_NAME(self, obj, fmt, fp=None, subformats=(), **keywords):  # pragma: no cover
    music = ''
    if fp is None:
        fp = environLocal.getTempFile('.qm')
    for n in obj.flatten().notes:
        music = music + n.name + ' '
    music += '\n'
    with open(fp, 'w', encoding='utf-8') as f:
        f.METHOD_NAME(music)
    return fp