HISE Logo Forum
    • Categories
    • Register
    • Login

    SliderPack always round up

    Scheduled Pinned Locked Moved Solved General Questions
    sliderpackroundvalues
    3 Posts 2 Posters 239 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.
    • VorosMusicV
      VorosMusic
      last edited by

      I built a fake sequencer with a sliderpack and everything is working as wished, except the rounding.

      The sliders are set to full values (1) and they seem to work as expected rounding from .5 upwards, but I would like them to always round upwards if the value is higher than .0.

      Is there an easy script solution for that?
      Thanks in advance!

      d.healeyD 1 Reply Last reply Reply Quote 0
      • VorosMusicV VorosMusic marked this topic as a question on
      • d.healeyD
        d.healey @VorosMusic
        last edited by

        @VorosMusic Math.ceil()

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

        VorosMusicV 1 Reply Last reply Reply Quote 1
        • VorosMusicV
          VorosMusic @d.healey
          last edited by

          @d-healey
          Perfect, thank you!

          1 Reply Last reply Reply Quote 0
          • VorosMusicV VorosMusic has marked this topic as solved on
          • First post
            Last post

          32

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts