HISE Logo Forum
    • Categories
    • Register
    • Login

    Random / Linear Slider

    Scheduled Pinned Locked Moved General Questions
    13 Posts 3 Posters 458 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.
    • DanHD
      DanH @d.healey
      last edited by

      @d-healey oh I want random() :)

      Thanks!

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @d.healey
        last edited by

        @d-healey should I be able to use an array in this too? Only the first value in the array is moving...

        HiseSnippet 1366.3ocwXEzaaaCElJMrK1oYXEX21EgbRFHM01KsqCCCUINNqtM1wKNMnEcEcLRzwbQhzkhpqtEEXG2scY.6Ow9Qji63.F189SXX+.1FojrDsqTriA1ltXQ9deO98d583izc4LGbP.iCLJczngXfw0f8FQECZL.QnfV6BLVAd31c18f1fcFMDEDfcAFFW4KTRMJsLH54Ot6NHOD0AmME.bLi3f2m3SDYy109ADOu8Pt3iH9ZZukcKGFsAyiEJYxUfUACQNmgNE2AoTaIHv3pMcIBFum.IvARc1g4Np2.12Ri0+XR.4DOrZPMPOoghmFzX.wys6XuL..LVtalOekXe9CgsItjz4y78OHRfYFB8XfwRSRokmfR0JhR6w7bUFn.5YnQukio20g8b3jghLIJtsJrEUf48QxvtNsh0ErzFPXClTCpXSezY383xAoHrtc0paXdqpUq7YqUVF5CDlu.wM2uUmlaen4maNF4oXQCl+PFUNvZ8XwqOIl8Nr4W9vlcZ73BgkpQQHqMan0JBa8Yis9TXOpY6tGz6wcZTHzTMlFYq1MKFjT3T52s0QMtWg.hjFgPGSeN94HNGMRh6Io9vFZQKs2q+zHzDpGghM6GRcDDF0jQiqYUqKm4Y4LdQ2PtDdg3JqU90qUtjoIouo03YjCMM6y3lVuzjPy3gTjRxqi+Q8DmGrY.VbrBqUajXvlbD0k4aUQ4OSony.D8T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ZF0DIJiD7OM8k9LC
        

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

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

          Try Console.print(x); and you'll get you're answer ;)

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

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @d.healey
            last edited by

            @d-healey It prints out three object numbers.... I don't get it 😆

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

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

              @DanH

              On each iteration x will contain the value of the array at each index. So the first time through it will contain the value at array[0], the second time through the value at array[1], third time through the value at array[2], etc.

              If you want the index number then you need to use a regular for loop instead.

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

              DanHD 2 Replies Last reply Reply Quote 0
              • DanHD
                DanH @d.healey
                last edited by

                @d-healey Silly me! Thanks David :)

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @d.healey
                  last edited by

                  @d-healey So what do I need to do in order to generate random numbers between 0.00 and (for example) 0.50?

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  LindonL 1 Reply Last reply Reply Quote 0
                  • LindonL
                    Lindon @DanH
                    last edited by Lindon

                    @DanH said in Random / Linear Slider:

                    @d-healey So what do I need to do in order to generate random numbers between 0.00 and (for example) 0.50?

                    read the Javascript manual (anywhere on line) for the random command:

                    thy this:

                    Link Preview Image
                    W3Schools.com

                    Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

                    favicon

                    (www.w3schools.com)

                    HISE Development for hire.
                    www.channelrobot.com

                    DanHD 1 Reply Last reply Reply Quote 1
                    • DanHD
                      DanH @Lindon
                      last edited by

                      @Lindon :folded_hands_medium-light_skin_tone:

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      LindonL 1 Reply Last reply Reply Quote 0
                      • LindonL
                        Lindon @DanH
                        last edited by

                        @DanH

                        start here:

                        Link Preview Image
                        W3Schools.com

                        Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.

                        favicon

                        (www.w3schools.com)

                        read thru every page of the manual - compare the javascript versions against the HISE API documentation - some things available in Javascript are NOT available in HISE, and the reverse is also true....but 90% of it will be useful to you.

                        HISE Development for hire.
                        www.channelrobot.com

                        DanHD 1 Reply Last reply Reply Quote 2
                        • DanHD
                          DanH @Lindon
                          last edited by

                          @Lindon found it :thumbs_up_light_skin_tone:

                          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                          https://dhplugins.com/ | https://dcbreaks.com/
                          London, UK

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

                          20

                          Online

                          1.8k

                          Users

                          12.0k

                          Topics

                          104.5k

                          Posts