Any ideas what's wrong with this:
Wire { from: "%surface_prefix%.fx.knobs.1" to: EncoderScriptAdapter { onTurn: { ... } } }
Am I using the right knob names/events?
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…
@Sûlherokhh Maybe you're right, I'll test it with traktor3 tomorrow🙂
edit: This also works for me with traktor3 :)
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 // ^ }
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
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.