Control Playtime with items

Because Playtime is an instrument plug-in, it can be controlled via MIDI. Not just via external MIDI controllers, but also from within REAPER. You can just put MIDI items on the Playtime track and start REAPER playback, exactly as you would do it with a synthesizer.

1. Set up matrix

Click Matrix settings settings to open the Matrix inspector and make the following settings:

Setting Value Reason

Start timing

Immediately immediately

Position and length of a note in the MIDI editor should correspond exactly to the position and length of clip playback.

Trigger mode

Momentary momentary

Activate slot on trigger

Off

We don’t want the Playtime selection to jump around like crazy.

Also ensure that you haven’t overridden the first two properties on column or clip level!

Additionally, you might want to switch off Exclusive mode for columns, in order to get more freedom of playing.

2. Create MIDI triggers

Before you can control Playtime with MIDI notes, you need to set up MIDI triggers.

Option A: Learn MIDI triggers manually

One way to do this is to learn the necessary MIDI triggers manually by using the Show/hide MIDI triggers show hide midi triggers feature. See Playing clips using a MIDI keyboard.

Option B: Assign MIDI triggers automatically

Another way to do this is to automatically assign MIDI notes to each slot cell. We can easily do that by importing a snippet of Lua code into ReaLearn.

Below code snippet by default spreads MIDI notes row by row in groups of 8, starting at the note C3. You can change that by modifying the configuration section before importing it into ReaLearn.

  1. Copy below code to the clipboard

  2. Press Show Helgobox plug-in show helgobox plugin in the navigation bar on the left. This should open the ReaLearn main panel.

  3. Press the Import from clipboard button

    This will overwrite existing MIDI mappings in the ReaLearn main unit.
  4. After confirming the import, you should see a list of mappings in ReaLearn. But also in the Playtime user interface, when pressing showing the MIDI triggers.

-- Configuration

-- The first mapped note (key 48 correponds to C3)
local first_key = 48
-- The first mapped column
local first_column = 0
-- The first mapped row
local first_row = 0
-- If true, assignments will be spread row by row, otherwise column by column
local row_wise = true
-- Make that many assignments until jumping to the next column or row
local group_size = 8

-- Build mappings

local mappings = {}
for k = first_key, 127 do
    local i = k - first_key
    local i1 = math.floor(i / group_size)
    local i2 = i % group_size
    local mapping = {
        source = {
            kind = "MidiNoteVelocity",
            channel = 0,
            key_number = k,
        },
        target = {
            kind = "PlaytimeSlotTransportAction",
            slot = {
                address = "ByIndex",
                column_index = first_column + if row_wise then i2 else i1,
                row_index = first_row + if row_wise then i1 else i2,
            },
            action = "Trigger",
        },
    }
    table.insert(mappings, mapping)
end

-- Return result

return {
    kind = "MainCompartment",
    value = {
        mappings = mappings,
    },
}

3. Record and edit MIDI items

Now we are ready to record some MIDI items that control our clips.

  1. Ensure that the Playtime track is armed in REAPER and that all other tracks are unarmed. You should be able to trigger Playtime clips with your MIDI keyboard!

  2. Start recording in REAPER

  3. Play stuff on your MIDI keyboard

  4. Stop recording in REAPER

  5. Play back the MIDI item which you just recorded on the Playtime track

REAPER should repeat what you just played, cool!

Now you can edit the MIDI item as desired, using REAPER’s MIDI editor. For example, you could quantize all notes.

Rendering advice
Do you want to render your project? As Playtime will not participate in rendering, you first need to turn your performance into a regular REAPER arrangement. Please read Create an arrangement for more information.