Now that you are familiar with modifiers… let’s do something cool with them 
Right now we should have M1 mapped to the “Sample A” button and toggling between 1 and 0,
Layer switching should be a concept that you are familiar with in your everyday life. Turning the page of a book, swiping across the screen of a mobile device to change apps, and clicking on a hyperlink are all good examples of common scenarios that are similar to what we will be doing here, only we will be doing it with modifiers and hardware.
The first issue that we run into is that without the control manager window open, we have no way of knowing which layer we are on. Remember the tip about using another .tsi file to help manage our LED output? That is exactly the kind of thing that will help you here, but be aware that these are only suggestions, and you should use whatever works best in your own scenario.
Near the top of the control manager window are the buttons “Add” and “Edit”, click “Add” to create a separate .tsi file to put our new output on.
The obvious question is how to make one layer easily distinguishable from the next. In my X1 mapping I use several instances of the beat-phase output with various settings to display the change from one state to another, and it seems to work well for what we need, so that is what we will set up now.
The beat phase-output looks complex at first, but you will quickly understand that, like all midi signals, it follows certain rules and limitations. Understanding the way Traktor handles these messages is vital to providing a good output mapping, and will also help in the long run with other projects.
Imagine that you are watching a tennis match, the ball goes over the net, and back many times. Think of the track’s “down-beat” as the net, and the ball is our midi output. Try to imagine what this would look like if instead of another player, there was a portal that was warping the ball (beat-phase output) back and slinging it out on the opposite side of the court so that the player could knock it over the net (down-beat) and back into the portal again. Now take away the last player so you are actually visualizing a tennis ball (beat-phase output) coming out of a portal on one side of the court, going over the net (down-beat of track) and disappearing into the portal on the other side of the court, and again, re-emerging from the first portal. This last visual is exactly how Traktor’s “beat-phase” output is operating. As the track plays, the midi-output “ball” is constantly traveling forwards, and as the track gets closer to one of Traktor’s down-beat “gridlines” the midi output “ball” is getting closer to the “net”.
Traktor allows us to display any section of the “ball’s” trajectory as it travels by restricting the value ranges in the control manager window. The controller ranges run from “-0.5” (portal one) to .“0.0” (the net) and “0.5” (portal two), and the midi range is “0” to “127” and you can narrow the difference by changing the numbers at the bottom of the control manager window where you will see four bars with the abbreviations “min”, “max”, “controller range”, and “midi range”.
If your “min” controller value is -0.5 and your “max” value is 0.0 (with the invert/blend boxes un-checked) then Traktor should be sending LED output that lights up as the beat(ball) travels out of the first portal and to the gridline(net), and if you invert the values (min 0.0, max 0.5) you get LED output that lights up only from the gridline(net) to the second portal. The midi range controls how bright the LED is. It’s “off” state is “0” where it will not light up (unless the invert box is checked), and the maximum brightness is “127” (if inverted this becomes the “off” state). We are going to use the Native HID blend option to get a nice fade between the "min and “max” controller ranges.
Open up the control manager window and…
Add out>deck common>beat phase> mod con M1 = 1> min C.range = “-.05”> max C. Range = “+0,5”
leave the midi range at 0-127 and check both the invert and blend boxes to have a button that fades from off to on with the beat. Make the assignment “Deck A”, and duplicate this out control four times and “learn” them to the the “Fx ON”, "Sample A, and the “Fx 1” and “Fx 2” buttons. Now duplicate all four again and assign them to “Deck B” so you will always see lights as long as a track is playing on one of the A/B decks.
If done correctly you should now be able to toggle these blinking lights on and of with the sample A button.
If you don’t see any lights blinking make sure that you have a track playing on one of the A/B decks.
Now that we can actually see the difference between layers on our controller…
use the “***** play/pause” method explained earlier to find the Fx controls mapped to all appropriate buttons/knobs and change their modcon to M1=0 so that they only happen on the M1=0 layer. Duplicate all the Fx controls, change the Fx unit assignment to the one “below” (in this case it would be Fx Unit 3) and use the modcon M1=1 to set these controls to only happen on the second layer.
Now you have a button that toggles your Fx units from 1 to 3, but the blinking LEDs we used to observe the layer change are preventing us from seeing if the unit is on or if it is assigned to a deck. To fix this we just need to set up a modifier to track the state of the blinking buttons, and apply a different blinking sequence to show when the button is “on” or “off”
I’ll come back later and step you through the last bit about tracking modifiers… Enjoy! 
If you have any questions please email me at midi.kid.phi@gmail.com