Old 12-10-2017, 07:12 PM   #1
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default [Script] Stevie's scripts thread

Hey all, since moving from Cubase to Reaper, I was still missing some crucial functions for my work. I messed around a bit with ReaScript and added everything that was missing for me. New scripts will be added over time.

The script are available via my ReaPack repository:
Code:
https://github.com/StephanRoemer/ReaScripts/raw/master/index.xml
Most of my scripts consist only of a couple of lines of code, because the rely on a function file. These are available as a so called "bundle".
They are tailored that way, that you can easily adjust parameters yourself. E.g. if you are missing a Delete CC32 you can easily edit a Delete CC script and only adjust the dest_cc variable in the script and save it as Delete CC32. Same goes for the quantize script. You can adjust the grid, humanize factor, swing off/on and swing amount.

Also for Add VSTi and replace existing VSTi you need to install "Add or replace VSTi".
Be sure to select it in ReaPack, if you want to use these scripts. As with the MIDI scripts, you can easily modify them by changing the variables.


Script demos (right click the GIF and select "show image" to zoom)



2017-12-12

Select notes after edit cursor (in selected item(s) or MIDI editor)
Select notes before edit cursor (in selected item(s) or MIDI editor)
Delete notes before edit cursor (in selected item(s) or MIDI editor)
Delete notes after edit cursor (in selected item(s) or MIDI editor)

  • select all notes, that are located before the edit cursor Position
  • this script works in arrangement, MIDI Editor and Inline Editor
  • for obvious reasons, this script only works with a single item and will popup a message box, if you have more than one item selected





2017-12-12
Delete short notes
  • deletes leftover short notes, that are created, when splitting (on grid) notes that are not hard quantized (humanized)
  • this script works in arrangement, MIDI Editor and Inline Editor
  • adjust the length of shortnote in the user area. To get an idea which values are typical for short notes, enable the ShowConsoleMsg near the end of the script





2017-12-13
Select, delete and move CCs
  • these scripts select, delete and move CC in various ways
  • these scripts work in arrangement, MIDI Editor and Inline Editor





2017-12-15
Transpose notes +/- X
  • these scripts transposes either all notes or selected notes +/- X
  • these scripts work in arrangement, MIDI Editor and Inline Editor





2017-12-15
Double Notes +/- X (formerly "Add notes")
  • these scripts add to either all notes or selected notes +/- X
  • these scripts work in arrangement, MIDI Editor and Inline Editor





2017-12-16
Increase / Decrease CC
  • these scripts increase or decrease all CC events or selected CC events
  • these scripts work in arrangement, MIDI Editor and Inline Editor





2017-12-17
Quantize and Human quantize notes (straight, triplets, swing)
  • these scripts human quantize either all notes or selected notes by their respective values
  • these scripts work in arrangement, MIDI Editor and Inline Editor
  • Keep in mind, with my commands not being native Reaper quantize commands, you cannot restore their initial position with "unquantize"
  • The quantize "grid" commands use the project grid to quantize and NOT the MIDI Editor grid





2017-12-18
Set edit cursor to first / last note in selected items
  • these scripts set the edit cursor to the beginning of the first and the ending of the last note in an selected item
  • these scripts work in arrangement, MIDI Editor and Inline Editor





2017-12-19
Select CCs within boundaries of selected notes
  • these scripts select all CCs within the boundaries of selected notes
  • execute again to toggle selection
  • these scripts work in arrangement, MIDI Editor and Inline Editor





2018-01-15
Add VSTi and replace existing VSTi
  • this script adds a VSTi instance in FX slot 1
  • if there is already a VSTi, it will be replaced by this one
  • if there is no VSTi, this one will be added in FX slot 1. Existing insert FX will be moved down by one slot
  • after loading the VSTi, the floating GUI will be shown
  • in order to function correctly, the script expects only 1 VSTi on a track
Important notes: these scripts expect "Add or replace VSTi" to be installed on your system. Make sure you have checked it for installation in ReaPack.





2018-01-20
Render VSTi items without track FX
  • this script will render a VSTi item to audio, without applying the track FX
