QML mod for S5 - Set stem parameters on track load

DJEEka
DJEEka Member Posts: 22 Member

Hi,

I'm trying to set the stem parameters to a certain status upon loading another track.

I found out to call the parameters I want to set (Stem channel on and fx send on) but I'm struggling to find the way to trigger those changes upon loading a track on a deck.

Looks in the S4Mk3 files but didn't find any mention for "load" anywhere.

If anyone has an idea where I should look, it would be appreciated.

Thanks!

Comments

  • ErikMinekus
    ErikMinekus Member Posts: 110 Advisor
    AppProperty {
      path: "app.traktor.decks." + deckId + ".is_loaded_signal"
    
      onValueChanged: {
        // Your code goes here
      }
    }
    

    deckId goes from 1-4 for A-D respectively.

  • DJEEka
    DJEEka Member Posts: 22 Member

    Thanks a lot!
    I was able to put together a script that resets parameters for deck A and B upon loading.
    Couldn't make it work for deck C and D yet, but I can live without it.

  • DJEEka
    DJEEka Member Posts: 22 Member

    I think the culprit is that resetFocusedStemDeckVolumeAndFilter function

    function resetFocusedStemDeckVolumeAndFilter(deckId)
    {
        var defaultVolume   = 1.0;
        var defaultFilter   = 0.5;
        var defaultFilterOn = false;
        if (deckId == topDeckId)
        {
            // Set parameters to specific values
            topStemVolume1.value   = defaultVolume;
            topStemVolume2.value   = defaultVolume;
            topStemVolume3.value   = defaultVolume;
            topStemVolume4.value   = defaultVolume;
        }
        else
        {

            // Set parameters to specific values
            bottomStemVolume1.value   = defaultVolume;
            bottomStemVolume2.value   = defaultVolume;
            bottomStemVolume3.value   = defaultVolume;
            bottomStemVolume4.value   = defaultVolume;
         }
    }


    and those connections

    Connections {
        target: topDeckTrackType
        onValueChanged: {
            if (topDeckTrackTime.value) {
                resetFocusedStemDeckVolumeAndFilter(topDeckId)
            }
        }
    }

    Connections {
        target: bottomDeckTrackType
        onValueChanged: {
            if (bottomDeckTrackTime.value) {
                resetFocusedStemDeckVolumeAndFilter(bottomDeckId)
            }
        }
    }

    Tried to work it out with a coding AI, but no luck so far.

Back To Top