View Single Post
Old 09-21-2020, 12:02 AM   #4
Meo-Ada Mespotine
Human being with feelings
Meo-Ada Mespotine's Avatar
Join Date: Apr 2020
Location: Leipzig
Posts: 1,423

Not necessarily. The OP set the option, that new Midi items shall be created as modi-files in the prefs.
It's only natural to assume, that this function obeys this setting and creates a new midi item as .mid-file.
It works with the action I mentioned but not in other cases.

I think an optional parameter would help:
integer Create_Mid - 0 or nil, don't create it as midifile, 1, create as midifile, 2, obey preference's setting
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1294 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
Meo-Ada Mespotine is online now   Reply With Quote