During rendering, the track FX will be bypassed, otherwise you would hear them twice (offline render
and realtime track FX). MIDI and audio items can live happy together on the same track.
This is especially useful, when you want to render a sound effect, loop, etc... to reverse the
audio or to apply take FX, fade curves...





2018-01-21
Toggle collapse selected folders
  • this script will collapse or compact selected folder tracks




2018-06-20
Move edit cursor by frames (mousewheel)
  • this script moves the edit cursor by frames depending on the value sent by the mousewheel




2018-06-28
Nudge notes left or right by 10 ticks
  • these scripts nudge either all notes or selected notes left or right by 10 ticks
  • these scripts work in arrangement, MIDI Editor and Inline Editor




2018-06-30
Change note length (mousewheel)
  • this script changes the note length via mousewheel
  • when there is no note selection, only the note under the mouse cursor is altered
  • this script only works in the MIDI Editor





2018-07-02
Change note start (mousewheel)
  • this script changes the note start position via mousewheel
  • when there is no note selection, only the note under the mouse cursor is altered
  • this script only works in the MIDI Editor




2018-07-02
Change note position (mousewheel)
  • this script changes the note position via mousewheel
  • when there is no note selection, only the note under the mouse cursor is altered
  • this script only works in the MIDI Editor





2018-07-02
Move items to timecode (in filename)
  • this script moves either all or selected items to their timecode position (written in the filename)
  • the timecode needs to be in the format xx.xx.xx.xx (Windows does not allow : in filenames)
  • this script is useful for audio formats, where Reaper can't read the BWF chunk (FLAC for example)




2018-07-12
Change note position to grid(mousewheel)
  • this script changes the note position (based on the grid, if snap in the MIDI editor is turned on) via mousewheel
  • for the time being, you have to link the grid in the MIDI editor with the arrangement grid, will try to find another way to solve this
  • if snap is turned off, it works the same as "Change note position (mousewheel)" script
  • when there is no note selection, only the note under the mouse cursor is altered
  • this script only works in the MIDI Editor




2018-07-12
Move notes to the edit cursor (relative)
  • this script moves all selected notes to the edit cursor and keeps their relative offsets
  • when the mouse hovers a note, the hovered note is used as offset instead
  • this script only works in the MIDI Editor




2018-09-05
Send selected tracks to FX
  • this script sends all selected tracks to an FX track prefixed with FX 1,2,3 or 4



2018-09-05
Remove 1st, 2nd, 3rd or 4th send FX from selected tracks
  • this script removes the 1st, 2nd, 3rd or 4th send FX in the send slot of selected track(s)




2018-09-05
Toggle show UI of all FX in Xth send slot
  • this script shows/hides the UI of all FX in the Xth send FX slot


Last edited by _Stevie_; 05-22-2020 at 11:12 AM.
_Stevie_ is online now   Reply With Quote
Old 12-11-2017, 06:46 PM   #2
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

2018-09-16
Toggle select all events in CC lane under mouse cursor
  • This script selects/unselects the whole CC lane under the mouse cursor
  • This script works only in the MIDI Editor


2018-09-16
Select all events in CC lane under mouse cursor
  • This script selects all CC events in the lane under the mouse cursor
  • When a CC selection already exists, the new selection will be added (non-exclusive only)
  • This script works only in the MIDI Editor


2018-09-16
Select all events in CC lane before and under mouse cursor (exclusive and non-exclusive)
  • This script selects all CC events in the lane before and under the mouse cursor
  • When a CC selection already exists, the new selection will be added (non-exclusive only)
  • This script works only in the MIDI Editor


2018-09-16
Select all events in CC lane after and under mouse cursor (exclusive and non-exclusive)
  • This script selects all CC events in the lane after and under the mouse cursor
  • When a CC selection already exists, the new selection will be added (non-exclusive only)
  • This script works only in the MIDI Editor


2018-09-16
Decrease and increase events in CC lane under mouse cursor
  • This script increases all or selected CC events in the lane under the mouse cursor
  • This script works only in the MIDI Editor


