HISE Logo Forum
    • Categories
    • Register
    • Login

    Question about data types specified in the API documentation

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 48 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by

      I'm noticing that there are differences in the capitalization for some data types in the API docs,
      for example:

      Content.addAudioWaveform(String audioWaveformName, int x, int y)
      

      There is "String" and there is "int".
      Is there something I can learn about this distinction?
      I am assuming there is a reason for the different treatment given the consistency of usage:
      "Array", "Object", "String"
      vs
      "int", "var", "bool", "double"

      You can listen to my orchestral mockups here:
      https://www.virtualvirgin.net/

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

        @VirtualVirgin

        If the mixing of uppercase and CamelCase triggers your OCD, rest assured that this is not a case of me being sloppy but trying to use the existing type IDs from Java/Typescript (eg number ) but for the complex types like Array and Buffer I have to stick to the existing HiseScript identifiers.

        https://docs.hise.audio/scripting/scripting-in-hise/additions-in-hise.html#type-safety

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        VirtualVirginV 1 Reply Last reply Reply Quote 0
        • VirtualVirginV
          VirtualVirgin @d.healey
          last edited by

          @d-healey Thank you!
          Though I am still slightly confused on the use of "string" instead of "String" in the list of accepted types (given that the API reference uses "String"):
          string elementary a string variable

          You can listen to my orchestral mockups here:
          https://www.virtualvirgin.net/

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

            @VirtualVirgin I think both work, not sure

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

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

            31

            Online

            2.0k

            Users

            12.8k

            Topics

            110.6k

            Posts