Old 06-05-2017, 11:38 PM   #1
RobU
Human being with feelings
 
RobU's Avatar
 
Join Date: Sep 2009
Posts: 863
Default MIDI Editor - Set Active Take (Lua) - Help !

Hi,

I am trying to change the active take in the midi editor, in Lua, but without success.

The code goes something like:
Code:
reaper.SetActiveTake(take1)
.. do stuff
reaper.SetActiveTake(take2)
.. do other stuff
However, SetActiveTake does not update the midi editor, and attempting to 'do stuff' only works on the last take that was clicked with the mouse in the arrange view.

I can update the arrange view, but this doesn't do anything in the midi editor.

Can anyone offer some advice?

Cheers
__________________
Return of the Dub Cadet - https://open.spotify.com/album/2t98A...lQ&dl_branch=1
RobU is offline   Reply With Quote
Old 06-06-2017, 03:11 AM   #2
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,108
Default

Afaik SetActiveTake() only applies in arrange view (i.e. doesn't set active take in MIDI editor, as you say), there was recently a thread about this:

http://forum.cockos.com/showthread.php?t=192159
nofish is offline   Reply With Quote
Old 06-06-2017, 03:26 AM   #3
RobU
Human being with feelings
 
RobU's Avatar
 
Join Date: Sep 2009
Posts: 863
Default

Quote:
Originally Posted by nofish View Post
Afaik SetActiveTake() only applies in arrange view (i.e. doesn't set active take in MIDI editor, as you say), there was recently a thread about this:

http://forum.cockos.com/showthread.php?t=192159
Thanks for the pointer to the other thread. I'll try Tack's workaround.

Rob
__________________
Return of the Dub Cadet - https://open.spotify.com/album/2t98A...lQ&dl_branch=1
RobU 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 01:55 PM.


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