2018-09-18
Copy selected CC events to lane under mouse cursor
  • This script copies all selected CC events (from all lanes!) to the lane under the mouse cursor
  • This script works only in the MIDI Editor


2018-09-18
Move selected CC events to lane under mouse cursor
  • This script moves all selected CC events (from all lanes!) to the lane under the mouse cursor
  • This script works only in the MIDI Editor


2018-09-18
Copy selected CC events to lane under mouse cursor at mouse position
  • This script copies all selected CC events (from all lanes!) to the lane under the mouse cursor, starting at the mouse position
  • This script works only in the MIDI Editor


2018-09-18
Move selected CC events to lane under mouse cursor at mouse position
  • This script moves all selected CC events (from all lanes!) to the lane under the mouse cursor, starting at the mouse position
  • This script works only in the MIDI Editor


2018-09-28
Insert signature based on time selection
  • This script inserts a signature based on the grid value and the time selection
  • This script works in the MIDI Editor and the Arrange view


2018-10-07
Change velocity
  • This script bundle consists of several scripts that increase/decrease the velocity of either all or selected notes
  • The amount can be adjusted in the scripts. That way, you can easily create different versions that fit your personal needs.
  • The scripts work in Arrangement, MIDI Editor and Inline Editor

2018-10-14
Align selected items to item under mouse cursor
  • This script aligns selected takes to the take under the mouse
  • Depending on where the mouse is located (near the start or end of the item), selected items will be aligned to their start or end
  • Items with a snap offset will always be aligned to their offset
  • This script only works in the Arrangement



2018-10-16
Move legato point of 2 selected notes (mousewheel)
  • This script moves the legato point of 2 selected notes
  • This script only works, when exactly 2 notes are selected, otherwise an error message will pop up
  • This script only works in the MIDI Editor


2018-12-04
Move cursor to start of selected item and preserve play state
  • This script moves the edit cursor to the start of the selected item
  • If the edit cursor is moved, while playback is on, the playback continues
  • This script works only in the Arrangement

Select and move to next item and preserve play state
  • This script moves the edit cursor to the start of the next item
  • If the edit cursor is moved, while playback is on, the playback continues
  • This script works only in the Arrangement

Select and move to previous item and preserve play state
  • This script moves the edit cursor to the start of the previous item
  • If the edit cursor is moved, while playback is on, the playback continues
  • This script works only in the Arrangement




Open MIDI editor and zoom to 5 measures (zoom center is edit cursor)
  • The code is based to 99% on Julian's code, I only added the open MIDI editor command and cleaned up unnecessary parts.
  • this script should ultimately help you to get rid of any MIDI Editor zooming issues. Assign it to the enter key and it will open the MIDI Editor and zoom to 5 measures (default). Whereas the edit cursor represents the zoom center.
  • You can adjust the measures in the user area.




Open MIDI editor and zoom to content and Zoom MIDI editor to content
  • Almost the same scripts, but the first one works only in the main (opens the MIDI editor) and the second one only works in the MIDI editor and zooms only
  • This script zooms to the content of the MIDI item, without changing the horizontal zoom of the notes




Go to start marker and Go to start marker
  • These scripts put the edit / play cursor to the marker named "=START" or "=END"
  • I use this in conjunction with "X-Raym_Insert or update start and end marker from time selection.lua" to create the project boundaries
  • These scripts work only in the arrangement

Zoom to start and end marker
  • This script zooms in between the boundaries of the start and end marker
  • Again, I use this in conjunction with "X-Raym_Insert or update start and end marker from time selection.lua" to create the project boundaries"
  • To undo the zoom, use "View: Restore previous zoom level



2019-04-05

Delete notes after mouse cursor (in take under mouse or in MIDI editor)
Delete notes before mouse cursor (in take under mouse or in MIDI editor)
Mute notes after mouse (in take under mouse or in MIDI editor)
Mute notes before mouse (in take under mouse or in MIDI editor)
Select notes after mouse cursor (in take under mouse or in MIDI editor)
Select notes before mouse cursor (in take under mouse or in MIDI editor)

  • These scripts select/delete/mute all notes before/after the mouse cursor in the currently focused item, MIDI editor or inline editor

2019-04-10:

Trim head of item(s) and delete item(s) before mouse cursor
Trim tail of item(s) and delete item(s) after mouse cursor

  • These scripts trim the head/tail of all or selected items before/after the mouse cursor
  • Additionally, all items located before the mouse cursor will be deleted
  • This script only works in the arrangement

Last edited by _Stevie_; 04-09-2019 at 07:20 PM.
_Stevie_ is online now   Reply With Quote
Old 12-11-2017, 11:10 PM   #3
vanhaze
Human being with feelings
 
vanhaze's Avatar
 
Join Date: Jul 2012
Location: Netherlands
Posts: 5,247
Default

Great stuff, many thx !!
Any chance that these scripts become available via ReaPack ?
__________________
Macbook Pro INTEL | Reaper, always latest version | OSX Ventura | Presonus Studio 24c
My Reaper Tips&Tricks YouTube Channel: https://www.youtube.com/user/vanhaze2000/playlists
vanhaze is offline   Reply With Quote
Old 12-12-2017, 04:03 AM   #4
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,239
Default

_Stevie_, correct me if I am wrong... I think you are a new REAPER user that recently migrated from Cubase, and you are already scripting? That's awesome!
heda is offline   Reply With Quote
Old 12-12-2017, 04:43 AM   #5
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Quote:
Originally Posted by vanhaze View Post
Great stuff, many thx !!
Any chance that these scripts become available via ReaPack ?
I would do that immediately, if I knew how!
I couldn't find any guidelines how to set up GitHub for ReaPack.
Any hints appreciated!

Quote:
Originally Posted by heda View Post
_Stevie_, correct me if I am wrong... I think you are a new REAPER user that recently migrated from Cubase, and you are already scripting? That's awesome!
Haha, yeah that's right. When using Cubase, I tried to complement it with AutoHotKey scripts, because it was lacking in some areas. So, I kinda felt quickly at home with ReaScript. But I will never be at the same level as guys like you or juliansader, mpl, spk77, etc...
_Stevie_ is online now   Reply With Quote
Old 12-12-2017, 05:38 AM   #6
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,239
Default

haha
you can of course
I'm not very good. I'm learning. for years...

For some reason, testing your script, the undo block is not added.
I think it should be reaper.Undo_EndBlock('Select notes before cursor', 4)
4 for undo in items, but it seems not working either. mmm
I would also put the PreventUIRefresh and the undo commands each one in one line.
heda is offline   Reply With Quote
Old 12-12-2017, 05:58 AM   #7
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Yeah, I was just about to write that! I don't know what's going on there.
If you Undo and then Redo, everything is back to normal. But something is not right there. I have never seen such a behavior before, have you?
_Stevie_ is online now   Reply With Quote
Old 12-12-2017, 08:53 AM   #8
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Quote:
Originally Posted by _Stevie_ View Post
I would do that immediately, if I knew how!
I couldn't find any guidelines how to set up GitHub for ReaPack.
Any hints appreciated!
In very short:
- Your scripts need a ReaPack header.
https://github.com/cfillion/reapack-index/wiki/Examples
https://github.com/cfillion/reapack-...-Documentation
(or see other scripts in ReaPack for examples)

- You need reapack-index to index the scripts in your repo. reapack-index produces a index.xml file.
https://github.com/cfillion/reapack-index/wiki

- This index.xml is then also pushed to your GitHub repo and you can give this URL other ReaPack users for importing your repo into ReaPack, like e.g. I did with mine:
https://github.com/nofishonfriday/ReaScripts

