Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Resample Notes v1.0 #1481

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
258c7f1
Release Resample Notes v1.0
jopoet Jan 11, 2025
e8f9bf7
Update and rename Resample Notes GUI.lua to daodan_Resample Notes GUI…
jopoet Jan 12, 2025
5c912f4
Rename Resample Notes Main.lua to daodan_Resample Notes Main.lua
jopoet Jan 12, 2025
a581ffa
Update Dulpicate notes octave up (with fx).lua
jopoet Jan 12, 2025
132f96f
Update Dulpicate notes octave up.lua
jopoet Jan 12, 2025
959fbc4
Update Reverse notes and sample +pitch.lua
jopoet Jan 12, 2025
d171185
Update Reverse notes and sample.lua
jopoet Jan 12, 2025
8e6c487
Update Reversed on midi ch 2.lua
jopoet Jan 12, 2025
9fbf202
Update Reversed on new track.lua
jopoet Jan 12, 2025
556aa5c
Update Swell FX (reverse sample).lua
jopoet Jan 12, 2025
27b8e40
Update daodan_Resample Notes.lua
jopoet Jan 12, 2025
0094c66
Update daodan_Resample Notes.lua
jopoet Jan 12, 2025
aaf0881
Update and rename daodan_Resample Notes.lua to daodan_Resample notes.lua
jopoet Jan 13, 2025
d33ee28
Delete Resample Notes Presets directory
jopoet Jan 13, 2025
637561a
Create Resample notes Presets folder, daodan_Duplicate notes octave u…
jopoet Jan 13, 2025
57d9560
Upload other updated presets
jopoet Jan 13, 2025
6bed59e
Update and rename daodan_Resample Notes GUI.lua to daodan_Resample No…
jopoet Jan 13, 2025
7acbbcc
Update and rename daodan_Resample Notes Main.lua to daodan_Resample n…
jopoet Jan 13, 2025
ad737da
Rename daodan_Resample Notes - GUI.lua to daodan_Resample notes - GUI…
jopoet Jan 13, 2025
1445357
added -- @noindex
jopoet Jan 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
-- @noindex

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

--Midi Editor script to automatically copy selected notes to new item, apply fx,
--load sample to sampler, set root note in sampler, remove new item, mute origally selected notes in original item
--and insert root note in the corresponding possition.
--Basically. There are several options here so you can change the behavior to suit your needs. See [USER SETTINGS] section below.

--This is a preset script. Can run main script (daodan_Resample notes.lua) with [USER SETTINGS].
--Can be used to load preset from GUI script.

--Please keep list of variables in user setting section same as in main script
--and keep this script in "Resample Notes Presets" folder and keep "Resample Notes Presets" folder in the same folder with the main script.
--Have fun!

--[USER SETTINGS]-----------------------------------

--output--
loadToSampler = -1 --set 1 to load to rs5k, 0 to keep in arrange. set 2 for both (load to rs5k and keep in arrange). -1 to disable rendering (midi notes will still be copied)
samplerPreset = '' -- Set to 'Preset name' to load 'Preset name' preset in rs5k before setting root note and loading new sample. Keep as '' to load defaul preset
useNewTrack = 1 -- set 1 to insert rs5k/rendered audio to new track
keepTakes = 1 --1 to keep copied midi and rendered audio (before and after reverse) in takes in new item. Makes sense only when sample is keeped in arrange (only final take loaded to sampler)

--root note--
insertRootNote = 1 --set 1 to insert root note in MIDI item when sample loaded in rs5k
useOrigItemToInserRootNote = 1 --1 to insert root note in original midi item. Auto disabled when useNewTrack = 1 (because there is no point in inserting root note at orig track midi when rs5k is on another)
disableAutoCorrectOverlap = 1 --1 to disable Automatically correct overlapping notes option. Used (only) when root note inserted in orig item to prevent deletion of notes
getRootNoteMode = 0 --how to get root note. 0 - lowest note, 1 - user input, 2 - fixed (fixedRootNote)
fixedRootNote = 60 --value used when root note fixed or when no slected notes in user input mode
midiChannel = 1 --midi channel for inserted root note and rs5k. If set to 0 then all channels used in rs5k and ch1 used for inserted note

