diff --git a/ultraschall_api/Changelog-Api.txt b/ultraschall_api/Changelog-Api.txt index 4d483b97..2b358c31 100644 --- a/ultraschall_api/Changelog-Api.txt +++ b/ultraschall_api/Changelog-Api.txt @@ -5,6 +5,8 @@ For 4.01.002: + PingMe - second parameter is not documented as optional!!! + How to get selection in category-list of Preferences? Edgemeal's way: diff --git a/ultraschall_api/Modules/ultraschall_functions_Render_Module.lua b/ultraschall_api/Modules/ultraschall_functions_Render_Module.lua index a907c834..353cf93c 100644 --- a/ultraschall_api/Modules/ultraschall_functions_Render_Module.lua +++ b/ultraschall_api/Modules/ultraschall_functions_Render_Module.lua @@ -3362,6 +3362,56 @@ function ultraschall.SetRender_QueueDelay(state, length) return retval end +function ultraschall.SetRender_SaveCopyOfProject(state) +--[[ + + SetRender_SaveCopyOfProject + + Ultraschall=4.00 + Reaper=5.975 + SWS=2.10.0.1 + JS=0.972 + Lua=5.3 + + boolean retval = ultraschall.SetRender_SaveCopyOfProject(boolean state) + + Sets the "Save copy of project to outfile.wav.RPP"-checkbox of the Render to File-dialog. + + Returns false in case of an error + + + boolean retval - true, setting was successful; false, it was unsuccessful + + + boolean state - true, check the checkbox; false, uncheck the checkbox + + + Configuration Settings + Render to File + + US_Api_Functions + Modules/ultraschall_functions_Render_Module.lua + render, set, checkbox, render, save copy of project + +]] + if type(state)~="boolean" then ultraschall.AddErrorMessage("SetRender_SaveCopyOfProject", "state", "must be a boolean", -1) return false end + local SaveCopyOfProject, hwnd, retval + if state==true then SaveCopyOfProject=1 else SaveCopyOfProject=0 end + hwnd = ultraschall.GetRenderToFileHWND() + if hwnd==nil then + retval = reaper.BR_Win32_WritePrivateProfileString("REAPER", "autosaveonrender2", SaveCopyOfProject, reaper.get_ini_file()) + retval = reaper.BR_Win32_WritePrivateProfileString("REAPER", "autosaveonrender", SaveCopyOfProject, reaper.get_ini_file()) + else + reaper.JS_WindowMessage_Send(reaper.JS_Window_FindChildByID(hwnd,1060), "BM_SETCHECK", SaveCopyOfProject,0,0,0) + retval = reaper.BR_Win32_WritePrivateProfileString("REAPER", "autosaveonrender2", SaveCopyOfProject, reaper.get_ini_file()) + retval = reaper.BR_Win32_WritePrivateProfileString("REAPER", "autosaveonrender", SaveCopyOfProject, reaper.get_ini_file()) + end + return retval +end + +--B=ultraschall.SetRender_SaveCopyOfProject(true) + + --A=ultraschall.SetRender_SaveCopyOfProject(true) --ultraschall.SetRender_QueueDelay(true, 118) --reaper.SNM_SetIntConfigVar("renderqdelay", 7) @@ -4439,14 +4489,15 @@ function ultraschall.RenderProject_RenderTable(projectfilename_with_path, Render -- change back the entries in RenderTable so the user does not have my temporary changes in it RenderTable["RenderPattern"]=RenderPattern RenderTable["RenderFile"]=RenderFile - + -- let's render: reaper.PreventUIRefresh(-1) -- prevent updating the userinterface, as I don't want flickering when rendered files are added and I'll delete them after that -- let's change creation of copies of the rendered outfile.rpp-setting, oldCopyOfProject = ultraschall.GetRender_SaveCopyOfProject() + ultraschall.SetRender_SaveCopyOfProject(RenderTable["SaveCopyOfProject"]) - + -- temporarily prevent creation of bak-files and save project, as otherwise we couldn't close the tab oldSaveOpts=reaper.SNM_GetIntConfigVar("saveopts", -111) if oldSaveOpts&1==1 then reaper.SNM_SetIntConfigVar("saveopts", oldSaveOpts-1) end @@ -4455,7 +4506,7 @@ function ultraschall.RenderProject_RenderTable(projectfilename_with_path, Render -- reset old Save Copy of Project to outfile-checkbox setting ultraschall.SetRender_SaveCopyOfProject(oldCopyOfProject) - + -- if no track has been added, the rendering was aborted by userinteraction or error if reaper.CountTracks(0)==OldTrackNumber then aborted=true end diff --git a/ultraschall_api4.1_001.zip b/ultraschall_api4.1_001.zip index 64795f89..67c8e02c 100644 Binary files a/ultraschall_api4.1_001.zip and b/ultraschall_api4.1_001.zip differ diff --git a/ultraschall_api_index-beta_rename_when_installing_it_works.xml b/ultraschall_api_index-beta_rename_when_installing_it_works.xml index 161aac79..e72263d8 100644 --- a/ultraschall_api_index-beta_rename_when_installing_it_works.xml +++ b/ultraschall_api_index-beta_rename_when_installing_it_works.xml @@ -6050,7 +6050,7 @@ Ultraschall API} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b\ab\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 -a 1129 Lua-functions library for Reaper.} +a 1130 Lua-functions library for Reaper.} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 @@ -6064,7 +6064,7 @@ The Ultraschall-Framework itself is intended to include a set of Lua-functions, \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 -This API was to be used within Ultraschall only, but quickly evolved into a huge 1129 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} +This API was to be used within Ultraschall only, but quickly evolved into a huge 1130 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\fs24\loch\f3 @@ -6188,7 +6188,7 @@ Ultraschall API} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b\ab\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 -a 1129 Lua-functions library for Reaper.} +a 1130 Lua-functions library for Reaper.} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 @@ -6202,7 +6202,7 @@ The Ultraschall-Framework itself is intended to include a set of Lua-functions, \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 -This API was to be used within Ultraschall only, but quickly evolved into a huge 1129 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} +This API was to be used within Ultraschall only, but quickly evolved into a huge 1130 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\fs24\loch\f3 diff --git a/ultraschall_api_prerelease_index.xml b/ultraschall_api_prerelease_index.xml index 161aac79..e72263d8 100644 --- a/ultraschall_api_prerelease_index.xml +++ b/ultraschall_api_prerelease_index.xml @@ -6050,7 +6050,7 @@ Ultraschall API} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b\ab\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 -a 1129 Lua-functions library for Reaper.} +a 1130 Lua-functions library for Reaper.} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 @@ -6064,7 +6064,7 @@ The Ultraschall-Framework itself is intended to include a set of Lua-functions, \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 -This API was to be used within Ultraschall only, but quickly evolved into a huge 1129 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} +This API was to be used within Ultraschall only, but quickly evolved into a huge 1130 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\fs24\loch\f3 @@ -6188,7 +6188,7 @@ Ultraschall API} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b\ab\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 -a 1129 Lua-functions library for Reaper.} +a 1130 Lua-functions library for Reaper.} \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 } \par \pard\plain \s0\nowidctlpar{\*\hyphen2\hyphlead2\hyphtrail2\hyphmax0}\cf0\kerning1\hich\af9\langfe2052\dbch\af7\afs24\lang1081\loch\f0\fs24\lang1031{\b0\ab0\rtlch \ltrch\loch\loch\f3 @@ -6202,7 +6202,7 @@ The Ultraschall-Framework itself is intended to include a set of Lua-functions, \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 -This API was to be used within Ultraschall only, but quickly evolved into a huge 1129 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} +This API was to be used within Ultraschall only, but quickly evolved into a huge 1130 function-library, that many 3rd-party programmers and scripters may find use in, with many useful features, like:} \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\loch\fs24\loch\f3 } \par \pard\plain \s18\sb0\sa120{\b0\afs24\ab0\rtlch \ltrch\fs24\loch\f3