|
|
|
04-24-2015, 09:46 AM
|
#1
|
Human being with feelings
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
|
Scroll mixer to selected track?
Hey guys,
Does anyone have code to scroll the mixer to a selected track?
REAPER has this action built-in, but it's for TCP and there's no MCP equivalent:
Track: Vertical scroll selected tracks into view
Any brilliant ideas for code for an MCP equivalent?
Cheers,
Dax
|
|
|
04-24-2015, 10:36 AM
|
#2
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,241
|
I would like to know too.
Selecting the track in the TCP will show it in the mixer too if scroll view when tracks activated is selected. I don't know if this could be automated to a shortcut.
|
|
|
04-24-2015, 10:45 AM
|
#3
|
Human being with feelings
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
|
Quote:
Originally Posted by heda
I would like to know too.
Selecting the track in the TCP will show it in the mixer too if scroll view when tracks activated is selected. I don't know if this could be automated to a shortcut.
|
Unfortunately, running that action I mentioned doesn't cause the mixer to scroll as well, even with that option enabled (which it always is for me).
|
|
|
04-24-2015, 11:09 AM
|
#4
|
Human being with feelings
Join Date: Jun 2012
Posts: 2,173
|
|
|
|
04-24-2015, 11:19 AM
|
#5
|
Human being with feelings
Join Date: Jun 2012
Location: Spain
Posts: 7,241
|
Quote:
Originally Posted by FnA
|
oh wow.. Everyday one discovers new functions in the API hehe
thanks
|
|
|
04-24-2015, 11:34 AM
|
#6
|
Human being with feelings
Join Date: Jun 2012
Posts: 2,173
|
There is some specific function for mixer visibility, but it didn't seem necessary to change it to that iirc.
|
|
|
04-24-2015, 02:08 PM
|
#7
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@Fna
Nice
|
|
|
04-24-2015, 02:42 PM
|
#8
|
Human being with feelings
Join Date: Jun 2012
Posts: 2,173
|
I know, right? The little things in life.
I end up using it quite a bit actually.
|
|
|
04-24-2015, 05:37 PM
|
#9
|
Human being with feelings
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
|
Thanks FnA, I'll test that out.
|
|
|
04-24-2015, 05:59 PM
|
#10
|
Human being with feelings
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
|
Hey, that works great!
Thanks so much, FnA!
|
|
|
04-24-2015, 06:23 PM
|
#11
|
Human being with feelings
Join Date: Jun 2012
Posts: 2,173
|
No prob.
|
|
|
04-25-2015, 03:16 AM
|
#12
|
Human being with feelings
Join Date: Nov 2009
Location: Belgium
Posts: 10,474
|
right click in the empty mcp area -> scroll view when track activated
|
|
|
04-26-2015, 10:18 AM
|
#13
|
Human being with feelings
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
|
Quote:
Originally Posted by Reno.thestraws
right click in the empty mcp area -> scroll view when track activated
|
This is not a script, nor does it have any bearing on script-induced track selection.
Thanks, though.
|
|
|
12-11-2017, 09:15 AM
|
#14
|
Banned
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
|
Help, please.
I wonder how to auto scroll MCP view to the track/tracks that were selected via OSC command, like t/track/5/select/toggle.
For now, I'm able to select any track in Reaper via OSC device, but MCP view would only scroll to the selected track when it was selected in TCP with mouse.
"Scroll view when tracks activated" in right-click over emptry MCP area is enabled.
Tried
"t/track/%d/select"
"b/track/@/select"
"t/device/track/select/@"
None of them scrolls first selected track into view.
P.S. I can see similar requests up to ten years ago on the forum. Wow!
Last edited by fundorin; 12-11-2017 at 03:13 PM.
|
|
|
12-12-2017, 04:02 AM
|
#15
|
Banned
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
|
Tried setting DEVICE_TRACK_BANK_FOLLOWS MIXER
instead of DEVICE_TRACK_BANK_FOLLOWS DEVICE
With this setting, mixer view scrolls to the selected track, but it also messes with device bank. It's not 1-8,9-16 from now on, but rather "first visible track in mixer"-"plus 15 or more tracks".
I don't understand, why -
Code:
# DEVICE_TRACK_BANK_FOLLOWS determines whether the selected track bank in the device
# changes only when the device changes it, or if it follows the REAPER mixer view.
# Allowed values: DEVICE, MIXER
- device follows mixer view with DEVICE_TRACK_BANK_FOLLOWS MIXER
but mixer view doesn't follow device when DEVICE_TRACK_BANK_FOLLOWS DEVICE
It seems like REAPER_TRACK_BANK_FOLLOWS DEVICE should be added to the default ReaperOSC config file, so that mixer view would always scroll to the current device's bank.
UPD. The following options seem to do the job right:
REAPER_TRACK_FOLLOWS DEVICE
DEVICE_TRACK_FOLLOWS DEVICE
DEVICE_TRACK_BANK_FOLLOWS MIXER
Kinda. If more than 8 tracks are visible in mixer view, "bank+" action scrolls through 16 (or, maybe more) tracks, instead of 8, like it's declared in ReaperOSC config file, or when DEVICE_TRACK_BANK_FOLLOWS is set to DEVICE. At the same time, selecting banks directly from the mixer switches banks in groups of 8 and scrolls mixer view to the first track in the bank.
With the same settings, "t/device/track/bank/+" or "-" won't scroll mixer view to the selected track.
Last edited by fundorin; 12-12-2017 at 04:21 AM.
|
|
|
04-06-2020, 09:00 AM
|
#16
|
Human being with feelings
Join Date: Feb 2019
Posts: 182
|
I know this is an old thread, and this might seem a little unrelated but i wonder if anyone knows how to do this....
when i select a track in the mixer, the arrange scrolls to show selected track.
Is there any way i can make the selected track appear at the top of the arrange window?
I ask this because i want to have the mixer open at the bottom of the window, and i want the arrange open in the top half and the selected track to appear tat the top, so i can see any automation lanes below it.
As it stands it shows the selected track, but the automation lanes are out of view because the selected track appears at the bottom of the arrange window.
Any ideas? This has been bugging the hell out of me.
|
|
|
04-06-2020, 09:52 AM
|
#17
|
Human being with feelings
Join Date: Oct 2017
Location: Russia
Posts: 366
|
@David Carlyon
Try this.
Is required SWS 2.11+ and JS_ReaScriptAPI v0.995+
Code:
local function loop();
local window, segment, details = reaper.BR_GetMouseCursorContext();
if segment == 'track' and window == 'mcp' then;
local curState = reaper.JS_Mouse_GetState(1);
if curState == 1 then;
local x,y = reaper.GetMousePosition();
local Tr,info = reaper.GetTrackFromPoint(x,y);
local Vis = reaper.IsTrackVisible(Tr,false);
if Vis then;
local sel = reaper.GetMediaTrackInfo_Value(Tr,'I_SELECTED');
if sel == 1 and not X then;
X = true;
local tcpY = reaper.GetMediaTrackInfo_Value(Tr,'I_TCPY');
reaper.CSurf_OnScroll(0,math.ceil(tcpY/8));
end;
end;
else;
X = nil;
end;
end;
reaper.defer(loop);
end;
reaper.defer(loop);
or
Last edited by Archie; 04-06-2020 at 10:25 AM.
|
|
|
05-07-2022, 03:15 PM
|
#18
|
Human being with feelings
Join Date: May 2006
Posts: 1,631
|
man back to 2015 and still no solution yet?
In a large track count project, if i am selecting a track by moving the channel select > button in my X touch controller. all is fine and dandy until i get past the last track currently displayed on the mixer. Once i go past that, reaper does not scroll the mixer to follow. GGrrrr. any updates on this?
|
|
|
05-08-2022, 07:59 AM
|
#19
|
Human being with feelings
Join Date: May 2006
Posts: 1,631
|
anybody?
|
|
|
05-08-2022, 08:34 AM
|
#20
|
Human being with feelings
Join Date: Jun 2013
Location: So Florida
Posts: 1,428
|
Hi,
What csurf are u using? Klinkes handles this NP.
|
|
|
05-08-2022, 08:51 AM
|
#21
|
Human being with feelings
Join Date: May 2006
Posts: 1,631
|
Quote:
Originally Posted by LugNut
Hi,
What csurf are u using? Klinkes handles this NP.
|
I'm using CSI and a Behringer X Touch Universal.
|
|
|
05-08-2022, 12:12 PM
|
#22
|
Human being with feelings
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
|
Have you tried the script mentioned above already?
https://forum.cockos.com/showthread....55#post1489655
edit: There are also variant scripts in that thread.
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 07:35 AM.
|