Old 08-06-2021, 12:36 AM   #2601
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,501
Default

Still looking for a script that selects all regions in a project (perhaps by opening Region Manager and selecting them there automatically). Is this scriptable?
Pink Wool is offline   Reply With Quote
Old 08-06-2021, 07:52 PM   #2602
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Quote:
Originally Posted by Pink Wool View Post
Okay, my fault! I explained this one badly. So what I'm looking for is a script that could select all the regions WITHOUT opening the Region Manager. Or one that would at least close it afterwords.

Would this be possible?

Edit: So here's what I'm trying to achieve; Regions have round corners when they aren't selected. I want them to have square ones. So I want them automatically selected with a script. I know this is stupid and trivial at best but darn, I just hate the look of round corners on my regions!
It can be made with an AutoHotKey script, you can put the AutoHotKey.exe in the scripts folder along with the script, BUT you need to be running Windows so let me know and I can make it up.

reaper.ExecProcess([[cmd.exe /C " cd ]] .. script_path .. [[ & "AutoHotkey.exe" "scripts/play.ahk"]],-2)
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 08-06-2021, 10:48 PM   #2603
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,501
Default

Quote:
Originally Posted by MusoBob View Post
It can be made with an AutoHotKey script, you can put the AutoHotKey.exe in the scripts folder along with the script, BUT you need to be running Windows so let me know and I can make it up.

reaper.ExecProcess([[cmd.exe /C " cd ]] .. script_path .. [[ & "AutoHotkey.exe" "scripts/play.ahk"]],-2)
Yeah, I'm on Windows!
Pink Wool is offline   Reply With Quote
Old 08-07-2021, 01:00 AM   #2604
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Reaper-ahk-Scripts.zip
Extract the script and folder to your Scripts folder and load the script. If you have AutoHotKey installed it will use it else it will use the included AutoHotKey.exe if you set it to run as administrator by right click exe.

Code:
winactivate, ahk_class REAPERwnd
WinMenuSelectItem, ahk_class REAPERwnd, , View, Region/Marker Manager

WinActivate , , "Region/Marker Manager", , 
Send,  {Tab}
Sleep 400
Send,  ^a
if WinExist("Region/Marker Manager")
    WinClose ; Use the window found by WinExist.
else
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak

Last edited by MusoBob; 08-07-2021 at 01:16 AM.
MusoBob is offline   Reply With Quote
Old 08-07-2021, 06:16 AM   #2605
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,501
Default

Quote:
Originally Posted by MusoBob View Post
Reaper-ahk-Scripts.zip
Extract the script and folder to your Scripts folder and load the script. If you have AutoHotKey installed it will use it else it will use the included AutoHotKey.exe if you set it to run as administrator by right click exe.

Code:
winactivate, ahk_class REAPERwnd
WinMenuSelectItem, ahk_class REAPERwnd, , View, Region/Marker Manager

WinActivate , , "Region/Marker Manager", , 
Send,  {Tab}
Sleep 400
Send,  ^a
if WinExist("Region/Marker Manager")
    WinClose ; Use the window found by WinExist.
else
Hey! Thanks! It works, well almost. It doesn't close the window (if it's docked) after opening it...could this be added?
Pink Wool is offline   Reply With Quote
Old 08-07-2021, 11:38 AM   #2606
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

I not sure where you have it Docked ?
If you comment out ";" the last function to close the Docker you can test it to get the Sleep time right
Code:
winactivate, ahk_class REAPERwnd
WinMenuSelectItem, ahk_class REAPERwnd, , View, Region/Marker Manager
Sleep 200
;WinActivate , , "Region/Marker Manager", , 
WinActivate , ahk_class #32770
WinActivate , , "Docker", , 
Sleep 100
Send,  {Tab}
Sleep 100
Send,  {Tab}
Sleep 100
Send,  {Tab}
Sleep 100
Send,  ^a
Sleep 100
;if WinExist("Region/Marker Manager")
;    WinClose ; Use the window found by WinExist.
;else

if WinExist("Docker")
    WinClose ; Use the window found by WinExist.
else
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 08-07-2021, 11:08 PM   #2607
Pink Wool
Human being with feelings
 
Pink Wool's Avatar
 
Join Date: Apr 2020
Posts: 1,501
Default

Quote:
Originally Posted by MusoBob View Post
I not sure where you have it Docked ?
If you comment out ";" the last function to close the Docker you can test it to get the Sleep time right
Code:
winactivate, ahk_class REAPERwnd
WinMenuSelectItem, ahk_class REAPERwnd, , View, Region/Marker Manager
Sleep 200
;WinActivate , , "Region/Marker Manager", , 
WinActivate , ahk_class #32770
WinActivate , , "Docker", , 
Sleep 100
Send,  {Tab}
Sleep 100
Send,  {Tab}
Sleep 100
Send,  {Tab}
Sleep 100
Send,  ^a
Sleep 100
;if WinExist("Region/Marker Manager")
;    WinClose ; Use the window found by WinExist.
;else

if WinExist("Docker")
    WinClose ; Use the window found by WinExist.
else
Seems too much of a hassle! But I can keep the RM undocked. Thanks for the script!
Pink Wool is offline   Reply With Quote
Old 08-08-2021, 07:59 AM   #2608
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 443
Default Select all items in group

Dear Script-Writers,

I'm working on a Custom-Action for "Show-Tracks".

It would be great if this action also works for tracks, which contain items that are grouped to the already selected items/tracks, also when those items/tracks are hidden.

Selecting items on a hidden track works out with the action: "Item: Select all items in track"

but not with:

"Item grouping: Select all items in groups", or
"SWS/AW: Select all items in group if grouping is enabled"


Would it be possible to modify one of those actions, that they also select items in groups, when they exist on a hidden track?

Thanks in advance.
OLSHALOM is offline   Reply With Quote
Old 08-09-2021, 12:10 AM   #2609
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

You should be able to get the "I_GROUPID" of the already selected items then by counting all the items set any with the same ID as selected

reaper.GetMediaItemInfo_Value( item, "I_GROUPID")

reaper.SetMediaItemSelected( item, true)
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 08-09-2021, 02:20 PM   #2610
OLSHALOM
Human being with feelings
 
Join Date: Sep 2019
Location: Austria
Posts: 443
Default

Quote:
Originally Posted by MusoBob View Post
You should be able to get the "I_GROUPID" of the already selected items then by counting all the items set any with the same ID as selected

reaper.GetMediaItemInfo_Value( item, "I_GROUPID")

reaper.SetMediaItemSelected( item, true)

Thanks a lot for your help.

As you can expect, this is totally new to me.
A long "standard-story" short:

Like a newbie does, I tried to modify the action "bfut_Unselect grouped items"
by changing "false" to true, sadly without success, as you guys, which know how it is done right, easily know why?

Code:
local COUNT_SEL_ITEMS = reaper.CountSelectedMediaItems(0)
if COUNT_SEL_ITEMS < 1 then
  return
end
reaper.Undo_BeginBlock2(0)
reaper.PreventUIRefresh(1)
for i = COUNT_SEL_ITEMS - 1, 0, -1 do
  local item = reaper.GetSelectedMediaItem(0, i)
  if math.abs(reaper.GetMediaItemInfo_Value(item, "I_GROUPID")) > 0 then
    reaper.SetMediaItemSelected(item, true)
  end
end
reaper.PreventUIRefresh(-1)
reaper.UpdateArrange()
reaper.Undo_EndBlock2(0, "bfut_Unselect grouped items", -1)
OLSHALOM is offline   Reply With Quote
Old 08-10-2021, 02:40 AM   #2611
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Will have a look in the morning when my brain's in gear.
__________________
ReaTrakStudio Chord Track for Reaper forum
www.reatrak.com
STASH Downloads https://stash.reaper.fm/u/ReaTrak
MusoBob is offline   Reply With Quote
Old 08-30-2021, 04:29 AM   #2612
hans
Human being with feelings
 
Join Date: Aug 2020
Posts: 276
Default

Hi!

Could anybody help out with a script involving the actions View: Restore next zoom/scroll position and View: Restore previous zoom level?

I want to scroll forward and back in position / zoom level using the mousewheel!

Last edited by hans; 08-30-2021 at 06:17 AM.
hans is offline   Reply With Quote
Old 08-31-2021, 09:30 AM   #2613
solger
Human being with feelings
 
solger's Avatar
 
Join Date: Mar 2013
Posts: 5,844
Default

Quote:
Originally Posted by hans View Post
Hi!

Could anybody help out with a script involving the actions View: Restore next zoom/scroll position and View: Restore previous zoom level?

I want to scroll forward and back in position / zoom level using the mousewheel!
Here are two examples for making a mousewheel Action or script:

Lua script
Code:
newValue,_ ,_ ,_,_,_ , val = reaper.get_action_context()
if newValue then
    if val > 0 then
      reaper.Main_OnCommand(40762, 0) -- View: Restore next zoom/scroll position
    else
      reaper.Main_OnCommand(40869, 0) -- View: Restore previous zoom level
    end
end
Custom Action
Code:
Action: Skip next action if CC parameter <0/mid
View: Restore next zoom/scroll position
Action: Skip next action if CC parameter >0/mid
View: Restore previous zoom level


If you want to invert the mousewheel behavior, change/swap either the if condition(s) or the position of the Actions.

As example:
Code:
newValue,_ ,_ ,_,_,_ , val = reaper.get_action_context()
if newValue then
    if val < 0 then
      reaper.Main_OnCommand(40762, 0) -- View: Restore next zoom/scroll position
    else
      reaper.Main_OnCommand(40869, 0) -- View: Restore previous zoom level
    end
end
Code:
Action: Skip next action if CC parameter <0/mid
View: Restore previous zoom level
Action: Skip next action if CC parameter >0/mid
View: Restore next zoom/scroll position
__________________
ReaLauncher

Last edited by solger; 08-31-2021 at 09:42 AM.
solger is offline   Reply With Quote
Old 08-31-2021, 11:21 PM   #2614
hans
Human being with feelings
 
Join Date: Aug 2020
Posts: 276
Default

solger, briliant answer. Thank you a lot!
hans is offline   Reply With Quote
Old 09-01-2021, 07:21 AM   #2615
Oliver Johann
Human being with feelings
 
Join Date: Feb 2021
Posts: 5
Default

I am a beginner, so please excuse the potentially stupid question.
For a drum sampler VST I need a MIDI mapper with the following functionality:

I have two MIDI devices, device 1 sends note n, device 2 is for CC#4 messages.
I devide the interval [0..127] in three intervalls, lets say [0..42], [43..85] and [86..127].
When device 1 sends note n, I want the mapper to map note n to note n1, n2 or n3 depending on the value of the CC#4 message at that time (or the last time the CC#4 value has changed). So for example, if the CC#4 value was 63 and hasn't changed since, and I now hit note n at velocity v, I want it to be mapped to note n2 with the same velocity v, because 63 is in the second interval.

(note n, n1, n2, n3 are given fixed notes, the only variable values are velocity v and CC#4 value)

Is there a script for a similar problem, so that I could try to modify the code?

Thanks
Oliver Johann is offline   Reply With Quote
Old 09-10-2021, 10:19 AM   #2616
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default req a toggle?

there is an SWS\BR action called
Hide all but selected track envelopes for all tracks

and when run it does that but then to see all the envelopes again, we have to run at least one other separate action, like

Toggle show all envelopes for all tracks

not sure if I should be asking here or over at SWS, but I'd like to see that first mentioned action work as a toggle so that we could momentarily show only the selected envelope and then toggle back to see them all.

Anyone???
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-10-2021, 09:23 PM   #2617
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

Quote:
Originally Posted by hopi View Post
there is an SWS\BR action called
Hide all but selected track envelopes for all tracks

and when run it does that but then to see all the envelopes again, we have to run at least one other separate action, like

Toggle show all envelopes for all tracks

not sure if I should be asking here or over at SWS, but I'd like to see that first mentioned action work as a toggle so that we could momentarily show only the selected envelope and then toggle back to see them all.

Anyone???
I can do that! Design question: if some of the selected tracks are already with envelopes displayed you would like it to
A) Display selected tracks envelopes hide others
B) Show all Envelopes


Also you really want that the toogle is between some displaying the envelopes and all displaying envelopes? No problem at this just questioning. Because I would think on the contrary: A) Display only the selected tracks B) Hide all
daniellumertz is offline   Reply With Quote
Old 09-11-2021, 09:54 AM   #2618
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Hi Dan... thanks for responding!

good questions:

well I don't often use automation showing directly on the wav form.... I almost always use it in lanes under the track, so that is what I'm mainly interested in doing the toggle for.

AFAIK there is no way to select more than one automation lane at a time, ...do you know of anyway to do more than one?

So what I was thinking the lua would do is hide all lanes for all tracks except the one selected lane upon first click of the lua, and then upon another click of the lua would return to the original view showing all lanes for all tracks. [that would be the toggle]

With all that said, I suppose I could also imagine another lua that only operated on the one selected track and left all other tracks un-touched so that the user could still the lanes on the other tracks and that way reference the location of their points in relation to the one lane being worked on.

What do you think???
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-11-2021, 10:22 PM   #2619
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

I will try to do tomorrow !
daniellumertz is offline   Reply With Quote
Old 09-12-2021, 09:50 AM   #2620
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

wonderful! Thanks very much
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-12-2021, 08:30 PM   #2621
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

Hey hopi sorry the delay, here it is I hope I got right what you wanted

Based what you wrote this script do this:

A)Show only selected envelope
B)Show all envelopes.

