Link tables between scripts
-
@ustk
I live to succeed in connecting a table with a script but since this same script I can't connect a second one.const tblCc = Content.addTable("tblCc", 0, 0);
tblCc.connectToOtherTable("mod1", 0);
Console.print(tblCc.getTableValue(127));
-
Post a snippet
-
This post is deleted! -
HiseSnippet 1410.3oc6YssaaTDFd13LoINDTKsBpPBoUUbQhZvxNoIsUHDt0IoxPRrIq6AItHZxti8NJ6Nyxtyl1PUEOB7.vaBWwkbIOBHthK4M.9m8rIKtFmjRZoqkVk4+vLey+7eZ1z0WXRCBD9Hs45crGEo8NXii4R6V1DFG0dCj17XI4.GZOZfDc+i8HAATKjlVkGnDPatoQQO+wmeehCgaRyIgPORvLoaybYxbpca9kLGmsHVzdL2BReqlsME7VBGQH.lJ35HOh4gjAzcIJwlBizlYSKlT3aHIRZ.Ra56KrN1vV7Tdr7OhEv.fpFz.Y.STL4sDNVJDqnhZYybr5ltoCPvj1M2DTI1DbM7NLKVF8bSwkiXnmqQQ6g1TiBdMlP3MUA3McL7tB1vzm4Iy4nv1USnlitFCAuXtHse.2OjaJYBttfuqPR6vWbopOu5bUeQU8+Nq98KkWKAW5Kbbn9kxVcv5OJEWjG5d.0eY8iHNgzLAgc3vlvpimID7ajTtrffBdaNS1wilMNdmlRoNJaCVjT99pH0nsSIhkS5jmanVwXBNA0RDGDUFc9sPxIUOUXEhAmNWBKOvokIJxbjER7S62D8v1aPjjzYAlPXQ7n9Rlx7nsA8HH.K1qXN7FzfCkBuHYc8Db0xqMyKaMeFRCqoVtiS+CaJafsJhcl8ShieJyRZqH7yoQ1iqW4731.r86SfDCk3MN0uogS1X0bIGR2xGFjowhqWu9x5qUu9Re5BUi+AG0AR8Hjq+Y5opRrrh1XKdiHN2XYcPuBZE+iwcXbZQ2wHoS8IMSMZotkKT84KTctHYpAqKmZJ6I5Hso9IKlqvpwMxVnWD8NERCnxrSgTXsTs.E0nkqEww4.HA2hCihbLCDBDNzZd9LXFhQALoQK8iT3awFqb6kxk+0mn54OqhpKl57hQD9z+qivsTg2ZqgWc8ZYO2sE75nNqt1W8z69Dai6rd7X3U+aVfO5zmc3RmKYGjzmISlByVkkq.piJrBcHxgKtp5nHgA3XMT9BUNAd.SdbwNNNWp3Ntv8J3tLooc43cpRvqpX9Xi25SDdS5eYA7l86CYqxA6z3sdxj1rxjAkYigxGhefi3.hStADbTATQiKO7QIr0y3qmIPiQzs4uLtca5M1capU4T5LUVRBso+On6x5m495W8DGSAuBhNq+x5G9cigLFu8Vchv4LXUI4WNz1xm9MgTtYAhy1T4jzN2Gq4227wjin8E9tIoPSj75M2lN.rAEmvdTHkJbuIyh9iFtBgzlwGLrq20ZtsP3sIWkq0p3jz0lDnpWAMITbZZEFHEtoXYRqUXHodQEKz9Z752p1v7WsyYyXz4+Y9ncSAGA8rSbk25Ypa54QfkBwYtiWPP7YVb0u9sW6CdMLtpeqCe7JwwMzdq9E27HWR6aegJtpx3EW81XoKzHdjsPV4+msPtmHTBg16Pj9L0kO1Mz0.5QyjBHAtBtSf5dHSoBeiGWO8dIFTtUzf+DdRX1PMVKgYiTlkjpadrAzxYzG9LZy99Qi0UIGze.EZFUcv8O1Pp9u+c+3YeCocLkvx2ymvC7DACMwFTWVO3JbAEI9v.px4eOkmzP44DD+RYA4qgMYo5XPjg9Qtj2yUDxGJu4otQ4Fu41n7o+NrSdlcstm3a4eYvM10ygtI+Hpi.nnv36g2f1mD5HSoNre8NBtvyVvYCUycOJDONX.0uH1KcCcOojXdXwxx6QcnjhNvebysAGOhOXmnm+1hQcdccbLb0UAi5mSe6g2V33MkBGuJVCWhouXey3unnxWd1HJv9lG8OBaN7Npw5MR+VhXb8Z0QtPFw8MMUl6OArOkqyJSfNqNA5bqIPm0l.cVeBz41SfN2Yj5nJFcuP3tDwgh.gtaFek.srainUA8Wf.WwqH
-
Is it possible yet to link tables between scripts using parameter/processor ID and table index?
-
@d-healey yes. But you need to script that.
-
@Christoph-Hart Doesn't appear to work (I'm probably misunderstanding)
HiseSnippet 832.3oc0VssaSCCF1tqFVKL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ul+9+DDeQRxNWcIo4u+1+5IkjjHTu+7ZI40RxqkjenH9VF1bEc1leTdkMfWD5i1ixQu+6h+YFG45xnpb.VyXv2usu38Eb5+NYrBz+mPTg7eFVYcZr+X3yQnL3rKDLOn4F3JZYbpsk1NQyyDNIF+CbjErs1FmEr8pfHeBMT9JZ5KKpI+2LwCfIQxG5TG9hKv1rMJ4EH0KNsZYg7gO73UTp9x+afauatlNaQM6tE0r2VTy82hZ5tE07fsnl8O2Zzey2Sig01oxAvg8QoaWwqep.tJ5e8qoKzO
const var LFOModulator1 = Synth.getTableProcessor("LFO Modulator1"); const var LFOModulator2 = Synth.getTableProcessor("LFO Modulator2"); LFOModulator1.getTable(0).linkTo(LFOModulator2.getTable(0));
-
@Christoph-Hart Hmmm that's not really what I'm trying to do I don't think.
I have two MIDI processors (one is my main interface) each with a table and I want to connect them together. I want the table on the main interface to be saved/restored with the preset.
-
@d-healey I don't know if that's what you wanted... I used this some time ago to connect different sliderPacks :
HiseSnippet 985.3oc6W0saSiDEdljLrMgezhfG.qdUp1RjCTJfPHflltaDz1rjBr6Uno1SRFE6YrFOorYQ7trWrOQbMOD6avtmYrSrC3lFhJq.A9BKe9y9ymyYNeyzUI8XwwREBW8nIQLD9RjdSD5gsFR4BTmcQ3qP1mFqYJmDU6LIhFGy7QXb4e1n.WsBxd8OObGZ.U3wxTgPuPx8XOkGx0YZ69nmvCB1i5yNhGly6sdTGOonkLPNFvSYhKJh5MhNfc.03VIBBeg19bsT0SS0rXDtxNR+I8FJesHw+Wvi4GGvLBMQ8fWTh58jA9FDadF0ZHOvu6z+6XDBS5lkEJmjEtNYetOel9rrwOZM3jEQ97Atz7vq7bvq4oAuBfTobPhj.oqR54o3Q5LKF7rFYPf7XZvb33fwgGQgOD.ABFCY1jHQ32k5siIwtKUScdfSaw.tf0vSw.P+Xg+yXC3l5s8MX7ot6F2u+XgmlKENRwARM6PQ8Mp8lZUq81ZNeno98KzVKoPqjAALUglMcBpEEXcw3viYpMcNgFLlMyQnGX9bNY4x4PillIz4bTJ5H35CiXoxebUA0JIH3om2wjYfBENUG3WDSo4FHf2kcBz0mT1pR1kEORKif99rZZkEUSuHoC7NU8ovRo7k0zpXoqgIoe0FgzQr8TfvrHpusq6lNvsMtesZveYrFxXJGa0rITtmF4.ltkLLRJ.g5qmXdcSLIO1Pw5C8.RaCvztkul5Ctv4UeP1viE2SjzJ.HDfh1VcubZ00lQQbeyp0jrKxB97yI8MsS3aSt01Ml+5jC+0W9mitm32CFbmVVY3V+exX5dIxqV2nw2zxOjrNS.+GlQI+M.zIlGFAO7ZtudnQ38fvPFevPsQ5urS3+nNcXtozeb.UO+vTCCRpAnJOW2toiVDy0Sxyv7gSXqb5UY2BI.JrFtjv8pjtbs2vhwaoBvqYP9mY7lxWcYR698Yd5LvVgr2usPxoycnr1orAhKYmVARLUyyisODszae.WdQ7wteB7wU9bsEgJK2XpyXGL3kkZ4ZoZyPWyBoXPYTLwL8uXWcW+l4IUzl4B43Sn991QE0W2ZY8Mc.ZHi+VwSgNo122WwmLGxOPrYzuznPNS7ZYPPSYPPeml3aIZhmIGq4hA6S0JtoQ.NgROXLsGCPhPvBrmTojYoPhr6zdjdLguU3egqTiMmcrFvXyoF+e4aDR8TxW4krH0L4cMqF3+VXOiZU3vxfryrc3QHtMbQg.gvq77Lo6a.4mhi4lqPL2ZEhYqUHlauBwr8JDycVgXt6BiwvE+3wZYXxRQPQ211QcXbagYvjsqG8e5eAoVC
(yes using global data objects)
-
@Matt_SF Yeah that works, I was hoping to do it directly with
processorID
properties though. What I did in the end was add some global velocity mods and link between the scripts using their tables. -
@d-healey said in Link tables between scripts:
I was hoping to do it directly with
processorID
properties though.Ah, I see
-
@Christoph-Hart Any way to do this yet without resorting to global variables?