HISE Logo Forum
    • Categories
    • Register
    • Login

    Randomize Button

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 197 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.
    • M
      marcrex
      last edited by marcrex

      Hi there!
      I'm currently working on a sample library that has two samplers, and I'd like to create a button that applies random changes to the parameters and settings, including the two layers' sound sources, the Balance control, and all macros.
      I am currently trying few methods but I'm a bit stuck.
      Anyone has a snippet about it?

      d.healeyD 1 Reply Last reply Reply Quote 0
      • M marcrex marked this topic as a regular topic on
      • d.healeyD
        d.healey @marcrex
        last edited by

        @marcrex

        To randomise a module's attributes you can use the Math.rand() function along with setAttribute

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

        M 1 Reply Last reply Reply Quote 0
        • M
          marcrex @d.healey
          last edited by

          @d-healey Thanks a lot! :)

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

          22

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts