PhantomDeejay
Hi, I'm George!
I started to involve with dj-ing in 1992. I have been a Digital Jockey since 1998, and from year 2000 and afterwards I've went EXCLUSIVELY Digital (meaning that I don't use other media for my gigs).
I have been involved with some dj software titles development and beta testing all these years, and of course I've been an active member of various dj communities.
I have worked as an audio engineer for several years, mainly in the PA field covering various live performances from small bands up to some big names of the industry.
Currently I'm a resident Dj on a small club of a small town in Greece, and in collaboration with...
 The CDS4 Skin Part2

Tue 01 Nov 11 @ 5:25 pm

First of all:
CDS4 ? What's this?
CDS4 is a 4 deck skin for VirtualDj PRO 7.0.5
Why this name?
Well, this name come up as a joke :) I'm from Greece, and due to a deep economical crisis words as "Spreads", "Swaps" and "CDS" become part of our everyday lives. "CDS" stands for "Credit Default Swap" in economical terms: http://en.wikipedia.org/wiki/Credit_default_swap
However, in our case "CDS" stands for "Community Driven Skin"
This name is justified because of the fact that several people from the VirtualDj Community Forums involved on this project by providing various ideas DURING the development of this skin.
The original thread can be found here: http://www.virtualdj.com/forums/153373/VirtualDJ_Skins/Skin_concept.html
Why a blog entry instead of a typical forum thread?
Simply put, I needed a way to present the skin and give instructions for it's usage (and it's possible modifications) while I needed to maintain a way to EDIT the provided info, to keep everything in one place.

___________________________________________________________________________
The inside view:
CDS is a simple skin to use, but very complex when it comes on it's scripting.
You can do several modifications on it's XML code to alter some functions to fit your liking/needs. However you must know/understand it's internals before actually trying to edit it. I strongly suggest you to use an advanced text editor like the open source "Notepad++" http://notepad-plus-plus.org/ to edit the XML file. It will help you to visualize the code and it will make it a lot easier to edit the parts you need.

CDS Main Panel structure:
First of all CDS consists of several panels and sub-panels. Almost all elements of the skin belong to a panel. You should keep that in mind every time you want to add your own code. You must "find" the correct panel to put the code into.
The two main panels of CDS are named "RVON" and "RVOF". They stand for RythmViewON and RythmViewOFf. These are the panels that "hold" every other sub-panel on the skin. They represent the two main views of the skin: One with the rythm window visible, and one without. Actually, besides the rythmview panels, these two main panels have EXACTLY the same elements moved by -84 pixels on the y axis, and only the browser area is taller by 84 pixels.
If you open the XML file, you will see that these two panels are separated by a few "block" lines somewhere in the middle of the skin (line 9040)
From now on I will be describing only the code and sub-elements of the "RVON" panel unless named otherwise. Everything that will be mentioned grom now on will still apply for the RVOF panel too. Any modifications you make on the one side will HAVE to be made to the other too!

The LEFT & RIGHT decks:
I needed a way to change the graphics of the LEFT/RIGHT deck control area based on the active leftdeck/rightdeck. This is only possible with the use of panels. So, instead of using "deck left" and "deck right" commands I created 4 sub-panels (1 for each deck) merged in two groups where I use "deck 1", "deck 2", "deck 3" and "deck 4" commands. These panels are sub-panels of the main "RVON" panel.
They are named: RVONDECK1L, RVONDECK3L, RVONDECK2R and RVONDECK4R. They start on line 1998 of the XML code.
The Central Area:
In the center of the screen there is an area that holds 4 different "views". These "views" are: Automix View, Mixer View, Scratch/TimeCode View and Video View
However while there are 4 views there are more than 4 panels for this area.
First of all inside the main "RVON" panel there are TWO sub-panels named "RVON_C_AMON" and "RVON_C_AMOFF". (line 5619)
These panels switch the views based on whether the Automix is active or not.
Each of these sub-panels features more sub-sub-panels.
The "RVON_C_AMON" sub-panel features 8 sub-sub-panels: There are 2 sub-sub-panels for each deck, 1 when the video is active, and 1 when it's not (4decks x2 states = 8 sub-sub-panels) You can find these panels starting on the line 5630.
The "RVON_C_AMOFF" sub-panel features 3 sub-sub-panels: One for the mixer, one for the video, and 1 for the scratch view. (line 6320)
The Mixer:
The mixer itself is held inside the "RVON_C_MIX" sub-sub-panel of the "RVON_C_AMOFF" sub-panel of the "RVON" main panel.
However, the mixer itself has also TWO sub-sub-sub panels. They are named "RVONMIX1234" and "RVONMIX3124" (line 6352)
These 3xsub-panels are responsible for the two different logical layouts of the mixer: Ch1-Ch2-Ch3-Ch4 VS. Ch3-Ch1-Ch2-Ch4
The Video:
The mixer itself is held inside the "RVON_C_VID" sub-sub-panel of the "RVON_C_AMOFF" sub-panel of the "RVON" main panel.
The Video panel also follows the logic of the mixer and has 2 sub-sub-sub-panels, one for each logical layout. They are on line 7408 and they are named "RVONVID1234" and "RVONVID3124"