--reverse fun--
reverseNotes = 0 -- set 1 to reverse notes before rendering to audio
reverseSample = 0 --set 1 to reverse sample before loading to rs5k. "Item: Reverse items to new take" action used
shiftReversedSampleLeft = 0 --set to 1 to move item/note left to align reversed sample end to orig start. Useful for "Swell FX"

--sample lenght--
overrideApplyFxTail = 0 -- set 1 to override "Tail length when using Apply FX to items" value (Preferences > Media)
applyFxTail = 0 -- value used to temporary override Apply Fx tail length when overrideApplyFxTai l = 1
useFullSample = 0 -- set 1 to include apply fx tail in resampled item. Affects both item in arrange and sampler

--source--
selectedNotesOnly = 1 -- set 1 to solo selected notes before render. Other value to use all notes within time selection.
ignoreTimeSelection = 1 --set 1 to not use original time selection to set copy midi/render section. Otherwise section auto set to selected notes if selectedNotesOnly enabled and to all notes if selectedNotesOnly is disabled

--post-processing--
muteOrigNotes = 0 --1 to mute orig notes
bypassOrigFx = 0 --set 1 to bypass all fx on orig track beafore rs5k

preRenderAction = 1 -- run any action/script before rendering MIDI copy. Here selected item is a copy of selected notes from original item placed on original track.
--0 - no action,
--1 - main section, 2 - midi editor section
preRenderActionID = '_S&M_COPYFXCHAIN5' -- pre-render action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

postRenderAction = 2 -- run any action/script after rendering MIDI copy, before loading to sampler. Here selected item is rendered (audio) item placed on original track or new track if useNewTrack = 1
--0 - no action,
--1 - main section, 2 - midi editor section
postRenderActionID = '40179' -- post-render action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

postProcAction = 1 -- run any action/script after this script.
--0 - no action,
--1 - main section, 2 - midi editor section
postProcActionID = '_S&M_COPYFXCHAIN10' -- post-action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

--[USER SETTINGS END]-------------------------------



if wasRunToGetPresetFromGUI then return end --exit after loading user settings if was run to get preset

--RUN MAIN SCRIPT-----------------------
local dir = ({reaper.get_action_context()})[2]:match("^(.*[/\\])")
local goback = "..\\"
local mainScript = "daodan_Resample notes.lua"
externalRun = 'preset script'

dofile(dir..goback..mainScript)

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
-- @noindex

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

--Midi Editor script to automatically copy selected notes to new item, apply fx,
--load sample to sampler, set root note in sampler, remove new item, mute origally selected notes in original item
--and insert root note in the corresponding possition.
--Basically. There are several options here so you can change the behavior to suit your needs. See [USER SETTINGS] section below.

--This is a preset script. Can run main script (daodan_Resample notes.lua) with [USER SETTINGS].
--Can be used to load preset from GUI script.

--Please keep list of variables in user setting section same as in main script
--and keep this script in "Resample Notes Presets" folder and keep "Resample Notes Presets" folder in the same folder with the main script.
--Have fun!

--[USER SETTINGS]-----------------------------------

--output--
loadToSampler = -1 --set 1 to load to rs5k, 0 to keep in arrange. set 2 for both (load to rs5k and keep in arrange). -1 to disable rendering (midi notes will still be copied)
samplerPreset = '' -- Set to 'Preset name' to load 'Preset name' preset in rs5k before setting root note and loading new sample. Keep as '' to load defaul preset
useNewTrack = 1 -- set 1 to insert rs5k/rendered audio to new track
keepTakes = 1 --1 to keep copied midi and rendered audio (before and after reverse) in takes in new item. Makes sense only when sample is keeped in arrange (only final take loaded to sampler)

--root note--
insertRootNote = 1 --set 1 to insert root note in MIDI item when sample loaded in rs5k
useOrigItemToInserRootNote = 1 --1 to insert root note in original midi item. Auto disabled when useNewTrack = 1 (because there is no point in inserting root note at orig track midi when rs5k is on another)
disableAutoCorrectOverlap = 1 --1 to disable Automatically correct overlapping notes option. Used (only) when root note inserted in orig item to prevent deletion of notes
getRootNoteMode = 0 --how to get root note. 0 - lowest note, 1 - user input, 2 - fixed (fixedRootNote)
fixedRootNote = 60 --value used when root note fixed or when no slected notes in user input mode
midiChannel = 1 --midi channel for inserted root note and rs5k. If set to 0 then all channels used in rs5k and ch1 used for inserted note

--reverse fun--
reverseNotes = 0 -- set 1 to reverse notes before rendering to audio
reverseSample = 0 --set 1 to reverse sample before loading to rs5k. "Item: Reverse items to new take" action used
shiftReversedSampleLeft = 0 --set to 1 to move item/note left to align reversed sample end to orig start. Useful for "Swell FX"

--sample lenght--
overrideApplyFxTail = 0 -- set 1 to override "Tail length when using Apply FX to items" value (Preferences > Media)
applyFxTail = 0 -- value used to temporary override Apply Fx tail length when overrideApplyFxTai l = 1
useFullSample = 0 -- set 1 to include apply fx tail in resampled item. Affects both item in arrange and sampler

--source--
selectedNotesOnly = 1 -- set 1 to solo selected notes before render. Other value to use all notes within time selection.
ignoreTimeSelection = 1 --set 1 to not use original time selection to set copy midi/render section. Otherwise section auto set to selected notes if selectedNotesOnly enabled and to all notes if selectedNotesOnly is disabled

--post-processing--
muteOrigNotes = 0 --1 to mute orig notes
bypassOrigFx = 0 --set 1 to bypass all fx on orig track beafore rs5k

preRenderAction = 0 -- run any action/script before rendering MIDI copy. Here selected item is a copy of selected notes from original item placed on original track.
--0 - no action,
--1 - main section, 2 - midi editor section
preRenderActionID = '_S&M_COPYFXCHAIN5' -- pre-render action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

postRenderAction = 2 -- run any action/script after rendering MIDI copy, before loading to sampler. Here selected item is rendered (audio) item placed on original track or new track if useNewTrack = 1
--0 - no action,
--1 - main section, 2 - midi editor section
postRenderActionID = '40179' -- post-render action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

postProcAction = 0 -- run any action/script after this script.
--0 - no action,
--1 - main section, 2 - midi editor section
postProcActionID = '_S&M_COPYFXCHAIN10' -- post-action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

--[USER SETTINGS END]-------------------------------



if wasRunToGetPresetFromGUI then return end --exit after loading user settings if was run to get preset

--RUN MAIN SCRIPT-----------------------
local dir = ({reaper.get_action_context()})[2]:match("^(.*[/\\])")
local goback = "..\\"
local mainScript = "daodan_Resample notes.lua"
externalRun = 'preset script'

dofile(dir..goback..mainScript)

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
-- @noindex

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

--Midi Editor script to automatically copy selected notes to new item, apply fx,
--load sample to sampler, set root note in sampler, remove new item, mute origally selected notes in original item
--and insert root note in the corresponding possition.
--Basically. There are several options here so you can change the behavior to suit your needs. See [USER SETTINGS] section below.

--This is a preset script. Can run main script (daodan_Resample notes.lua) with [USER SETTINGS].
--Can be used to load preset from GUI script.

--Please keep list of variables in user setting section same as in main script
--and keep this script in "Resample Notes Presets" folder and keep "Resample Notes Presets" folder in the same folder with the main script.
--Have fun!

--[USER SETTINGS]-----------------------------------

--output--
loadToSampler = 1 --set 1 to load to rs5k, 0 to keep in arrange. set 2 for both (load to rs5k and keep in arrange). -1 to disable rendering (midi notes will still be copied)
samplerPreset = '' -- Set to 'Preset name' to load 'Preset name' preset in rs5k before setting root note and loading new sample. Keep as '' to load defaul preset
useNewTrack = 0 -- set 1 to insert rs5k/rendered audio to new track
keepTakes = 1 --1 to keep copied midi and rendered audio (before and after reverse) in takes in new item. Makes sense only when sample is keeped in arrange (only final take loaded to sampler)

--root note--
insertRootNote = 1 --set 1 to insert root note in MIDI item when sample loaded in rs5k
useOrigItemToInserRootNote = 1 --1 to insert root note in original midi item. Auto disabled when useNewTrack = 1 (because there is no point in inserting root note at orig track midi when rs5k is on another)
disableAutoCorrectOverlap = 1 --1 to disable Automatically correct overlapping notes option. Used (only) when root note inserted in orig item to prevent deletion of notes
getRootNoteMode = 0 --how to get root note. 0 - lowest note, 1 - user input, 2 - fixed (fixedRootNote)
fixedRootNote = 60 --value used when root note fixed or when no slected notes in user input mode
midiChannel = 1 --midi channel for inserted root note and rs5k. If set to 0 then all channels used in rs5k and ch1 used for inserted note

--reverse fun--
reverseNotes = 0 -- set 1 to reverse notes before rendering to audio
reverseSample = 0 --set 1 to reverse sample before loading to rs5k. "Item: Reverse items to new take" action used
shiftReversedSampleLeft = 0 --set to 1 to move item/note left to align reversed sample end to orig start. Useful for "Swell FX"

--sample lenght--
overrideApplyFxTail = 0 -- set 1 to override "Tail length when using Apply FX to items" value (Preferences > Media)
applyFxTail = 0 -- value used to temporary override Apply Fx tail length when overrideApplyFxTai l = 1
useFullSample = 0 -- set 1 to include apply fx tail in resampled item. Affects both item in arrange and sampler

--source--
selectedNotesOnly = 1 -- set 1 to solo selected notes before render. Other value to use all notes within time selection.
ignoreTimeSelection = 0 --set 1 to not use original time selection to set copy midi/render section. Otherwise section auto set to selected notes if selectedNotesOnly enabled and to all notes if selectedNotesOnly is disabled

--post-processing--
muteOrigNotes = 1 --1 to mute orig notes
bypassOrigFx = 1 --set 1 to bypass all fx on orig track beafore rs5k

preRenderAction = 0 -- run any action/script before rendering MIDI copy. Here selected item is a copy of selected notes from original item placed on original track.
--0 - no action,
--1 - main section, 2 - midi editor section
preRenderActionID = '' -- pre-render action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

postRenderAction = 0 -- run any action/script after rendering MIDI copy, before loading to sampler. Here selected item is rendered (audio) item placed on original track or new track if useNewTrack = 1
--0 - no action,
--1 - main section, 2 - midi editor section
postRenderActionID = '' -- post-render action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

postProcAction = 0 -- run any action/script after this script.
--0 - no action,
--1 - main section, 2 - midi editor section
postProcActionID = '' -- post-action id. Place inside ''. For example: '40515' or '_SWS_ITEMCUSTCOL1' or ''

--[USER SETTINGS END]-------------------------------



if wasRunToGetPresetFromGUI then return end --exit after loading user settings if was run to get preset

--RUN MAIN SCRIPT-----------------------
local dir = ({reaper.get_action_context()})[2]:match("^(.*[/\\])")
local goback = "..\\"
local mainScript = "daodan_Resample notes.lua"
externalRun = 'preset script'

dofile(dir..goback..mainScript)

Loading
Loading