It will do A if it have at least one selected envelope AND MORE than 1 envelope being displayed before the action. Else it will do B

I just used main on command to do the actions , so you need SWS
:
Code:
 
function env_show_more_1() -- Is there more than 1 envelopes being displayed ? return boolean
    local display_env_count = 0
    for i = 0 , (reaper.CountTracks(0)-1) do
        local track = reaper.GetTrack(0, i)
        for i = 0, (reaper.CountTrackEnvelopes(track)-1) do
            local envelope = reaper.GetTrackEnvelope( track, i )
            local retval, chunk = reaper.GetEnvelopeStateChunk(envelope, '', false)
            local is_show = tonumber(string.match(chunk,"VIS (%d) %d %d"))
            if is_show == 1 then -- Count as being displayed
                display_env_count = display_env_count + 1
            end
            --break env and track loop if MORE than 1 
            if display_env_count > 1 then return true end
        end
    end
    return false
end


if env_show_more_1() and reaper.GetSelectedEnvelope(0) then -- Is there more than one envelope being displayed AND is there a selected envelope?
    reaper.Main_OnCommand( reaper.NamedCommandLookup( "_BR_ENV_HIDE_ALL_BUT_ACTIVE_NO_TR_L" ), 0) -- SWS/BR: Hide all but selected track envelope for all tracks (except envelopes in track lanes)
