HISE Logo Forum
    • Categories
    • Register
    • Login

    Methods

    Scheduled Pinned Locked Moved General Questions
    4 Posts 3 Posters 329 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.
    • FatMitchellF
      FatMitchell
      last edited by

      A friend of mine (who actually codes) is looking to get into HISE.

      He has a question that I can’t answer.

      Question:
      “ Can you use JavaScript array methods (.map, .forEach etc) in HISE”

      “ also string methods(.toUpper etc) ”

      Not sure what that means but I know someone will.

      Thanks!

      d.healeyD LindonL 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @FatMitchell
        last edited by

        @FatMitchell

        Method is another word for function.

        Start by telling him that HISEScript is not JavaScript, it's its own language.

        HISEScript does have a map function for arrays.

        It does have a toUpperCase function (check out the strings section of the API).

        It doesn't have the JavaScript forEach function, but you can achieve the same results using a for in loop.

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

        FatMitchellF 1 Reply Last reply Reply Quote 1
        • LindonL
          Lindon @FatMitchell
          last edited by

          @FatMitchell point him at the array documentation:

          Link Preview Image
          HISE | Docs

          favicon

          (docs.hise.audio)

          HISE Development for hire.
          www.channelrobot.com

          1 Reply Last reply Reply Quote 2
          • FatMitchellF
            FatMitchell @d.healey
            last edited by

            Thank you both!!! Exactly what I needed.

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

            15

            Online

            1.7k

            Users

            11.8k

            Topics

            102.5k

            Posts