mod entry point

What's the correct entry point for a mod?
I tried to follow Erik's project:
with something like this in S4MK3.qml:
import "./MyMod"
Mapping {
MyModule {}
…
}
where MyModule is something like:
import CSI 1.0
Module {
SomeComponent { … }
}
But Traktor doesn't seem to pick my changes whereas if I put my code in say S4MK3Deck.qml , it works fine.
Is this approach still supposed to work?
Any suggestions?
Comments
-
I think Traktor looks for the [internal device name] file name and incorporates it's contents (and any files references in the file) for execution. But i may be wrong.
0 -
Isn't S4MK3 a valid value for [internal device name] ?
0 -
It should be. Where is Erik's mod placed? In D2.qml?
0 -
yup, here you go:
0 -
Funny. Then it should work. Do you have the s4mk3 default mapping loaded in the device list of the controller manager?
0 -
Yes, I do:
0 -
You could delete the mapping from the device list and reload it, see if this helps.
0 -
Doesn't seem to make a difference…
Also, I was trying to use onMappingLoaded to test if my code was loaded. Within that I was making an http call which is kind of cumbersome. Is there an easier way to somehow set an app property to a test value, in the new module, just to indicate that the module has loaded?
0 -
AppProperty { id: quantProp; path: "app.traktor.quant" }
… and to register the mapping being loaded:
onRunningChanged: { quantProp.value = !quantProp.value }
Each time it's loaded, QUANT is reversed. That should be a valid indicator if the loading is successful.
1 -
That code works if I place it in "known" module like S4MK3Deck. It doesn't if I import my own module. As soon as I add onRunningChanged to my module, Traktor stops loading.
0 -
Strange. This code works perfectly with x1mk3.qml.
0 -
Could it be a TP4 thing? I've only tried it with TP3… Is there an easy way for you to tests it with TP3 before I spend $100 on the upgrade? :)
0 -
TP4 is pretty good; and in the process of getting better. It's a good investment in any way. But i will test my code plug on TP3 and report.
0 -
Did NI publish any reports on the adoption rate of TP4 by any chance?
0 -
Please explain 'adoption rate'.
Whatever it is, probably not. It's been a while since any reports / detailed quarterly updates. The last one i consider a detailed report was in spring 2024.
0
Categories
- All Categories
- 19 Welcome
- 1.6K Hangout
- 65 NI News
- 842 Tech Talks
- 4.3K Native Access
- 17.3K Komplete
- 2.1K Komplete General
- 4.5K Komplete Kontrol
- 6K Kontakt
- 1.6K Reaktor
- 394 Battery 4
- 882 Guitar Rig & FX
- 445 Massive X & Synths
- 1.4K Other Software & Hardware
- 6.1K Maschine
- 7.7K Traktor
- 7.7K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators