@aod.manipulate.v1
draft, subject to change
You can embed item manipulation rules inside an item notes by
- prepending the
@aod.manipulate.v1before your json rules
For example, the item notes could look like this
@aod.manipulate.v1
{"take":".*delete",
"track":".*",
"op":"delete"}The track and the take are regex patterns that are used to match a track's name and the active take name accordingly.
If they are not present, they default to ".*". The op key is required and defines the operation to be done.
Valid operations in @aod.manipulate.v1
deletedeletes the itemmuteTODO should toggle mute mutes item. does NOT toggle mute statereverseTOGGLES reverse stateset_pitchrequires the extravaluefield with the desired pitchadjust_pitchactionperforms a reaper action by a given id (under thevaluefield). id can be either a number (native action) or a string (anSWSaction for example). Alsovaluecan either contain one single action, or can be anarrayof action ids
-
adjust_pitch(relative +1 or -1) require the extra fieldvalue -
set_pitchrequire the extra fieldvalue -
adjust_volume -
repeat?? andvaluetimes??
{"take":"take%-delete", "track":".+", "op" :"delete"}- matches the exact "take-delete" take name ('%' is the escape character)
- across any track
- and deletes the matching items
Multiple rules
[{"take": ".*delete", "track": ".*", "op":"delete"},
{"take": ".*mute", "track": ".*", "op":"mute"},
{"take": ".*reverse", "track": ".*", "op":"reverse"}
]Running reaper actions
[{"take": "snare", "op": "action", "value": [40776, 40794]},
{"take": "hat2", "op": "action", "value": 40794}]40776:Grid: Set to 1/1640794:Item edit: Move items/envelope points right by grid size