Skip to content

Release Peak Envelope Generator v1.0#1556

Closed
saul-l wants to merge 1 commit into
ReaTeam:masterfrom
saul-l:reapack.com_upload-1746122049848
Closed

Release Peak Envelope Generator v1.0#1556
saul-l wants to merge 1 commit into
ReaTeam:masterfrom
saul-l:reapack.com_upload-1746122049848

Conversation

@saul-l
Copy link
Copy Markdown
Contributor

@saul-l saul-l commented May 1, 2025

No description provided.

@@ -0,0 +1,277 @@
-- @description Peak Envelope Generator
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-- @description Peak Envelope Generator
-- @description Peak envelope generator

...to match the convention of native REAPER actions and other scripts. (Same with the filename.)

if reaper.GetOS() == "Win32" or reaper.GetOS() == "Win64" then
os.execute('start https://reapack.com')
else
os.execute('open https://reapack.com')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Linux it's xdg-open.

(There's CF_ShellExecute('url') in SWS that's cross-platform & avoids using the system shell but I don't think it would be appropriate here since it'd be yet another dependency that could be missing.)

(ReaPack_BrowsePackages itself won't emit any errors, but a simpler presence check could be if not ReaPack_BrowsePackages then.)

if smooth then reaper.Main_OnCommand(40331,0) end
selectedItems = SaveSelectedItems()
CalculateEnvelope()
reaper.Undo_EndBlock("peakEnvelope", -1)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This string is the undo point name shown to the user; wouldn't it be better if it matched the script's name "Peak envelope generator"?

Suggested change
reaper.Undo_EndBlock("peakEnvelope", -1)
reaper.Undo_EndBlock("Peak envelope generator", -1)

@cfillion cfillion closed this May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants