Mapping something (e.g. loop size/out) to jog wheel

13468923

Answers

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod

    Sure thing, all of it i shall explore, and it seems absolutely doable, except for

    -Ability to deactivate the GRID button JogFX mode by sending value 0 to the corresponding MIDI Knob.

    which i need to have explained to me. Are you saying that MIDI Knob value (1-4 I imagine, with values either 0.0, 0.5 or 1.0) is getting adjusted by some means (another MIDI controller for example) and that once it is exactly 0.0, JogFX mode is set to false? (Right now it works the other way around.)

    In that case i think the answer is yes.

    I will remove all the functions you don't need; consider those a small inspirational slice of what's possible. 😁

  • Stevan
    Stevan Traktor Mapping Mod Posts: 2,004 mod

    Yes, that is exactly how this should function. For example, if I map the MIDI Knob 5 with value 0 to the Deck Load encoder switch on my S4 then I should be able to deactivate the JogFX mode. Or any other controller for that matter.

    This way I can say load a track and have jog set to it's default state in one press of the button. Again this should be possible with MIDI too.

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod

    You write MIDI Knob 5 for deck A but it should be MIDI Knob 1, right?

    Right now, MIDI Knobs 1-4 (for decks A to D) are the threeway switches (0.0, 0.5, 1.0) while 5-8 are sliding values for the JogWheel.

    I will designate MIDI Faders 5-8 for the sliding values for the secondary HoldJogFX function.

    HoldJogFX will be usuable no matter if JogFX have been activated or not. HoldJogFX will not toggle (on, nor off) JogFX mode, only temporarily suspend either JogFX or standard JogWheel functions.

    Any preferred colour for the ring? 🦋

  • Stevan
    Stevan Traktor Mapping Mod Posts: 2,004 mod
    edited July 2023

    Yes, sorry that would be MIDI Knobs 1-4. (5-8 are linked to the rotary encoder).

    Faders 5-8 sounds good and red is already cool for the jog ring indicator, I use red for fx in my mappings.

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod
    edited July 2023

    There is also the matter of a MIDI OUT signal that signifies HoldJogFX is in effect. I had this in mind, extending the three-sided switch to a 5-sided switch:

    • Jog Wheel: MIDI Knob (1-4) Value: 0.0
    • JogFX: MIDI Knob (1-4) Value: 0.2
    • JogFX, Touch On: MIDI Knob (1-4) Value: 0.5
    • JogHoldFX: MIDI Knob (1-4) Value: 0.8
    • JogHoldFX, Touch On: MIDI Knob (1-4) Value: 1.0

    Of course the numbers are arbitrarily chosen. So any values you think are best suited will do.

  • Stevan
    Stevan Traktor Mapping Mod Posts: 2,004 mod

    That looks fine to me. As long as the values are different it is all good!

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod
    edited July 2023

    All done, except for switching JogFX off when MIDIKnob Value (1-4) equals 0.0. That will take some tinkering. All my avenues of attack have so far led to crashes. I may find a way yet.

    Enough to play with for the moment but not the final word. Enjoy. 🦋

    Edit: This second file is the same as the above, but it resets the MIDIKnob Value (1-4) as well as JogFX, when the corresponding deck is loading a new track, no matter where the command originates. It's not exactly what you asked, but you mentioned that this was at least part of the reset purpose.


  • Stevan
    Stevan Traktor Mapping Mod Posts: 2,004 mod

    Alright it works perfectly. Let me test it some more and report back.

    I figured that the screen on the S4 MK4 is completely off when the PC is restarted so I use that as a work around for the display flicker.

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod

    Brilliant. Ready for bugfixes if you find any. I've been stress testing yesterday and found none so far. Let's hope NI pushes an update soon to make the flickering go away. 🦋

  • Stevan
    Stevan Traktor Mapping Mod Posts: 2,004 mod

    Loading + Disabling JogFX mode is good but not always needed. May I propose the following change?

    Tap of the Browser Push = Load Selected

    Long press of the Browser Push = Load Selected + JogFX Off

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod

    Yes, i can easily put in a timer to have a JogFX go off after holding down the browse knob for 250ms.

    I have a new avenue to make it MIDI Knob (1-4) going to 0.0 by any (external) means to trigger JogFX to go off.

    If it works i will do both (testwise), otherwise the browse knob only.

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod
    edited July 2023

    The browse knob (hold) to reset was quick to implement. Note: If you browse and load samples into a remix slot via pads, hold down the browse knob for 250ms and then release will also reset JogFX. To exclude this would require some restructuring in other files.

    I continue working on the MIDI trigger, so other controllers will also be able to reset JogFX on the S4.


    Edit: Finally! What a brainf***, but i found a codewise pleasing solution. This new file has both the browser knob (hold) JogFX reset as well as the MIDI Knob (1-4) set to 0.0 JogFX reset. So you can now reset the JogFX from any source:

    Thanks again for your support. Enjoy the result. 🦋

  • Stevan
    Stevan Traktor Mapping Mod Posts: 2,004 mod

    You nailed it again! Thank you very much for not giving up on the idea.

    -Please remove the hold-to-reset Knobs 1-4 on the Load Encoders since it is now possible to use any button thanks to your amazing work. (Note. 250ms is to short for this kind of button actions, I normally go with 500ms to a second so everyone is happy)

    -Maybe investigate the Deck latency. Each Deck in Traktor has a different input and output delay. I noticed the issue with right-side jog wheel, it sometimes skips the "note off" (jog release) and my effects were still activated even after letting go of the jog wheel. I managed to fix this by deactivating effects if the jog wheel is not touched but turned to the left/right (jog nudging). This happen when tap continueously on the right side jog without making any turns.

    -GRID buttons in each side are not synced. The right-side GRID button seems to be inverted/opposite to the left-side GRID button. Was this done by design?

    -Let's also change to a different color on REV and FLX buttons instead of default Red (it blends with the JogFX Mode). Can we have Blue and Light Orange to match our default deck layer colors?

    I will upload the mapping later today when I make some instructions on how to install QML and TSI.

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,627 mod
    edited July 2023

    @Stevan

    You nailed it again! Thank you very much for not giving up on the idea.

    Glad to provide a useful service. 🍁

    -Please remove the hold-to-reset Knobs 1-4 on the Load Encoders since it is now possible to use any button thanks to your amazing work. (Note. 250ms is to short for this kind of button actions, I normally go with 500ms to a second so everyone is happy)

    Done.

    -Maybe investigate the Deck latency. Each Deck in Traktor has a different input and output delay. I noticed the issue with right-side jog wheel, it sometimes skips the "note off" (jog release) and my effects were still activated even after letting go of the jog wheel. I managed to fix this by deactivating effects if the jog wheel is not touched but turned to the left/right (jog nudging). This happen when tap continueously on the right side jog without making any turns.

    As a safety i can put in a timer after TouchOn is activated (1 second ?) that will trigger TouchOff after reaching it's end. Turning the jogwheel would restart the timer so that TouchOff being triggered would only happen after 1 second of not moving the wheel.

    BUT, i will try something else regarding responsiveness first, which may make the safety unneeded.

    Thanks for pointing out this bug; it essentially shows the functional limit of the ButtonScriptAdapter, which is good to know for future coding projects.

    -GRID buttons in each side are not synced. The right-side GRID button seems to be inverted/opposite to the left-side GRID button. Was this done by design?

    There is only once piece of code for all 4 decks. I have no idea why this should be inverted. It should really only be depending on when the button is pressed to trigger the command.

    -Let's also change to a different color on REV and FLX buttons instead of default Red (it blends with the JogFX Mode). Can we have Blue and Light Orange to match our default deck layer colors?

    I would, but the REV/FLX button LED's only use Red, much like PLAY only uses Green LED. The only thing we can do is change the colour of the JogFX.

    I will upload the mapping later today when I make some instructions on how to install QML and TSI.

    Great to hear you have been busy. Looking forward to check out your work! 🦋


    Edit:

    • I replaced the ButtonScriptAdapter with a HoldPropertyAdapter, which i expect to reliably respond to the JogTouchOff message and in consequence trigger the MIDI Knob (1-4) message. If that doesn't help i can still put in the JogTouchOff timer.
    • Browse Knob load trigger removed.
    • There are four seperate (but identical) blink timers, one for each deck. The blink cycle is manually triggered for each one, so they are bound to blink at different times unless you trigger the JogFX mode or the play state of the deck at the exact right time.


  • Stevan
    Stevan Traktor Mapping Mod Posts: 2,004 mod
    edited July 2023

    That fixed the "sticky Jog Touch" and it feels snappier now as well so it looks like that other adapter helped big time. I was overriding this setting by outputing the signal from the Midi Knob itself which I removed from the mapping now.

    Yeah, I figured those might be just red LED's there... It was worth a shot. Thanks for looking. Let's change the JOG FX color in that case - maybe assagn to white color instead of red?

    I added new BETA section in which I will be uploading mappings that are work in progress.

    https://traktormaps.com/beta

    Version 1.0 can de downloaded from there but I also attached here for quick reference.

    GRID Tap = Jog FX Mode Toggle (when you see blinking GRID button, use the jog wheel to control effects)

    GRID Hold + Jog Turn = Seek Position (temporary feature)

    Favorites = JogFX Preset Toggle (when activated, FX Burrons 1-4 become Effect Preset Selectors.

    Browser Encoder Press = Long Press Loads Selected and deactivates the JogFX Mode! (which is amazing on it's own that you managed this)

    What is the exact problem with the Ring Indicator feedback by the way? You don't know exact path for this LED feedback or is ther some other issue? Would love to have the feedback for the "ammount" of the jog effect displayed as a cherry on the top.

Back To Top