Old 04-24-2015, 09:46 AM   #1
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default 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
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 04-24-2015, 10:36 AM   #2
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,241
Default

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.
heda is offline   Reply With Quote
Old 04-24-2015, 10:45 AM   #3
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by heda View Post
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).
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 04-24-2015, 11:09 AM   #4
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

Post #4 maybe?

http://forum.cockos.com/showthread.php?t=156420
FnA is offline   Reply With Quote
Old 04-24-2015, 11:19 AM   #5
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 7,241
Default

Quote:
Originally Posted by FnA View Post
oh wow.. Everyday one discovers new functions in the API hehe
thanks
heda is offline   Reply With Quote
Old 04-24-2015, 11:34 AM   #6
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

There is some specific function for mixer visibility, but it didn't seem necessary to change it to that iirc.
FnA is offline   Reply With Quote
Old 04-24-2015, 02:08 PM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@Fna
Nice
X-Raym is offline   Reply With Quote
Old 04-24-2015, 02:42 PM   #8
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

I know, right? The little things in life.

I end up using it quite a bit actually.
FnA is offline   Reply With Quote
Old 04-24-2015, 05:37 PM   #9
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Thanks FnA, I'll test that out.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 04-24-2015, 05:59 PM   #10
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Hey, that works great!
Thanks so much, FnA!
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 04-24-2015, 06:23 PM   #11
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

No prob.
FnA is offline   Reply With Quote
Old 04-25-2015, 03:16 AM   #12
Reno.thestraws
Human being with feelings
 
Reno.thestraws's Avatar
 
Join Date: Nov 2009
Location: Belgium
Posts: 10,474
Default

right click in the empty mcp area -> scroll view when track activated
__________________
http://www.residenceemilia.com
Reno.thestraws is offline   Reply With Quote
Old 04-26-2015, 10:18 AM   #13
daxliniere
Human being with feelings
 
daxliniere's Avatar
 
Join Date: Nov 2008
Location: London, UK
Posts: 2,581
Default

Quote:
Originally Posted by Reno.thestraws View Post
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.
__________________
Puzzle Factory Sound Studios, London [Website] [Instagram]
[AMD 5800X, 32Gb RAM, Win10x64, NVidia GTX1080ti, UAD2-OCTO, FireFaceUCX, REAPER x64]
[Feature request: More details in Undo History]
daxliniere is offline   Reply With Quote
Old 12-11-2017, 09:15 AM   #14
fundorin
Banned
 
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
Default 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.
fundorin is offline   Reply With Quote
Old 12-12-2017, 04:02 AM   #15
fundorin
Banned
 
Join Date: Feb 2014
Location: Moscow, Russia
Posts: 554
Default

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.
fundorin is offline   Reply With Quote
Old 04-06-2020, 09:00 AM   #16
David Carlyon
Human being with feelings
 
Join Date: Feb 2019
Posts: 182
Default

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.
David Carlyon is offline   Reply With Quote
Old 04-06-2020, 09:52 AM   #17
Archie
Human being with feelings
 
Archie's Avatar
 
Join Date: Oct 2017
Location: Russia
Posts: 366
Default

@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


Attached Images
File Type: png Screenshot_1.png (31.5 KB, 872 views)
__________________
=================================
ReaPack| Archie-ReaScript: Discussion | Donate | Donate2 | Donate3 | PayPal |

Last edited by Archie; 04-06-2020 at 10:25 AM.
Archie is offline   Reply With Quote
Old 05-07-2022, 03:15 PM   #18
d. gauss
Human being with feelings
 
Join Date: May 2006
Posts: 1,631
Default

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?
d. gauss is online now   Reply With Quote
Old 05-08-2022, 07:59 AM   #19
d. gauss
Human being with feelings
 
Join Date: May 2006
Posts: 1,631
Default

anybody?
d. gauss is online now   Reply With Quote
Old 05-08-2022, 08:34 AM   #20
LugNut
Human being with feelings
 
Join Date: Jun 2013
Location: So Florida
Posts: 1,428
Default

Hi,

What csurf are u using? Klinkes handles this NP.
LugNut is offline   Reply With Quote
Old 05-08-2022, 08:51 AM   #21
d. gauss
Human being with feelings
 
Join Date: May 2006
Posts: 1,631
Default

Quote:
Originally Posted by LugNut View Post
Hi,

What csurf are u using? Klinkes handles this NP.
I'm using CSI and a Behringer X Touch Universal.
d. gauss is online now   Reply With Quote
Old 05-08-2022, 12:12 PM   #22
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

Have you tried the script mentioned above already?
https://forum.cockos.com/showthread....55#post1489655

edit: There are also variant scripts in that thread.
nofish 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 07:35 AM.


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