else
    reaper.Main_OnCommand(41149, 0) -- Envelope: Show all envelopes for all tracks
end

I would design the script a little different between two states:

A) Showing all envelopes of selected tracks and hiding others.
B) Showing all envelopes.

It will do A if it have at least one selected track AND at least one envelope being displayed at a non selected track. Else it will do B

Code:
 
function seltracks_env_show_more_1() -- Is there more than 1 envelopes being displayed ? return boolean
    local display_env_count = 0
    for i = 0 , (reaper.CountTracks(0)-1) do
        local track = reaper.GetTrack(0, i)
        if reaper.IsTrackSelected(track) == false then
            for i = 0, (reaper.CountTrackEnvelopes(track)-1) do
                local envelope = reaper.GetTrackEnvelope( track, i )
                local retval, chunk = reaper.GetEnvelopeStateChunk(envelope, '', false)
                local is_show = tonumber(string.match(chunk,"VIS (%d) %d %d"))
                if is_show == 1 then -- Count as being displayed
                    display_env_count = display_env_count + 1
                end
                --break env and track loop if MORE than 1 
                if display_env_count >= 1 then return true end
            end
        end
    end
    return false
end

reaper.Undo_BeginBlock2(0)
reaper.PreventUIRefresh(1)
if seltracks_env_show_more_1() and reaper.GetSelectedTrack(0, 0) then -- Is there more than one envelope being displayed AND is there a selected envelope?
    reaper.Main_OnCommand(41150, 0) --Envelope: Hide all envelopes for all tracks
    reaper.Main_OnCommand(41148, 0) --Envelope: Show all envelopes for tracks