(or you can have it enabled by default in Reapack, don't know how though)

Thread with more info and for asking questions:
https://forum.cockos.com/showthread.php?t=169127

Last edited by nofish; 12-12-2017 at 09:01 AM.
nofish is offline   Reply With Quote
Old 12-12-2017, 09:42 AM   #9
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Thanks nofish! Will check that out.
I looked at some of the ReaPack scripts. Interessting that most of them don't use the "@decription" synthax.
_Stevie_ is online now   Reply With Quote
Old 12-31-2017, 03:56 AM   #10
jbraner
Human being with feelings
 
jbraner's Avatar
 
Join Date: Nov 2017
Location: Edinburgh
Posts: 488
Default

Hi Stevie,

Pardon me for being thick - but that link
https://github.com/StephanRoemer/Rea...ster/index.xml is to a xml file.

Where are the scripts? Do we have to extract them from the xml file?
Or have you managed to get them on to ReaPack?

Thanks.
jbraner is offline   Reply With Quote
Old 12-31-2017, 04:23 AM   #11
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Hey jbraner,

Yes, the xml is indeed a ReaPack repository. Just add it to ReaPack and install the needed scripts.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 12-31-2017, 09:50 AM   #12
jbraner
Human being with feelings
 
jbraner's Avatar
 
Join Date: Nov 2017
Location: Edinburgh
Posts: 488
Default

Ahh - OK, I'll give it a shot!
Thanks.
jbraner is offline   Reply With Quote
Old 12-31-2017, 10:44 AM   #13
jbraner
Human being with feelings
 
jbraner's Avatar
 
Join Date: Nov 2017
Location: Edinburgh
Posts: 488
Default

Quote:
Originally Posted by _Stevie_ View Post
Hey jbraner,

Yes, the xml is indeed a ReaPack repository. Just add it to ReaPack and install the needed scripts.
OK - I got it - thanks a lot.


I'm still new to all of this, so I'll slowly work my way through these various MIDI scripts ;-)
jbraner is offline   Reply With Quote
Old 01-14-2018, 09:39 PM   #14
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

New scripts: Add VSTi and replace existing VSTi
Check the OP for more information.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 01-17-2018, 02:06 PM   #15
JoostJanssensDS
Human being with feelings
 
Join Date: Feb 2017
Posts: 34
Default

Hey Stevie,

first of all, thanks for these wonderful scripts. I have these all on contextual toolbars ready to go, but...

Some commands return me an error message. Like, your increase CC scripts work, but the decrease CC scripts give me this:

sr_MIDI functions.lua:365: attempt to perform arithmetic on a nil value (local 'increase')

Any idea what this can be?

Thanks for these scripts, they're really handy!
JoostJanssensDS is offline   Reply With Quote
Old 12-02-2020, 02:19 PM   #16
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Hi Stevie, hope you're doing well,

You've done amazing work. I've been in and out of Cubase and Reaper a few times already. Cubase being my main DAW at work but Steinberg recently broke all my templates with C11 there addition of the Scale Assistant. If you had midi modifiers in your templates, which I do on all instrument tracks, well they're now locked to a locrian scale by default so not only all of my tempaltes are wreaked, all of my un-rendered projects too. I had 3 choices, keep working with C10.5, fix everything on C11 or update my Reaper templates.

Well long story short. I'm back at Reaper but this time, it looks like I'm here to stay. I recently bought a Console 1 and a Stream Deck XL so the infinite amount of action Reaper can do paired with the infinite amount of shortcuts the Stream Deck can host has me completely amazed. As for the Console 1, having a instance on all tracks was making Cubase crash half the time on shutdown or took 3 minutes to close a project. With Reaper, it's like closing a Chrome tab.

Anyway, we had chatted on the previous times I was working with Reaper and I'm very impressed by all the scripts you've made. It's definitely going to help smooth out the transition for me once more.

I might ask you a few questions in the weeks to come. I hope that's ok. Here's my first one :

You've made a script for the play cursor to keep playing when sending the cursor to the start of an item. I was using a Cycle Action with a, "if play, play". Both work great it the Main window but I cant make either of them work in the midi editor. Am I missing something? You can see the exacte Cycle Action I'm using in this thread I started earlier. https://forum.cockos.com/showthread....46#post2372346

Thanks again,
fbeauvaisc is offline   Reply With Quote
Old 12-02-2020, 05:29 PM   #17
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Hey fbeauvaisc!

