Skip to content

Commit

Permalink
Update and rename daodan_Resample Notes Main.lua to daodan_Resample n…
Browse files Browse the repository at this point in the history
…otes.lua

correct file names
code cleanup
  • Loading branch information
jopoet authored Jan 13, 2025
1 parent 6bed59e commit 7acbbcc
Showing 1 changed file with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
-- @noindex

--Resample Notes - render selected MIDI notes, load sample to ReaSamplOmatic5000

--Midi Editor script to automatically copy selected notes to new item, apply fx,
Expand All @@ -8,7 +6,7 @@
--Basically. There are several options here so you can change the behavior to suit your needs. See [USER SETTINGS] section below.

--This is the main script. Can be launched from a preset/GUI script or by itself.
--Please, keep this script name as "Resample Notes Main.lua" for launching from preset/GUI script.
--Please, keep this script name as "daodan_Resample notes.lua" for launching from preset/GUI script.

--Have fun!

Expand Down Expand Up @@ -88,19 +86,6 @@ function runAction(action, actionID)
elseif action == 2 then --MIDI Editor section
reaper.MIDIEditor_LastFocused_OnCommand(reaper.NamedCommandLookup(actionID), 0)

--[[
if action == 1 then --native action Main
reaper.Main_OnCommand(actionID, 0)
elseif action == 2 then --native action MIDI Editor
reaper.MIDIEditor_LastFocused_OnCommand(actionID, 0)
elseif action == 3 then --custom action, script Main
reaper.Main_OnCommand(reaper.NamedCommandLookup(actionID), 0)
elseif action == 4 then --custom action, script MIDI Editor
reaper.MIDIEditor_LastFocused_OnCommand(reaper.NamedCommandLookup(actionID), 0)
--]]
end

end
Expand Down Expand Up @@ -140,7 +125,7 @@ function GetEditableMidiTakes(ME)--ME for Midi Editor
takeCount = takeCount + 1
takes_T[takeCount] = take
end
--say (#takes_T)--number of ME editable takes

return takes_T
end
end
Expand All @@ -163,7 +148,7 @@ function GetSelectedItemsTakes()
else
return
end
--say (#takes_T)--number of selected takes

return takes_T
end

Expand Down

0 comments on commit 7acbbcc

Please sign in to comment.