Quick Sign In:  

Forum: Old versions

Topic: Mapping encoder 3 to MIDI controller. - Page: 2

This part of topic is old and might contain outdated or incorrect information

When i do this i put the encoder's 'value 1' set to 0 and 'value 2' set to 127 it works fine but if i have more than 128 songs VDJ wont read the MIDI and i wont be able to browse more than that many songs.

The reason i ask is because i want to have the controller set up so that if i turn the knob (encoder 3) to the right the selected song scrolls to the bottom and if i turn the knob to the left the song scrolls to the top while not having any stopping points. (Like 127) So have it set up so that some how if i turn the knob to the right the song will scroll down infinity and scroll up infinity.?
 

Posted Sat 26 Jun 10 @ 4:56 am
Hello.
 

Posted Mon 28 Jun 10 @ 10:43 pm
Please wait a reasonable time for responses - Many users are not in the same time zone as you and have other commitments.
 

Posted Tue 29 Jun 10 @ 6:11 pm
If the knob has a physical minimum and maximum value (Stops so you can't move it any further, like the EQ knobs on a standard DJ mixer), then what you are asking is not possible.

Endless scrolling is only possible using an endless encoder knob (Can be turned infinitely with no physical stopping point) or with two separate buttons mapped to browser_scroll -1 and browser_scroll +2

If the knob is endless, then it will scroll endlessly up/down providing it is mapped to browser_scroll (No parameters such as +1/-1 after this verb) and the definition for the knob in the definition file has been defined correctly, so that VirtualDJ is able to know it is an endless knob.

NOTE: Some endless knobs might send an absolute position (0-127) instead of relative (0 = Left, 127 = Right, or <64 left >63 right) - If this is the case, then it must be defined using <fullencoder> instead of <encoder> - Please see http://www.virtualdj.com/wiki/ControllerDefinitionMIDI.html
 

Posted Tue 29 Jun 10 @ 6:21 pm
jpboggis wrote :
If the knob is endless, then it will scroll endlessly up/down providing it is mapped to browser_scroll (No parameters such as +1/-1 after this verb) and the definition for the knob in the definition file has been defined correctly, so that VirtualDJ is able to know it is an endless knob.


You said to use <fullencoder cc="0x03" name="browser scroll" full="128" /> for the device defintion file.

When i use this the knob it has maximum and minimum stopping points, say if i click the mouse down to song 5 in the list if i try and turn the knob on my MIDI controller to the left meaning the knob is at value 1 = 0, and am trying to turn the knob in the 0 direction not 1,2,3... up to 127 direction the song will not scroll past the song it is on, meaning it has a stopping point. I don't have 129 songs to test if it stops in the 127 direction but when i turn the knob to the left and try turn through 0 in the negative direction it stops meaning that it is not defined properly or something?



 

Posted Tue 29 Jun 10 @ 7:29 pm
You cannot put the action that you wish to map it to in the definition file - The definition describes what buttons, knobs, sliders, LED's, etc. the controller has and how they function (E.g: Absolute vs relative endless encoder.) The mapping file tells VirtualDJ what action to assign to each button, knob, slider, etc.

I.e: Assuming the encoder is absolute, you would put the following in the definition:

<fullencoder cc="0x03" name="ENCODER3" />

(The full="128" is not needed - VDJ assumes that by default for a <fullencoder>)

And the following in the mapping file:

<map value="ENCODER3" action="browser_scroll" />

NOTE: The name used in the definition should describe the knob, button, slider, etc. as it appears on the controller, not the action you will be assigning it to.

To verify the knob is absolute, download http://www.virtualdj.com/download/miditrace.exe and choose your controller in the input/output sections. Turn the knob slowly right. If you see the 3rd value incrementing from 0 through to 7F (127) and wrapping back around to 0 again, then it is absolute. If you see the same value repeating, e.g: 40 or 7F, then it is relative.
 

Posted Tue 29 Jun 10 @ 7:56 pm
Im not sure that my controller works with the MIDI trace something to do with Sysex ID or something cause i remember trying to figure out something......It shows up both in the input and output as BCR2000 but when i press "send" nothing happens and when i turn knobs nothing registers.

I have the controller set to value 1=0, value 2=20 and when i scroll down songs it will only scroll to song 21 then stops.

If the controller is set to value 1=0 and value 2=30 then it will only scroll to song 31.

if i try scroll back through 0 it stops so it sounds like even though your saying that it should turn continuously in both directions its not for some reason.
 

Posted Wed 30 Jun 10 @ 3:53 am
The device probably does not support SysEx ID.

Please follow the instructions exactly above - Choose the controller in both input and output (DO NOT click on SEND), then slowly turn the knob that you are refering to above right. Copy and paste the resulting output. Do the same for turning the knob left. From this information it should be possible to tell what type of knob it is.
 

Posted Wed 30 Jun 10 @ 12:34 pm
I tried turning the knob the other day to see if it registered in the MIDI trace and it didn't.

I tried again today about 3 or 4 times shutting down the MIDI trace then the BCR2000 and then switching back on the BCR and reopening the MIDI Trace and it is as i said previously in the input and output but nothing happens when i turn any knob on the BCR which ever way.. This sometimes happens with Virtual DJ when i open up VDJ i sometimes have to turn off and on the BCR 3 or so times before the BCR is detected properly by VDJ.
 

Posted Wed 30 Jun 10 @ 10:51 pm
Make sure that no other applications (Including VirtualDJ) are open at the same time. Connect only the BCR2000 (No other MIDI controllers.)

Start MIDI trace and ensure that it is selected in BOTH the input and output sections (It may appear as USB Audio device if you are using Windows XP.)

If it does not appear in the list and/or does not send when turning the knobs, then it may have a fault and/or the driver is not installed properly (Try a different USB cable and/or USB port.)
 

Posted Thu 01 Jul 10 @ 12:35 pm
For turning the knob/encoder 3 to the right it is
B0 03 01 00
B0 03 02 00
B0 03 03 00
B0 03 04 00
B0 03 05 00
B0 03 06 00
B0 03 07 00
B0 03 08 00
B0 03 09 00
B0 03 0A 00
B0 03 0B 00
B0 03 0C 00
B0 03 0D 00
B0 03 0E 00
B0 03 0F 00
B0 03 10 00
B0 03 11 00
B0 03 12 00
B0 03 13 00
B0 03 14 00
B0 03 15 00


And to the left it is
B0 03 1D 00
B0 03 1C 00
B0 03 1B 00
B0 03 1A 00
B0 03 19 00
B0 03 18 00
B0 03 17 00
B0 03 16 00
B0 03 15 00
B0 03 14 00
B0 03 13 00
B0 03 12 00
B0 03 11 00
B0 03 10 00
B0 03 0F 00
B0 03 0E 00
B0 03 0D 00
B0 03 0C 00
B0 03 0B 00
B0 03 0A 00
B0 03 09 00
B0 03 08 00
B0 03 07 00


Thanks.
 

Posted Thu 01 Jul 10 @ 7:58 pm
When turning it right, what happens once it reaches B0 03 7F 00 ?

When turning it left, what happens once it reaches B0 03 00 00 ?
 

Posted Fri 02 Jul 10 @ 12:25 pm
When i turn it right nothing happens after B0 03 7F 00 it just stays the same every time i turn it to the right. And the same with left. It stays on B0 03 00 00 and continually enters that number every time i turn the knob left.?
 

Posted Sat 03 Jul 10 @ 1:50 am
That means that it is an ordinary knob with minimum and maximum value (I.e: Like an EQ knob on a mixer.)

It is not possible to use it for file browsing. This requires a true endless encoder that either sends relative left/right values or an absolute value that wraps around - i.e: When turning right, when it reaches B0 03 7F 00 it should wrap back around to B0 03 00 00 again.

 

Posted Mon 05 Jul 10 @ 12:34 pm
oh dam so this is like the way the encoder is program so its like that.

Ok well looks like i mite be in for another controller. Thanks for your help jpboggis.

Cheers.

lee.

Any controllers that you know of that have a fair few endless encoders on it?
 

Posted Tue 06 Jul 10 @ 5:47 pm
The Reloop DigitalJockey has 4 endless encoders per deck. These can also be pushed to act as a button and each has a separate LED illuminated button below.
 

Posted Tue 06 Jul 10 @ 5:53 pm
Synq PCM-1 also has 3 endless encoders per deck, used for effect select and parameters by default.
 

Posted Tue 06 Jul 10 @ 5:58 pm
Thanks for that.

I posted a topic on the inthemix forums in Australia and a fella mentioned the mackie C4. Check it here.



Not bad. 32 push button encoders.

Just got to see if they are endless encoders? Going to go on the forums and see if they are.

 

Posted Sun 11 Jul 10 @ 12:14 am
I found out that i am pretty sure from the information that i was told that you can re-program the BCR 2000 with some sort of thrid party software.
 

Posted Sun 11 Jul 10 @ 4:21 am
Ok, moving on.

I figured out that i set the BCR to one of the relative modes or set the CC message to inc/dec and it works fine.

jpboggis wrote :
This is because you have mapped it to nudge +120ms, so it will always nudge in the positive direction.

What you are trying to do will only work properly if the encoder is an endless encoder (No min/max stopping points) and the definition file has been setup correctly so that it sends +1/-1 appropriately for each movement pulse of the knob.


All i need to do now for defining the knob is to know how to set the +1/-1 values in the definition file for the action, i am trying to define.
The device file reads,

<?xml version="1.0" encoding="UTF-8"?>
<device name="BCR2000" author="Lee Eather" type="MIDI" drivername="BCR2000">
<encoder cc="0x01" name="ENCODER1" deck="1" />
<encoder cc="0x02" name="ENCODER2" deck="1" />
<encoder cc="0x03" name="ENCODER3" deck="1" />
</device>


The mapper file reads,

<?xml version="1.0" encoding="UTF-8"?>
<mapper device="BCR2000" author="Lee Eather" description="BCR2000" version="610" date="16/06/2010">
<map value="ENCODER1" action="loop_lenght 15ms" />
<map value="ENCODER2" action="loop_move +10ms" />
<map value="ENCODER3" action="nudge 120ms" />
</mapper>


I added both up there to satisfy your thoughts that they are right, you can show me how to define the -1/+1 values if you would be so kind.

Thanks.

Lee.
 

Posted Mon 02 Aug 10 @ 10:10 pm
61%