1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE
NOTICE:

Our Traktor Pro Public Beta is available again in our new online community. Join us if you want to try new features.

MORE INFO

MixerFX with QML code ?

Dieses Thema im Forum "KONTROL S5/ KONTROL S8" wurde erstellt von Jike, 24. Oktober 2018.

  1. ErikMinekus

    ErikMinekus NI Product Owner

    Beiträge:
    966
    I don't have time to test it, but I think a ButtonScriptAdapter should work:
    Code:
    AppProperty { id: deck1FX; path: "app.traktor.mixer.channels.1.fx.select" }
    
    Wire {
        from: "%surface%.mixer.snap"
        to: ButtonScriptAdapter {
            onRelease: {
                deck1FX.value = (deck1FX.value + 1) % 5;
            }
        }
    }
    
    Unfortunately I don't think it's possible to get the name of the currently selected Mixer FX.
     
    • Like Like x 1
  2. kokernutz

    kokernutz Active Member

    Beiträge:
    446
    That works! I've simplified it a little more by putting it in S5/Channel.qml:
    Code:
    AppProperty { id: deckFX; path: app_prefix + "fx.select" }
    Wire { enabled: shift;  from: surface_prefix + "filter_on"; to: ButtonScriptAdapter { onRelease: { deckFX.value = (deckFX.value + 1) % 5; } } }
     
    Zuletzt bearbeitet: 28. Oktober 2018
    • Like Like x 1
  3. kokernutz

    kokernutz Active Member

    Beiträge:
    446
    OK, I pushed out an update that enables cycling MixerFX via the SHIFT-FILTER button combo on the S5/S8, and also displays which MixerFX is currently selected.

    If you only use 4 MixerFX and don't change them, you can update the labels of what is displayed via the prefs.

    IMG_0087.jpeg
     
    • Like Like x 3
  4. Jike

    Jike NI Product Owner

    Beiträge:
    103
    Great ! onPress works fine too.

    I added in S5/Mixer.qml for "Master Tempo push" reset all channels to Filter :

    Code:
    WiresGroup
        {
            enabled: !shift
    
            Wire { from: "%surface%.mixer.tempo.push";  to: SetPropertyAdapter { path: "app.traktor.mixer.channels.1.fx.select"; value: 0; } }
            Wire { from: "%surface%.mixer.tempo.push";  to: SetPropertyAdapter { path: "app.traktor.mixer.channels.2.fx.select"; value: 0; } }
            Wire { from: "%surface%.mixer.tempo.push";  to: SetPropertyAdapter { path: "app.traktor.mixer.channels.3.fx.select"; value: 0; } }
            Wire { from: "%surface%.mixer.tempo.push";  to: SetPropertyAdapter { path: "app.traktor.mixer.channels.4.fx.select"; value: 0; } }
        }
    Do you think that it will be possible to have a feedback on screens with selected effect (Left display for decks A/C and right display for decks B/D) ?
     
    Zuletzt bearbeitet: 28. Oktober 2018
    • Like Like x 1
  5. kokernutz

    kokernutz Active Member

    Beiträge:
    446
    Not sure I know what you mean? My mods display which MixerFX is assigned to that deck.
     
  6. Jike

    Jike NI Product Owner

    Beiträge:
    103
    That's what I mean ! Good !
     
  7. Disco Danny

    Disco Danny NI Product Owner

    Beiträge:
    39

    wow, that is like heaven ;-).
    Can you tell where to change or add the code to do this and display the current Mixer FX on the S5's screen?
     
  8. Jike

    Jike NI Product Owner

    Beiträge:
    103
    I use a S5 and his mod works on it.
     
    • Like Like x 1
  9. kokernutz

    kokernutz Active Member

    Beiträge:
    446
    Do you mean that you would like the actual FX name on screen? Traktor does not provide that info to the controller, so I can't display it. However, if you've settled on 4 of the MixerFX and want to change the labels, check the prefs file. They are listed there, so you can change them.
     
    • Like Like x 1
  10. Disco Danny

    Disco Danny NI Product Owner

    Beiträge:
    39
    Thanks.
    It might even be much better if the filter button displays the colour of the chosen effect. Can we program the rgb colour of the filter button?
     
    Zuletzt bearbeitet: 2. November 2018
  11. Disco Danny

    Disco Danny NI Product Owner

    Beiträge:
    39
    Yes it works perfect. Accept the status of the fx button light. The light will go off when pressing the shift button in combination with other functions.
     
  12. kokernutz

    kokernutz Active Member

    Beiträge:
    446
    Agreed. I'll try to do that this weekend.
     
    • Like Like x 1
  13. Jike

    Jike NI Product Owner

    Beiträge:
    103
    You think that all the buttons are RGB ?
     
    • Like Like x 1
  14. Jike

    Jike NI Product Owner

    Beiträge:
    103
    I've done this, it's fine. I don't think we will change every days the 4 favotites MixerFx so it's a good idea to display the MixerFx name.

    But, of course, if there is a way to get the name from the app it will be smart !
     
  15. Disco Danny

    Disco Danny NI Product Owner

    Beiträge:
    39
    Is it possible to use the left arow next to the screen of the S5 ("%surface%.display.buttons.4") in stead of the shift button to do this?That will solve the FX button status problem when using the shift button for other functions.
    I tried to replace your code as mentioned above with this one below but that is not working.

    AppProperty { id: deckFX; path: app_prefix + "fx.select" }
    Wire { enabled: "%surface%.display.buttons.4"; from: surface_prefix + "filter_on"; to: ButtonScriptAdapter { onRelease: { deckFX.value = (deckFX.value + 1) % 5; } } }
     
  16. kokernutz

    kokernutz Active Member

    Beiträge:
    446
    I'm not sure I know what you mean by the FX button status problem. Could you elaborate a bit? Maybe I need more coffee...

    I don't think your code will work, but I can try coming up with something. One issue with using the left button next to the screen is you'll need handle which deck/channel it should be acting on, since the screen could be controlling either deck A/C or B/D.
     
    • Like Like x 1
  17. Jike

    Jike NI Product Owner

    Beiträge:
    103
    When Shift is pressed, the 4 Filter On buttons are "Unwired" from the "Filter On" values in TP3. So, until we release the Shift button, then don't display the Filter On or Off status, waiting for the MixerFx selection.

    Then, when Shift is released, they are "Re-wired" to the Filter On values in TP3 and then they display the 4 Filter On or Off status.

    Is it what on mean ?
     
    • Like Like x 1
  18. Disco Danny

    Disco Danny NI Product Owner

    Beiträge:
    39
    Thanks for your reply Jike. First of all this workaround for using the Mixer FX on the S5 is absolutely great.

    But the problem I mean is: When pressing the filter button in combination with shift the status of the filter button light is completely random. All 4 filter button lights go off, while the filter is still active. So after you selected a Mixer FX (by pressing shift+Filter button) for one of the 4 channels the status of the Filter button light is random ON OFF or deactivated. Hope you get what I mean.
     
  19. Jike

    Jike NI Product Owner

    Beiträge:
    103
    If you own a S5, you can try this : https://maps.djtechtools.com/mappings/8924

    No issues with this mapping.

    How do you use the Remix button as a second "Shift" ?
     
  20. Disco Danny

    Disco Danny NI Product Owner

    Beiträge:
    39
    I only changed the word 'shift' to 'remix' in this line

    OLD
    Wire { enabled: shift; from: surface_prefix + "filter_on"; to: ButtonScriptAdapter { onRelease: { deckFX.value = (deckFX.value + 1) % 5; } } }

    NEW
    Wire { enabled: remix; from: surface_prefix + "filter_on"; to: ButtonScriptAdapter { onRelease: { deckFX.value = (deckFX.value + 1) % 5; } } }

    BUT......
    the remix button does not have any effect, now each time you press the FX button the next MixerFX is assigned to the filter knob ;-)
    So it is NOT working