View Single Post
Old 12-10-2017, 07:12 PM   #1
_Stevie_
Human being with feelings
 
_Stevie_'s Avatar
 
Join Date: Oct 2017
Posts: 3,208
Default [Script] A couple of different MIDI note, CC and other scripts

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_; 04-09-2019 at 07:14 PM.
_Stevie_ is online now   Reply With Quote