Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Browser Scroll
Hello Everyone,

I am remapping a controller. I want to have a knob be able to scroll the browser. I can only get it to go one direction (every click is one song down or one song up). How to I map this so that if I click to the right it goes down a song selection and left goes up one selection?
 

Posted Sun 12 Apr 20 @ 3:21 am
NicotuxHome userMember since 2014
Depending on the controller and the knop kind .More info needed

param_bigger 0 ? browser_scroll -1 : browser_scroll +1
or the opposite
or needs a cast
param_cast relative & param_bigger 0 ? browser_scroll -1 : browser_scroll +1
or the opposite
 

Posted Sun 12 Apr 20 @ 4:11 am
Nicotux wrote :
Depending on the controller and the knop kind .More info needed

param_bigger 0 ? browser_scroll -1 : browser_scroll +1
or the opposite
or needs a cast
param_cast relative & param_bigger 0 ? browser_scroll -1 : browser_scroll +1
or the opposite


It is the Traktor Kontrol F1. The knob is a dual function encoder knob (rotary and push).
 

Posted Tue 14 Apr 20 @ 12:01 am
Nicotux wrote :
Depending on the controller and the knop kind .More info needed

param_bigger 0 ? browser_scroll -1 : browser_scroll +1
or the opposite
or needs a cast
param_cast relative & param_bigger 0 ? browser_scroll -1 : browser_scroll +1
or the opposite


So I tried both of these, and it doesn't scroll in both directions. It will only go down if I have -1 first and the other direction if +1 is first.
 

Posted Tue 14 Apr 20 @ 12:35 am
locoDogPRO InfinityModeratorMember since 2013
sounds like you need to change something in traktor controller editor
try check/change the dial from absolute to relative
 

Posted Tue 14 Apr 20 @ 1:12 am
locodog wrote :
sounds like you need to change something in traktor controller editor
try check/change the dial from absolute to relative


I had tried that too with no luck. Still just one direction.
 

Posted Tue 14 Apr 20 @ 1:26 am
djdadPRO InfinityDevelopment ManagerMember since 2005
So, just .. browser_scroll .. doesnt work ?

The PARAM encoder is offering absolute position messages (from x00 to xFF and wraps back) , so the param_bigger query wont work here.
 

Posted Tue 14 Apr 20 @ 1:37 am
djdad wrote :
So, just .. browser_scroll .. doesnt work ?

The PARAM encoder is offering absolute position messages (from x00 to xFF and wraps back) , so the param_bigger query wont work here.


Browser scroll works, but only in one direction. I found your previous posts about setting param, but that would scroll down 8-12 songs then up 1 and stop. I ended up mapping the knob to scroll down and pushing in on the knob to scroll up.
 

Posted Tue 14 Apr 20 @ 1:47 am
NicotuxHome userMember since 2014
"PARAM encoder is offering absolute position messages"
that's why i proposed "param_cast relative"

another solution may be set 2 vars and compare:
set tmpvar & var_greater oldbrowser tmpvar ? set oldbrowser & browser_scroll +1 : set oldbrowser & browser_scroll -1

 

Posted Tue 14 Apr 20 @ 2:36 am
locoDogPRO InfinityModeratorMember since 2013
reinventing the wheel there nico, it would work, but better to find the underlying issue
also; param_cast 'relative' would only send +0 to +127
 

Posted Tue 14 Apr 20 @ 2:45 am
Thanks for the help... yet I can't fix or have found the solution... scrolling down works well, but scrolling up doesn't work. I am working with a slider midi signal from 0.00 to 1.00 ( 0 - 127).. Anyone has an idea?
 

Posted Tue 28 Jun 22 @ 8:59 am
I found a solution... :)
In the device mapping I changed the function from 'slider' to 'fullencoder' so :
<fullencoder cc="3" full="127" name="SAM_VOL_MIX" />
and in the mapping file I mapped the knob with this code:
<map value="SAM_VOL_MIX" action="browser_scroll" />

It works perfectly. The knob is not an encoder, and it does not rotate infinitive, so I can only scroll a certain amount of songs. I mapped a shift to the knob, so I can scroll large amounts and without the shift I can do specific song selection, see below

<map value="SHIFT_SAM_VOL_MIX" action="param_multiply 50 & browser_scroll" />

 

Posted Tue 05 Jul 22 @ 12:29 pm