HISE Logo Forum
    • Categories
    • Register
    • Login

    case range for switch statements?

    Scheduled Pinned Locked Moved Scripting
    6 Posts 3 Posters 272 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.
    • ?
      A Former User
      last edited by

      I've noticed it doesn't work in HISE:

      case 60 ... 95:
      

      Do we have an alternative?

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

        Have to use if else in this situation

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

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @d.healey
          last edited by

          @d-healey Yeh just tried it, works. Is that fine for performance in an onNote() call?

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @A Former User
            last edited by

            @iamlamprey Yeah. And if it's a deferred script then even better :)

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

            ? 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @d.healey
              last edited by

              @d-healey Sweet :) cheers!

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @A Former User
                last edited by

                @iamlamprey you should be able do use a switch this way:

                case (x >= 5 && x < 9):
                

                Can't help pressing F5 in the forum...

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

                45

                Online

                1.7k

                Users

                11.7k

                Topics

                102.1k

                Posts