@stoermelder is there any limitation on how big the json can be? (generally on how many connections you can have?)
Actually its very minor problem…if its more than 15 minutes you should not spend time on this… anyway, as you said these plugins will be used by very few people who will know how to use…
I just note it, in case someone scratching his head to understand why his mapping doesnt work.
I think, this update will make the cabling even better than doing that on screen.
you can add one more key-value pair on every output, like:
{
"type": "cable",
"midiChannel": 16,
"midiCc": 2,
"midiCcTriggerValue": 127,
"moduleId": 9,
"portType": "output",
"connectionType": "red",
"comments": "blue: clocks/gates/trigger, green: modulation, yellow: v/oct, red: audio",
"portId": 0
}
You are afraid without reason…json is the simplest thing on earth if you spend some time understand the syntax. Paste the “example” of T7-code to notepad++ and just read it… then, replace the CC and moduleID and ports numbers with the one you want. (to find these info, click a module and watch T7-assistant). The only purpose of T7-assistant is to help you edit the json file according to your modules.
So, what you want is (if you used buttons), while you are pressing the buttons the cable is working, if you release them, you disconnect the cable. corrent?
question for @stoermelder doesnt it add a lot of cpu work if it is checking the connection always and not only during connection and disconnection?
isnt it already in the plugin? (there is a “midiCcTriggerValue”, isnt it the threshold?)
i think there will be a problem soon with this approach… lets say you put a cable and your controller understand this as a push button (for example you make an internal connection with the arduino) and send a midi message. Then you do the same to the other arduino (your second midi controller) and you make the connection. ok.
but if i understand correctly you have to be very careful when connect or disconnect cables because you must do them in pair: if you connect the one side, the T7-code will wait the other side, (will wait…how much time? there will be time out?) and vice-versa… you cannot have a cable connected in an output waiting…and then do another connection also, you cannot you stack cables. But i think with these limitations you can make this work:)
(its off topic so maybe we can talk with pm: what do you use to print the midilar layout on top of the aluminum? i’ve seen people use vinyl prints…but i dont know if there is a better way…)