I think I will just read and write it to a midi file
This works and I get
Song.seq.mid
but I would like Song seq.mid
if I do a gsub on source_filename then file:write(source_content) don't work.
Code:
retval, source_filename = reaper.GetUserFileNameForRead("", "Choose SEQ File", "seq")
file = io.open(source_filename, "rb")
source_content = file:read("*all")
file = io.open(source_filename ..".mid", "wb")
file:write(source_content)
file:close()