Connecting/Disconnecting a Table to a Modulator?
-
I've got a happy modulator that I'd like to selectively connect or disconnect from a table. (I'm assuming that when I disconnect the table, the response reverts back to straight-linear, unless of course I'm in Decibel Mode.)
I'm trying the code below, but it's wrong. Very, very wrong.
Any ideas? Cheers.
const var mod_VELOCITY_SamplerGain = Synth.getModulator("mod_VELOCITY_SamplerGain"); mod_VELOCITY_SamplerGain.set("UseTable", false);
-
@clevername27 said in Connecting/Disconnecting a Table to a Modulator?:
selectively connect or disconnect from a table
Do you mean a table on your UI?
-
@d-healey Ah, I hadn't realized they were two different things. I thought the table points were stored in the Table component? And when you connect the table to a modulator, the modulator now uses the table function. When the table is disconnected, the modulator goes back to a straight line. Is that not correct? I realise that some folks have two copies of UI components - one in the UI thread, and the other in a real-time thread. I just have one (in the UI thread).
-
Linking/unlinking tables can be complicated and there are a number of ways to do it depending on exactly what you want. Have a search of the forum, I've made at least two threads on the subject.
Here are a couple of different methods.
HiseSnippet 1172.3oc2WE0aaaCDlxwpq1cMncnXXOJDzGbvBBhWRSavvPchcbpwZRLhSy1SqfQh1hHRjJRTtycn+G2y6WQ+GrcjTNhJQMwwHaAX9ACe73w6iG+32Q2Ol6RRR3wHqZGOIhfr9Z6ASXB+19XJC0qCxZQ68wIBRridnclDgSRHdHKqE1SNfUspH0mO+5cvAXlKIeHD5DN0k7VZHUjOZ+V+LMHnK1ibLMzX1azpmKm0lGvSA7rf8ZnHr6Y3QjCvxoUwFY8fc8nBd7.AVPRf4rC2ax.e9GX54eBMgdZ.QZzDM.VH8vn19z.u9S2qIHjkc+7c9B5c9yr2m5QuX77JvSTNbxivrFXU45fTyaAjrLfTUMjdp8.2XZjH2iDOOxtGCNPFhgRsITzyEU4urraygYvDqFhOizMFLtHhFat1Zq3.es7OVuNTtSDNiwwNGiAP1z4mblF4HhnMOLhy.iFKocujLl5TV.kQbFlxbETNygy1IUH3rlxPi4AMbmF2JvRGjRVt9eTuFcnSiLqZ0zK2pIDXoilt254szJNKoJ0YqT.IVky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