I'm making great progress based on advice received here towards writing a script to automate rendering out all my piano midi files. Here's what I have so far:
Code:
RENDER = 40015
RENDER_RECENT_SETTINGS = 41824
RENDER_RECENT_SETTINGS_AND_CLOSE_DIALOG = 42230
reaper.Main_openProject("C:/Users/derek/AppData/Roaming/REAPER/TrackTemplates/improvtemplate.RTrackTemplate")
reaper.InsertMedia("C:/Users/derek/Dropbox/Music/midi/2009/2009 May 25 05.mid",8)
proj = reaper.EnumProjects(1)
reaper.Main_OnCommandEx(RENDER, 0, proj)
track = reaper.GetTrack(0, 0)
reaper.DeleteTrack(track)
I'm experimenting with the render actions. RENDER_RECENT_SETTINGS_AND_CLOSE_DIALOG is the one I ultimately will use once I enumerate all the files I want to render. However, my current question is:
How do I parameterize the output file name for the render? Right now it is untitled.mp3. Although I suppose if I use wildcards there and use the same "use most recent settings" command, perhaps I can achieve the effect I'm looking for.