else
    reaper.Main_OnCommand(41149, 0) -- Envelope: Show all envelopes for all tracks
end
reaper.PreventUIRefresh(-1)
reaper.Undo_EndBlock2(0, 'Show Selected Tracks Envelopes Toggle Other Tracks Envelopes ', -1)
daniellumertz is offline   Reply With Quote
Old 09-12-2021, 09:51 PM   #2622
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Very NICE Dan...

the first one seems to do what I wanted...

I tried the second one but could not really find too much of a use for it

Still, the first one is just great

there is no way that I know of to select more than one envelope lane at a time regardless of if the track itself is selected or not... do you know of any way???

Can I make a donation to you for your kindness?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-13-2021, 07:05 AM   #2623
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

Hey thanks if you want to donate here is my paypal https://www.paypal.com/donate/?hoste...=RWA58GZTYMZ3N


Unfortunately there is no way to select more than one envelope in reaper, maybe someone had made a work around but I don`t know of any. There must already have a FR for it... I would also like to be possible to change envelopes order would be cool...
daniellumertz is offline   Reply With Quote
Old 09-13-2021, 09:21 AM   #2624
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

yes, me too about being able to change the env. order!
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-13-2021, 09:55 AM   #2625
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

hey hopi thanks a lot for the donation!!! Very encouraging for scripters sometimes receive some donations Thanks Thanks!
daniellumertz is offline   Reply With Quote
Old 09-13-2021, 01:03 PM   #2626
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

you are most welcome of course.... I wish I could afford more. I really appreciate your willingness to help me!

Will you also put that up on Reapack?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-13-2021, 04:06 PM   #2627
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

Yeah I can put it on reapack, no problem. Will edit here when I do!

It is there hopi! https://raw.githubusercontent.com/da...ster/index.xml

Last edited by daniellumertz; 09-14-2021 at 08:15 PM.
daniellumertz is offline   Reply With Quote
Old 09-13-2021, 05:19 PM   #2628
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

perfect.... I imagine some others would like to have it ..
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-13-2021, 11:17 PM   #2629
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Quote:
Originally Posted by hopi View Post
yes, me too about being able to change the env. order!
Sort envelopes alphabetically?
mpl is offline   Reply With Quote
Old 09-14-2021, 10:11 AM   #2630
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

what lua is that MPL???

I don't find it....
...and IF there is such a thing, why could there not be one to move a given env. lane up or down in the TCP view????
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-14-2021, 11:00 AM   #2631
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Quote:
Originally Posted by hopi View Post
what lua is that MPL???

I don't find it....
...and IF there is such a thing, why could there not be one to move a given env. lane up or down in the TCP view????
Not sure if mpl made newer scripts but see, https://forum.cockos.com/showthread.php?t=208067

One by mpl is in post #19, Sort(rearrange) selected track FX envelopes alphabetically.

A couple me2beats scripts I fixed are in post #15 to do this,
Note works on FX param envs only, AFAIK you can't change the order of REAPER envs.
Scripts are not the most efficient as I just coded workarounds for what was already there.

Last edited by Edgemeal; 09-14-2021 at 11:07 AM.
Edgemeal is offline   Reply With Quote
Old 09-14-2021, 12:11 PM   #2632
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,960
Default

Sorry, it was only a question. I didn`t wrote something like that except sorting FX plugin envelopes.

