Delay sync values?
-
I'm creating a button that scripts 2 sliders to switch between sync and free-time using the built-in delay module. I've created the free-time ranges and they work fine, but I'm unsure where to start with the Sync values. Does anyone have any advice?
inline function onsyncControl(component, value) { // tempo sync if (value == 1) { Delay1.setAttribute(7, 1); lefttime.setMode("TempoSync"); righttime.setMode("TempoSync"); // need sync tempo range for both left and right time controls? } // free mode else { Delay1.setAttribute(7, 0); lefttime.setMode("Time"); lefttime.setRange(100.0, 20000.0, 1.0); righttime.setMode("Time"); righttime.setRange(100.0, 20000.0, 1.0); } }; Content.getComponent("sync").setControlCallback(onsyncControl);
-
Think I worked it out:
lefttime.setRange(0, 64, 1.0); righttime.setRange(0, 64, 1.0);
-
So this is mostly working, but the ranges jump randomly when switching sync on/off and changing the slider values. Any tips?
HiseSnippet 1169.3ocwWsraaaDEcnknaHcaQBPW1EDdQgBfqCUrqSALLjhkrZMpsifkaPA5hfwjijFXxYTIGlD0BCzkcW+k5+P9A5mPVz0s8NCeMRlRQQnO7BCN2mm6i4NW0Oh6Qhi4QHCqqlNgfL9PyASYhwcFioLzocQFaY1kDfmBT8PGOcBNNl3iLLp8URALrpiT+81VGiCvLORIID54bpG4LZHUTRse6ugFDzC6SthFpI89sO0iy5vC3I.XpY5hlf8tAOhbAVJ1FlHiMOwmJ3QCDXAIFYT+Xt+zAi4uhkJ+yowzqCHxCMQC.CkRtGOvWhXIUTmwz.+94AcLBrR+xTPszTvmXdN0mVPuLUbeECmRMzyGFaLK7pMC7ZtH3UAjLzfT8TH8.yAdQzIhRNoklSYBRzPLj10gRprnM9i5lc3fDLwtg3aH8hfCEZz3.W2cbf+8vCssezib7kUYmXnL6bchPvY1P8HV37RbjipCnoyQNpdicGQDmLbHwSzX6TNaKsQo3JibjStuAw6vCmvYvgFaKYNm7AjgBAzMrPcxEXN8hniFubEKjPooMkEPYDmgILOAkyb3rbKKUOhGzvKW2c.ODjPdn8OYakFj6FSDOUHhnP5gzvMWfCsuEL86B2Rky7QGbPv0Puci638Efwhf38FjMWEPpkipFky6eELsqDpxh6RQIznIH.cUOhssEcnSCEWmiNxo4BCjmrCv7Paq7Dlj64beRisuRZsAY8TVEPcQBnafKwrQpB4A6CleW26XfpD3VaKaKRPLwQ9A.WqEhX2Ef3r1wJvRSW2cA28XW2zOpBTyYjJ.7BrhD6KtKH8ZY0M.ZU0hZuVQ+Btf7LVCUwy9Vam4YMbXk7xrX.IpR1xHLZYJ1fkDdMIRu6RJHLyb1AwatZCh8RSKZBxYmxnhmMgjcd4ujfxxqv.7ZYHD9RnFe+wYiuGDP8IQHJXDay7xORg+xWB+r1nUP+sLKp7yafOcwF3X0jckA1zTVVmW221B8sm1EKvx2gxhHHJmPhDTYxznK4kvi5ouJYAqFDeifOQExYsR.4UInecgO+4uu8zhCsIsCgFbY7UbwEEhes9BDwBxjAzebFTGmLbHEjxzzILFER88CH84wTYKiTt+7uf+Z8qxLyJfS8jqlqY+OAz5uqhXoW+sQZXD.L5t6R.awv8SBvhYWsQtOWFCITz2mPty.Cf3T8.48XeG2ktuypBwGX1mJ7FWMF2nBLBsv+afwrsD+HyzcfJAXcyde25tRn6puR3Vo9+CR2KW446k9cyY7thjbJ5YvcN8wKELtT1jqO2nGg3Km4qoQ6816MsxoqqfhwY7W0GbXuHxOTXme4Ms+Z5cnh519bp1sieuU40F8tpZ+CsEM5RdhfxFcNFdQVde6hjvAvusvi.ELFCdAGnYrgbtc5YW4YIHFPX9pCxahYLaJOajwrYNy+S7QH1Kh+BuzA5xdg6on.wMS8KirLOWd1oY9nbSS3Ue4jE5K77jckeN7bU05730Pm8VCc1eMz4KVCcNXMz4IqgNe4R0Q9iDeZhfGlNkBHz+D0SpFFmvvP2q55I5u4PdcYI
-
@paper_lung it seems it saves the pre defined value. If you want to convert 1/4 into its milliseconds id use scriptnode. You can use the input toggle, temposync, and the converter to achieve this.
I think i have seen a prebuild ping pong delay routing somewhere in the forum aswell.
Found it:
HiseSnippet 1891.3oc6Z07aaTDEeW6LIwIokVnQzKHYg3PpTIJaZ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