Skip to main content

making 4 bar midi inset action and 8 bar midi item inserting action

 You can create a custom action using only REAPER's native commands to insert a MIDI item that is exactly four bars long. This is achieved by using the edit cursor to define a time selection before triggering the insert command.

As the sources note, if you define a time selection before choosing Insert > New MIDI item, the newly created item will automatically match the length of that selection.

Custom Action: Insert 4-Bar MIDI Item

To build this macro, follow these steps:

  1. Open the Action List (press ?).
  2. Click New action... and select New custom action....
  3. Name your action (e.g., Insert 4-bar MIDI item).
  4. Drag the following native actions from the left pane to the right pane in this exact order:
    • Navigate: Move edit cursor to start of measure (Ensures the item starts perfectly on the bar line).
    • Time selection: Set start point.
    • Navigate: Move edit cursor right one measure.
    • Navigate: Move edit cursor right one measure.
    • Navigate: Move edit cursor right one measure.
    • Navigate: Move edit cursor right one measure (Total of 4 moves for 4 bars).
    • Time selection: Set end point.
    • Insert new MIDI item... (This creates the item to fill the 4-bar selection).
    • Time selection: Remove (unselect) time selection (Optional cleanup to clear the selection area).
  5. Check the box for Consolidate undo points so the entire sequence can be reversed with one "Undo".
  6. Click OK and assign your preferred keyboard shortcut.

How it Works

  • Precision: By starting with "Move edit cursor to start of measure," you prevent the item from being inserted mid-bar if your cursor was slightly off-center.
  • Automatic Sizing: Because REAPER treats a time selection as the primary guide for new media length, the "Insert new MIDI item" command will ignore its 1-bar default and stretch to fill the 4-bar gap you defined.
  • Cleanup: The final "Remove time selection" action ensures that your project is ready for immediate playback or further editing without a highlighted loop area getting in the way.

Tip: If you frequently need items of different lengths (e.g., 8 bars or 16 bars), you can create variations of this macro by simply adding or removing the Navigate: Move edit cursor right one measure steps in the sequence.

Comments

Popular posts from this blog

effects can be possible made in reaper

 Oh yes 🔥 you can build MANY creative build-up / glitch / tension effects using similar action logic in REAPER . Here are different effect ideas (just names + short vibe description). Tell me which one you want and I’ll explain how to build it step-by-step. 🔥 BUILD-UP & STUTTER STYLE Reverse Ramp Build → Each repetition gets reversed near the end. Pitch Climb Repeater → Every duplicate goes slightly higher in pitch. Volume Swell Stutter → Repeats get gradually louder. Filter Closing Build → Low-pass filter closes tighter with each step. Machine Gun Burst → Slow → fast → ultra-fast burst at drop. Triplet Acceleration Build → Switch from straight grid to triplet grid. Gate Chop Crescendo → Increasing gate speed like trance builds. Rhythmic Shrink Effect → Item length shrinks gradually each repeat. 🎛 GLITCH & FX STYLE Random Slice Shuffle → Random order micro-glitch effect. Tape Stop Build → Speed slows down gradually. Granular Flicker → Micro slices repeated rapidly. Stere...

Difference between MIDI editor and MIDI piano roll?

while using mouse modifiers in preference i notice there were two options midi editor and midi piano roll?  Yes 👌 you’ve spotted something important in REAPER’s Mouse Modifiers preferences: When you open Preferences → Mouse Modifiers , you’ll see contexts like: MIDI editor MIDI piano roll (and also MIDI CC lane , MIDI velocity lane , etc.) 🎹 Difference between them 1. MIDI editor (global context) Applies to anywhere inside the MIDI editor window . This includes the piano roll, CC lanes, velocity lane, ruler , etc. Example: Right-drag in empty space = marquee select. 2. MIDI piano roll (specific context) Applies only to the note area where the rectangles (notes) are drawn. Doesn’t affect CC lanes, velocity, or ruler. Example: Left-click in piano roll = draw note (but won’t affect CC lane). ✅ Why both exist MIDI editor = broad/general behaviors. MIDI piano roll = precise control just for working with notes. That way you can, f...

Grid size increase/decrease button on toolbar

I want to add shortcut in toolbar for increasing and decreasing grid size  Perfect idea 👍 Putting grid size increase/decrease on a toolbar in REAPER makes it way faster than going through menus. Here’s how you can set it up step by step: 🎯 Step 1: Find the Actions Open the MIDI editor (piano roll). Go to Actions → Show action list (or press ? ). In the Section dropdown, select MIDI Editor . Search for: Grid: Increase grid size Grid: Decrease grid size 🎯 Step 2: Add to Toolbar Still in the Action List, select the action (e.g. Grid: Increase grid size ). Click the Add to toolbar… button at the bottom. If you want it in the main MIDI editor toolbar , pick MIDI editor toolbar . Repeat for Grid: Decrease grid size . 🎯 Step 3: Customize Icons (Optional) After adding, right-click the toolbar → Customize toolbar . You can choose different icons (like “+” and “–”) or even text labels. ✅ Now you’ll have two buttons in your MIDI ...