HISE Logo Forum
    • Categories
    • Register
    • Login

    Enable loop in sampler

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 301 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rzrsharpeprod
      last edited by

      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?

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @rzrsharpeprod
        last edited by d.healey

        @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.
        

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        R 2 Replies Last reply Reply Quote 0
        • R
          rzrsharpeprod @d.healey
          last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • R
            rzrsharpeprod @d.healey
            last edited by

            @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)

            1 Reply Last reply Reply Quote 1
            • First post
              Last post

            46

            Online

            1.7k

            Users

            11.7k

            Topics

            102.2k

            Posts