Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 04-07-2018, 05:52 PM   #1
tusitala
Human being with feelings
 
tusitala's Avatar
 
Join Date: Apr 2010
Location: London (UK)
Posts: 412
Default Action in midi editor "Record-arm next/previous midi track"

Could you add this?

We already have "Activate next/previous midi track", if also had "Record arm..." inside the midi editor I could create a custom action with both together, which would be very handy when inputting notes and playing instruments with the Notation editor as a main window.

Thanks!
-t
tusitala is offline   Reply With Quote
Old 04-07-2018, 06:56 PM   #2
Edgemeal
Human being with feelings
 
Edgemeal's Avatar
 
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
Default

Probably possible with some scripting, I came up with this Lua script real quick,, I really don't know reaper/lua very well but seems to work OK.

Code:
-- Activate next MIDI track and arm for record.

editor = reaper.MIDIEditor_GetActive()
reaper.MIDIEditor_OnCommand(editor, 40835) --< Activate next MIDI track (40835)
-- reaper.MIDIEditor_OnCommand(editor, 40836) --< Activate previous MIDI track (40836)
take = reaper.MIDIEditor_GetTake(editor)
track = reaper.GetMediaItemTake_Track(take)
reaper.SetMediaTrackInfo_Value(track, "I_RECARM", 1 ) -- 0=not record armed, 1=record armed
EDIT Take that back, doesn't really work the way I was expecting.

Last edited by Edgemeal; 04-07-2018 at 07:05 PM.
Edgemeal is offline   Reply With Quote
Old 04-08-2018, 04:49 AM   #3
tusitala
Human being with feelings
 
tusitala's Avatar
 
Join Date: Apr 2010
Location: London (UK)
Posts: 412
Default

Quote:
Originally Posted by Edgemeal View Post
Probably possible with some scripting, I came up with this Lua script real quick,, I really don't know reaper/lua very well but seems to work OK.

Code:
-- Activate next MIDI track and arm for record.

editor = reaper.MIDIEditor_GetActive()
reaper.MIDIEditor_OnCommand(editor, 40835) --< Activate next MIDI track (40835)
-- reaper.MIDIEditor_OnCommand(editor, 40836) --< Activate previous MIDI track (40836)
take = reaper.MIDIEditor_GetTake(editor)
track = reaper.GetMediaItemTake_Track(take)
reaper.SetMediaTrackInfo_Value(track, "I_RECARM", 1 ) -- 0=not record armed, 1=record armed
EDIT Take that back, doesn't really work the way I was expecting.

Thank you anyway Edgemeal for trying!!!!
I'm not good at all with scripting so it would be great if it was just added as an action in the future.

Thanks!
__________________
MacOS 10.15.7
Mac Pro 6-Core - 64GB ram
Motu M4
tusitala is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.