カテゴリー 全て - customization - api - conditions - properties

によって Extrem Raym 8年前.

658

ReaScript for REAPER-Feuille 1

ReaScript Lua is a scripting language used for customizing REAPER 5, a digital audio workstation. It allows users to create scripts for automating tasks, adjusting item properties, and enhancing overall workflow.

ReaScript for REAPER-Feuille  1

ReaScript Lua for REAPER 5

Customization

Get User Inputs
tonumber()
GetUserInputs(string title, integer num_inputs, string captions_csv, string retvals_csv)
Show Message Box
User Config Area
item_vol

Polishing

Optimization
PreventUIRefresh(1)
Undo
Undo_EndBlock("Action", -1)
Undo_BeginBlock()
Comments
Header

Conditions

Consider Locked Items
GetMediaItemInfo_Value(MediaItem item, "C_LOCK")
Native action
Main_OnCommand(40289, 0)
Select Items
SetMediaItemSelected(MediaItem item, bool selected)
Loop in Items on Tracks
Item End
Break Loops
GetTrackMediaItem(MediaTrack tr, integer itemidx)
GetTrackNumMediaItems(MediaTrack tr)
Loop in Selected Tracks
GetSelectedTrack(ReaProject proj, integer seltrackidx)
if > 0
CountSelectedTracks(ReaProject proj)
Get Time Selection
if no time selection
GetSet_LoopTimeRange2(ReaProject proj, boolean isSet, boolean isLoop, number startOut, number endOut, boolean allowautoseek)
If then
br_mouse
if count_selected_items >= 1 then
Propagate Vol

Working on Selected Items

Debugging a Loop
Loop in Selected Items
GetSelectedMediaItem(0, i)
CountSelectedMediaItems(ReaProject proj)
Set Item Properties
SetMediaItemInfo_Value(MediaItem item, string parmname, number newvalue)
Get Item Properties
GetMediaItemInfo_Value(MediaItem item, string parmname)
Get First Selected Item
GetSelectedMediaItem(0, 0)

API Documentation

External Code Editor
Online
Auto-Generated

Console

Language Native Function
tostring()
Reading Error Message and Variable Types
Function
Msg()
Clean
reaper.ShowConsoleMsg("")
Break Lines
"\n"
Variable
string = "Hello World"
Hellow World
reaper.ShowConsoleMsg("Hello World")
Native IDE