I can totally feel your pain concerning Cubase.
It's been the main reason I moved over to Reaper.

Glad to help on your quest to migrate over to Reaper.
So feel free to ask.

Concerning your first question: there is a simple solution to the issue.
You either need to set the global mode for the script shortcut in the main action window (this will always reserve the shortcut to assigned script)
OR you search in the MIDI Editor action list for "Pass through key to main window" and add the same shortcut from the main action list. You can assign as many shortcuts you want. Hope that helps!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 12-02-2020, 06:38 PM   #18
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Wow that worked great! I'm realizing it only works with items and not selected note within the events. Is there a way? All I found was first note of item or event.

Thanks
fbeauvaisc is offline   Reply With Quote
Old 12-02-2020, 06:53 PM   #19
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

In an unrelated matter, is there a way to stop Ctrl + mouse wheel from resizing the tracks height? I'm always seem to accidently changing track size and I would prefer to use shortcuts to recall specific sizes. On Cubase I often recall all tracks to 4 rows or 2 rows and then shortcuts for selected tracks.

Last edited by fbeauvaisc; 12-03-2020 at 05:38 AM.
fbeauvaisc is offline   Reply With Quote
Old 12-03-2020, 03:36 PM   #20
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Ok so here I go, I'll write the few things that are still bit strange for me with Reaper. There aren't that much. Between the interactive toolbar, Reaticulate and you scripts found on this thread, I'm very comfortable already.

That being said,

I'm still not 100% at home with the way the action to send the cursor to the start of an item without stopping playback is handled. If we could change the "start of an item" to "start of selection" that would include midi notes and markers but mostly notes in the midi editor, I'd be super happy. This is oddly the most important thing for me to get working. I use a shortcut directly on my mouse to trigger that action. It's really become vital to my workflow.

I absolutely love your script that zoom automatically to the item content in the midi editor. I've assigned that to my default F2 shortcut to open the editor but I'd still love to figure out how to have it work when I simply double click an item. I feel it should not be too complicate but if have any thoughts on the how to, I'd be glad to hear it. Mouse modifiers maybe.

And lastly, I've started using you script to render instruments without FX. It's great but it does not render audio tracks so I'd need a second action to do both. I've created a custom action that can do both. So here it is, you tell me if you see any issues may have overlooked :



And then one last thing I'll miss from Cubase is the way folders allow to rearrange sections. In Cubase, I always have a top folder that includes all tracks for that purpose.

So there you go, I'm almost there. If you can provide any suggestions, I'd appreciate enormously. Is there any way we can donate to you guys, I feel I own a lot to the great Reaper coders. I gave too much money to Steinberg without any form of support so I'm more than happy to help out when I can.

Cheers,
Attached Images
File Type: png Render in Place No FX.PNG (16.9 KB, 312 views)
fbeauvaisc is offline   Reply With Quote
Old 12-03-2020, 07:32 PM   #21
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Quote:
Originally Posted by fbeauvaisc View Post
In an unrelated matter, is there a way to stop Ctrl + mouse wheel from resizing the tracks height? I'm always seem to accidently changing track size and I would prefer to use shortcuts to recall specific sizes. On Cubase I often recall all tracks to 4 rows or 2 rows and then shortcuts for selected tracks.
Yeah, I did the same in Cubase

I can remember a discussion here on the forums about CTRL + wheel.
But I can't recall what the outcome was. I think it is indeed hardcoded into Reaper.
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 12-03-2020, 07:34 PM   #22
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Quote:
Originally Posted by fbeauvaisc View Post
Wow that worked great! I'm realizing it only works with items and not selected note within the events. Is there a way? All I found was first note of item or event.

Thanks
Are you referring to the native reaper actions or my script?
My script does only move to items, currently. But I have indeed planned
to make it context sensitive (arrange, MIDI editor)
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 12-03-2020, 09:17 PM   #23
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by _Stevie_ View Post
Are you referring to the native reaper actions or my script?
My script does only move to items, currently. But I have indeed planned
to make it context sensitive (arrange, MIDI editor)
That would be great! I was referring to both native action and script. In Cubase, the shortcut works with both event or note because it focuses on selection. Works with automation points too.

