A&H xone k2 advanced led mapping in Traktor
Results 1 to 6 of 6
  1. #1
    Newbie
    Join Date
    Nov 2017
    Posts
    3

    Default A&H xone k2 advanced led mapping in Traktor

    Hi everyone!


    I have really hard question I think.
    I'm trying to map colour change from green to red on the same button.

    Let me explain. Button M is mapped as play/pause for deck A. When loaded and paused is solid green, when play is on green start flashing. I also have mapped track end warning on the same button but in colour red. At the moment when warning is triggered red only flash once for a second. I want flashing green to change for flashing red and stay red when warning is triggered.

    Hope this is understandable

    Thanks in advance for any help

  2. #2

    Default

    Traktor controller editor assignments have no conditional for being in 'track end' mode. The only way to have this triggered for LED is the OUT assignment 'Track End Warning' which doesn't blink. Sorry mate.

    But: Instead of working with 'Track End Warning', you can work with the command 'Seek Position (OUT)', giving the LED a red colour as soon as for example 80% of the track has played (range: 0.8 to 1.0) as this command will continually be triggered once the range is reached. But the LED is going to flash green-red instead of OFF-red.

  3. #3
    Newbie
    Join Date
    Nov 2017
    Posts
    3

    Default

    Quote Originally Posted by Sulherokhh View Post
    Traktor controller editor assignments have no conditional for being in 'track end' mode. The only way to have this triggered for LED is the OUT assignment 'Track End Warning' which doesn't blink. Sorry mate.

    But: Instead of working with 'Track End Warning', you can work with the command 'Seek Position (OUT)', giving the LED a red colour as soon as for example 80% of the track has played (range: 0.8 to 1.0) as this command will continually be triggered once the range is reached. But the LED is going to flash green-red instead of OFF-red.
    Thank you for replay!

    Any chance you could show me how to map this function with some screen shoots from traktor? I'm not sure if I understand it correctly.
    In general to make any colour flashing I'm adding Beat phase to the same button with range 0.5 - 0.1 and invert.
    I did manage to use track end warning that works with flashing red. Problem I have is to swap flashing green (is assigned to play/pause) with flashing red.

    I was thinking about some kind of modifier thet would allow flashing green to be on when track end warning is off or something like this.

  4. #4

    Default

    I only know how to do it with one colour. But there is software out there that can accept an MIDI OUT message from Traktor and return it to Traktor as a MIDI IN message, which can help circumvent this limitation. I think it's called MIDI-Ox or MIDI-yoke (not sure).

    The expert to ask about this is Stevan (Stewe) from DJTechTools. Sadly i have no experience with it. Maybe he is willing to point you in the right direction.

  5. #5
    Newbie
    Join Date
    Apr 2024
    Posts
    3

    Default

    The Traktor controller editor lacks a conditional option for 'track end' mode. The only available trigger for LEDs is the 'Track End Warning' OUT assignment, but unfortunately, it doesn't include a blinking feature. Apologies for the inconvenience.

  6. #6
    Newbie
    Join Date
    May 2024
    Posts
    4

    Default Sure, I can help with that

    Sure, I can help with that. It sounds like you're working with a button that has different states indicated by colors and you want to change its behavior based on certain conditions. Let's break down what you need:

    Button M Behavior:
    Solid green when the deck is loaded and paused.
    Flashing green when the deck is playing.
    Flashing red when the track end warning is triggered.
    Solid red when the track end warning is active.

    To achieve this, you need to set up a series of conditional checks that will change the button's color and flashing state based on the deck's status. Assuming you're working in an environment where you can control the button's state programmatically, here’s a general outline of how you can do it.
    Pseudo-Code Example

    pseudo

    if trackEndWarningTriggered:
    if deckPlaying:
    setButtonColor(FLASHING_RED)
    else:
    setButtonColor(SOLID_RED)
    else:
    if deckPlaying:
    setButtonColor(FLASHING_GREEN)
    else:
    setButtonColor(SOLID_GREEN)

    Implementation Steps

    Define the Button States:
    Create constants or enums for the button states like SOLID_GREEN, FLASHING_GREEN, FLASHING_RED, and SOLID_RED.

    Set Up the State Check:
    Monitor the status of the deck (playing or paused).
    Monitor if the track end warning is triggered.

    Update the Button Color:
    Use conditional statements to change the button color based on the deck's status and the track end warning status.

    Here’s a more detailed example in Python-like pseudo-code, assuming you have functions to set the button color and check the deck's status.

    python

    # Constants for button colors and states
    SOLID_GREEN = 'solid_green'
    FLASHING_GREEN = 'flashing_green'
    FLASHING_RED = 'flashing_red'
    SOLID_RED = 'solid_red'

    def updateButtonColor(deckStatus, trackEndWarning):
    if trackEndWarning:
    if deckStatus == 'playing':
    setButtonColor(FLASHING_RED)
    else:
    setButtonColor(SOLID_RED)
    else:
    if deckStatus == 'playing':
    setButtonColor(FLASHING_GREEN)
    else:
    setButtonColor(SOLID_GREEN)

    def setButtonColor(color):
    # Logic to set the button color
    # This is where you interact with the hardware or software to change the button state
    print(f'Button color set to: {color}')

    # Example usage
    deckStatus = 'playing' # This would be dynamically determined
    trackEndWarning = True # This would be dynamically determined

    updateButtonColor(deckStatus, trackEndWarning)!

    Explanation

    Constants: Define the colors/states your button can be in.
    Function updateButtonColor: Takes the deck status and track end warning as input and updates the button color accordingly.
    Function setButtonColor: Simulates the action of setting the button color (this would be replaced with actual implementation code to interact with your button hardware/software).
    Example usage: Shows how you might call updateButtonColor with current deck status and track end warning status.

    Integration with Your System

    Ensure your system can check the current status of the deck (playing or paused) and if the track end warning is triggered.
    Replace the pseudo-code with actual API calls or logic specific to your environment.

    This approach will allow your button to change from flashing green to flashing red and stay red when the track end warning is triggered, as per your requirements.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •