fx knob wiring (qml coding)

2»

Comments

  • oviwan
    oviwan Member Posts: 120 Helper

    That doesn't work either for me. But even if it did, won't help cause I need to run a script not to wire a property…

  • pixel
    pixel Member Posts: 232 Advisor
    edited December 21

    @Sûlherokhh Maybe you're right, I'll test it with traktor3 tomorrow🙂

    edit: This also works for me with traktor3 :)

  • Sûlherokhh
    Sûlherokhh Member, Traktor Mapping Mod Posts: 2,816 mod
    edited December 21

    Well, you can add the following code to the MappingPropertyDescriptor

    onValueChanged: {
      b = 1 // to assign a number to b
      reset() // to call a function named reset
      if (value > 0.5) b = 1 // to assign a number to b depending on counter value
      else b = 0 // ^
    }
    

  • oviwan
    oviwan Member Posts: 120 Helper
    edited December 21

    As soon as I add:

    MappingPropertyDescriptor { id: CounterProp; path: "mapping.state.left.counter"; type: MappingPropertyDescriptor.Float; value: 0.0;}

    Traktor Pro (3.6.2) fails to start

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

    Hard to debug code in a file i can't see.

    Make sure you got the libraries

    import CSI 1.0
    import QtQuick 2.12 // or QtQuick 2.5

    You could also use a global MidiKnob of Traktor, there are four available and they are real or float (0.0 to 1.0)

    AppProperty {
      id: counterProp;
      path: "app.traktor.midi.knobs.1";
      OnValueChanged: {}
    }
    

    Play around with the placement. Best thing you can do is to check out the files in the CSI folder of a working copy. You will find examples of both approaches and can compare with your own code to intuit what makes your code not work.

Back To Top