Enable loop in sampler
-
Is there a way to have the sampler 'enable loop' function turn on and off with a button on the UI?
I couldn't see it as one of the options under the sampler if I assign a button to it and I couldn't find anything in the docs either.
Is this possible and if so, what function do I need to call in the script to be able to assign it to a button?
-
@rzrsharpeprod LoopEnabled is a property of each sample not the sampler. So as far as I know you would need to grab all the samples, loop through them, and set the property for each one.
Here's an example (add your own samples)
HiseSnippet 1231.3ocyW0saaaCEVJNrnRqKXsnWraFfPvtvYnyvtMMc.EC0wNNEAKNwvJsaWsBFIZahHQJPQkEug9Zrmi8HrWmcWeC1NjRxlx0HywqMq4h.eN77y24vyOTCD7.RZJWXY6b1zDhk88P9SYxIcmfoLqiNvxdKTebpjH7xY0YZBNMkDZYaW6kJF1NaZo+6cunCNByBHyYYY8ZNMfbLMlJmycP6efFEcHNjbFM1P5caeT.m0kGwy.7TC0zJAGbAdL4DrRrMPV12oWHUxE9RrjjBxzgGN0eB+WX4x+ZZJ87HhhnkkOXnb1VcmPiBGTFqoVV1nAyi7Z4Q9CQ8ogzY7mmA9B8Ady0vLGXuw0AoV2.HYa.oMygz8Q9ABZhb9IJ77YniXvExHLjpMgRtrVa7W1ntbPBlrQL9BxgBfXlF02qYyG4A+amm65Bo6To2kXgmONNIhHZ488d56+FiIxBd02t7vsU53RYQTFwaTFKPR4LONqSlTxYsTNUvipGviS3Lv8OBLcTFYG2ey0IhGfi7vQQ4FKU4nBy1HPPfjmOIhnsX8sa7MJW435LhK7pekGkYn4NtNNW0HkHqOy.Gy4I8XXHOGV5ym69V.rk4AHZ5Vhp5aWf2s2QYkBT2Ebv4P4V8ECGvRFg5IbI4TVccH49VWuEOZznkdVgsTYykcrpOPbcJVmkEeNQXlPUBBEJUq9typU8EjmVLDjyNhQkmlPJnOjGEpppT+98qUsJxqpp1BDBhJ00raUTylmEsnfQbPEoTKM7MGYX8piN.KwkFBrI3mDhPRUgi8AjKg4G4MCNnCHoWH4IZYKtLgLvJ31qfFd6eGb3T0O9Y8Pn2qYCZy4gYQXY0de0PthCfqjJMbplJVJUN0LhtACDZdsCDVUHdez.pLXxxw3FKAiPx9iAFKFi94ndiFAMxyA3lnC+o0cl4p69uJ28O.4KgwIwT13hwCZL3hJGV7gXCVxJuAaffDwwg9ze0Pr+rcmLHGIpx8OZqc09w7LVEeUf7gjDXLIbManycaOb3KE7rjE05cuPWTbl.FoAoByCNkQfbszLF6J3ooifvQaqTyiFjIFqxUy4LjbIQjVk2IYwv8MiQhRUcX1.qWkRT2uzf9XofdkozZuz7Lr9NFVqqoas.8iWf9IKPu6BzOcA58Vf9YyoySn8wIpJC0yJVXJpypMEELv.LDxFR1gNdlwy4Tc7ggnyx4ZbY7HFehTBWYoFr9Q7kDXUXrg5K4AD24i0aZ1b05O+W1Y7o+D2JOAyoDi9T0EZO1kPmLvQgwG.qhFgyhjkbqNUoOmwSlvYzfp8MPev3wDgI1WZ.suTBssy47v1Cg2FgSMZ7+51GCOBCKpNN3FkKt4OGco2WeIJGtdpQgd+Wt2tUKyt1sl0Voslevw65uA8VM0sUwtTOv6B4m32y2Com96oVV++ETGxyTSzKWDhfsk9vKDBHl6L2PsGNmtohVAHeBKTS72veEG1pbAq5vVkGZETZJH1J9s9g010H4eXj5wfQvp6HyR5T3cHJHAKAuUPYLNPveSP9mLnv5c0b.TxzeiuCpuh1a1WJfPMazzJF1U8lf.Uiv2BY3kqyiWCcdxZnytqgNOcMzYu0PmmsF57cWqNpmIreljGmOjDXLnWdgkcuYEV0r9G.dRI5q.
-
@d-healey ah ok, that explains why I couldn't find it as part of the sampler. I'll have a look at this properly when I get home but I appreciate the assistance.
There's only 3 samples I need to apply this to luckily so it shouldn't be too lengthy.
Thanks again, I'll let you know how I get on
-
@d-healey I forgot to say earlier but this worked like a charm. Thankyou for your help as it would have taken me forever to figure that out (if ever)