Anything else I’ll get used to but this is something I’ll really struggle with.
fbeauvaisc is offline   Reply With Quote
Old 06-17-2022, 07:35 AM   #24
MixR
Human being with feelings
 
Join Date: Jan 2017
Location: London
Posts: 328
Default

Quote:
Originally Posted by _Stevie_;1923923
2018-07-12
[B
Change note position to grid(mousewheel)[/B]
  • this script changes the note position (based on the grid, if snap in the MIDI editor is turned on) via mousewheel
  • for the time being, you have to link the grid in the MIDI editor with the arrangement grid, will try to find another way to solve this
  • if snap is turned off, it works the same as "Change note position (mousewheel)" script
  • when there is no note selection, only the note under the mouse cursor is altered
  • this script only works in the MIDI Editor
Loving these scripts, Stevie - thank you so much for sharing them!
Is there a way to make the note length snap to grid value?
I don't know how to code but had a look at the script and saw that the notes are shortened/lengthened by "val." Would it be possible to set val to grid size and if so, how?
__________________
PC Ryzen 7950x|W11 Pro|Reaper (latest)
2x RME HDSPe MADI FX | SSL UF8|UF1|UC1
PC Ryzen 5950X|W11 Pro|AudioGridder Server
MixR is offline   Reply With Quote
Old 06-27-2022, 04:33 AM   #25
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Can you elaborate a bit more? Like a use case or something!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 06-27-2022, 04:43 AM   #26
MixR
Human being with feelings
 
Join Date: Jan 2017
Location: London
Posts: 328
Default

Quote:
Originally Posted by _Stevie_ View Post
Can you elaborate a bit more? Like a use case or something!
Let's say I am working on a groove and editing a Bass Synth mono track. Note length is a big part of that and it would be amazing to make a selection and then use the mousewheel to shorten or lengthen the note(s) by the subdivision of the current grid.

Imagine I want to change my notes on the downbeat from 1/8 length to 3/16. That would require selecting the notes and applying the script with a single indent of the mousewheel. Scrolling again would make the notes 1/4 or back to 1/8 on a 16th grid.

Currently the var is in the tick range, somewhere along the lines of what Reaper might refer to as "a little bit."
__________________
PC Ryzen 7950x|W11 Pro|Reaper (latest)
2x RME HDSPe MADI FX | SSL UF8|UF1|UC1
PC Ryzen 5950X|W11 Pro|AudioGridder Server
MixR is offline   Reply With Quote
Old 09-02-2022, 05:19 PM   #27
AtmanActive
Human being with feelings
 
AtmanActive's Avatar
 
Join Date: Dec 2009
Location: United Kingdom
Posts: 668
Default

Stevie and friends,

I had a need to add 4 sendFX to selected track at once so I found Stevie's Send selected track(s) to FX track (bundle).
Thank you Stevie!

However, I needed the script not to duplicate sends that are already established. In other words, I needed to be able to execute the script against a selected track infinite number of times without having sends duplicated.
So I upgraded Stevie's scripts and added them to my Github:

https://github.com/AtmanActive/AA_Re...ack%20(bundle)

In addition, I changed the prefix to "SendFX1" instead of just "FX1", looks more readable to me in my projects.

For the people reading this for the first time:
IF you ever need something like this: create 4 tracks in your project. Name them "SendFX1", "SendFX2", "SendFX3", "SendFX4". These are just prefixes, you are free to name them, for example: "SendFX1: Reverb", or "SendFX2: Delay", or whatever. Then, when you create a new track, execute aa_Send selected track(s) to SendFX1234.lua and et voila! Your track now has 4 sends established and it won't hurt if you run this action again against it.

@Stevie, feel free to take any or all of my code changes.

Thanks!
AtmanActive is offline   Reply With Quote
Old 09-03-2022, 03:36 PM   #28
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Hey Atman, that’s a pretty awesome improvement of the script! Time for coding is a bit sparse on my side. But I will put it on my todo. Thanks for doing that!
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 11-15-2022, 07:59 PM   #29
fbeauvaisc
Human being with feelings
 
Join Date: Nov 2018
Location: Montreal
Posts: 405
Default

Quote:
Originally Posted by AtmanActive View Post
Stevie and friends,

I had a need to add 4 sendFX to selected track at once so I found Stevie's Send selected track(s) to FX track (bundle).
Thank you Stevie!

However, I needed the script not to duplicate sends that are already established. In other words, I needed to be able to execute the script against a selected track infinite number of times without having sends duplicated.
So I upgraded Stevie's scripts and added them to my Github:

https://github.com/AtmanActive/AA_Re...ack%20(bundle)

In addition, I changed the prefix to "SendFX1" instead of just "FX1", looks more readable to me in my projects.

For the people reading this for the first time:
IF you ever need something like this: create 4 tracks in your project. Name them "SendFX1", "SendFX2", "SendFX3", "SendFX4". These are just prefixes, you are free to name them, for example: "SendFX1: Reverb", or "SendFX2: Delay", or whatever. Then, when you create a new track, execute aa_Send selected track(s) to SendFX1234.lua and et voila! Your track now has 4 sends established and it won't hurt if you run this action again against it.

@Stevie, feel free to take any or all of my code changes.

Thanks!
Hey that's great! I've been using this script for years now and I will definitely use your little addition.

One way I'd like to push this even further, it could be a custom action, is that I'd like to be able to send from a multichannel track to a multichannel reverb with the send automatically using multichannel source input according to the source track's channel count or receive track's channel count.

Currently, I have to set them manually each time after the send is made. These days, I work a lot on multimedia installations and theme parks. When we go on site to integrate the sound and music, we end up working in multiple custom formats and setting up for mixing these sessions in each zone according to the their channel count is taking a considerable amount of time.

Also, in the studio, I very often work at least in quad channel and the script only sends the stereo 1/2 source regardless of the tracks channel count or if ReaSurroundPan is used.

So if you or _Stevie_ have any thoughts on how that could be achieved, I'd love to hear about it.

Thanks!
fbeauvaisc is offline   Reply With Quote
Old 04-06-2023, 04:24 PM   #30
inthevoid
Human being with feelings
 
inthevoid's Avatar
 
Join Date: May 2022
Location: London
Posts: 427
Default

Hi Stevie, just noticed an issue with sr_Nudge note start left to previous grid - grid.lua. I get an error on line 41:

Code:
sr_Nudge note start left to previous grid - grid.lua:41: bad argument #6 to 'MIDI_SetNote' (number expected, got boolean)
Changing that line to

Code:
reaper.MIDI_SetNote(take, n, nil, nil, prev_grid_ppq, nil, nil, nil, nil, true) -- nudge note start to the next grid
Seems to fix it!
inthevoid is online now   Reply With Quote
Old 04-08-2023, 12:31 PM   #31
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
Default

Hey inthevoid!

Thanks for bringing that to my attention. Those scripts are so frigging old, they need an overhaul and optimizations. I wrote them when I started coding, so lotsa things to improve
__________________
My Reascripts forum thread | My Reascripts on GitHub
If you like or use my scripts, please support the Ukraine: Ukraine Crisis Relief Fund | DirectRelief | Save The Children | Razom
_Stevie_ is online now   Reply With Quote
Old 04-09-2023, 04:26 AM   #32
inthevoid
Human being with feelings
 
inthevoid's Avatar
 
Join Date: May 2022
Location: London
Posts: 427
Default

Quote:
Originally Posted by _Stevie_ View Post
Hey inthevoid!

Thanks for bringing that to my attention. Those scripts are so frigging old, they need an overhaul and optimizations. I wrote them when I started coding, so lotsa things to improve
Heh, no problem at all, they're a hell of a lot more advanced than my first hacky attempts at scripting! Just thought you might want a heads up
inthevoid is online now   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 04:32 PM.


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