So track envelopes are actually:

- volume / pan / width etc - track envelopes in predefined order
- FX1 parameters envelopes in random order
- FX2 parameters envelopes in random order

My script sort them, Edgemeal`s script move envelopes up and down (it does almost same thing internally). So there is nothing else to sort.
mpl is offline   Reply With Quote
Old 09-14-2021, 03:09 PM   #2633
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

Oh thanks edgemeal! I was actually thinking in trying to do a script to do just this. Actually I was thinking in how to do it but since already is there!

Hopi will put the small script in the reapack today, sorry the delay I got a class today and now I am a little more free

Added to reapack https://raw.githubusercontent.com/da...ster/index.xml

Last edited by daniellumertz; 09-14-2021 at 08:15 PM.
daniellumertz is offline   Reply With Quote
Old 09-15-2021, 07:48 AM   #2634
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Thank you everyone for the info and scripts

I guess now it is up to the DEV's to make it possible to do more, ...to move the order of the lanes. It would be a good update.
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-15-2021, 08:47 AM   #2635
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default idea possilbe?

OK back again with an idea but don't know if it is possible:

Lets pretend there are 5 env. lanes, AND we want to only see two of them so that we can edit one lane WHILE we can see another lane for reference point positions....

For example: we want to edit lane 2 while we also can see lane 5 with no other lanes visible.

Can we hide selected lanes and keep adding selected lanes to the 'hide' until we only are showing the two lanes we want to show?

I know we can do that with the drop down menu but I don't find the action to it....
and I know we can un-hide whatever is hidden with 'show all envelopes'

the closest action I find is
Envelope: Toggle hide/display selected envelope
and that 'works' but don't really need or want the toggle on that one.

So maybe a lua that is simply, "Hide selected env. lane" would be good to have?

what do you think?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-15-2021, 12:19 PM   #2636
sephirious
Human being with feelings
 
sephirious's Avatar
 
Join Date: Sep 2020
Posts: 16
Default script request! audio items tuning to specific note

ive been searching for a script to tune an audio item or multiple audio items to a specific note. g a a# etc .. i haven't had any luck finding that action or method

if anyone knows of anything existing like that please lmk! im big into actions and i think that would be a gamechanger.

im new to this forum so im not 100% on how i would get notification so guess ill check back here in a bit
sephirious is offline   Reply With Quote
Old 09-15-2021, 12:33 PM   #2637
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Quote:
Originally Posted by sephirious View Post
ive been searching for a script to tune an audio item or multiple audio items to a specific note. g a a# etc .. i haven't had any luck finding that action or method

if anyone knows of anything existing like that please lmk! im big into actions and i think that would be a gamechanger.

im new to this forum so im not 100% on how i would get notification so guess ill check back here in a bit
it is going to depend a lot on what the audio item actually is... like is it vocal phrase or just one sound like a single note from something?
Look into Melodyne.... likely the best way to do what you want.

Another thing to try comes with Reaper, a plugin called Reatune which has an automatic 're-tuner' that can be set to a given scale or note

it also has a tuner which could tell you what the note is you are starting with....
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 09-15-2021, 03:47 PM   #2638
daniellumertz
Human being with feelings
 
daniellumertz's Avatar
 
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
Default

Quote:
Originally Posted by hopi View Post
OK back again with an idea but don't know if it is possible:

Lets pretend there are 5 env. lanes, AND we want to only see two of them so that we can edit one lane WHILE we can see another lane for reference point positions....

For example: we want to edit lane 2 while we also can see lane 5 with no other lanes visible.

Can we hide selected lanes and keep adding selected lanes to the 'hide' until we only are showing the two lanes we want to show?

I know we can do that with the drop down menu but I don't find the action to it....
and I know we can un-hide whatever is hidden with 'show all envelopes'

the closest action I find is
Envelope: Toggle hide/display selected envelope
and that 'works' but don't really need or want the toggle on that one.

So maybe a lua that is simply, "Hide selected env. lane" would be good to have?

what do you think?
to just hide a envelope you just need to click on the gear on the envelope and select hide. It is probably running Envelope: Toggle hide/display selected envelope
daniellumertz is offline   Reply With Quote
Old 09-15-2021, 06:57 PM   #2639
sephirious
Human being with feelings
 
sephirious's Avatar
 
Join Date: Sep 2020
Posts: 16
Default similar tuning script

Quote:
Originally Posted by hopi View Post
it is going to depend a lot on what the audio item actually is... like is it vocal phrase or just one sound like a single note from something?
Look into Melodyne.... likely the best way to do what you want.

Another thing to try comes with Reaper, a plugin called Reatune which has an automatic 're-tuner' that can be set to a given scale or note

it also has a tuner which could tell you what the note is you are starting with....
thank you for the reply!

i just was looking at the reatune. it looks like a powerful tool, however my intention for requesting this is:

so i can line up a bunch of instrument hits, piano notes, etc in a row and using said script will (provided there will be some error) bring them to a similar note and it will sound like a cool stream of sound !

i think that would def be very useful in other cases too,.,.


update: the reatune actually solved my problem! but still an action would be a huge help.,.,.
__________________
http://axisproject.net

Last edited by sephirious; 09-15-2021 at 07:02 PM. Reason: addition
sephirious is offline   Reply With Quote
Old 09-16-2021, 09:06 AM   #2640
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

well you can...

you would have to know the amount of shift you need, which as you have discovered you can find out using Reatune...

then there are various actions [search Item properties: Pitch] that will move the pitch up or down by various amounts..

so let's imagine you want to pitch up by 3 semitones and 1 cent...

so you create a custom action to do that and run it...
you could create the custom action to operate on one item, and then also select the next item, ...that way you could just repeat the key stroke for it...

so you could made your own set of custom actions like:
Up 2 semitones
Up 3 semitones
etc
or
Down 2 semitones
Down 3 semitones
etc

get the drift?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.