HISE Logo Forum
    • Categories
    • Register
    • Login

    Any ideas on why .charAt() would suddenly stop working?

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 57 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

      This function has been doing the job contently for some time,
      but now it doesn't...

      Screenshot 2025-08-02 at 5.52.08 PM.png

      Logically, this should be getting the "B" from "B6".
      How would this not work?

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

      1 Reply Last reply Reply Quote 0
      • VirtualVirginV
        VirtualVirgin
        last edited by

        What is going on???

        Screenshot 2025-08-02 at 6.04.41 PM.png

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

        1 Reply Last reply Reply Quote 0
        • VirtualVirginV
          VirtualVirgin
          last edited by

          And now it is printing the result while still saying that the function doesn't exist!!!

          Screenshot 2025-08-02 at 6.07.22 PM.png

          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 Snippet?

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

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

              @d-healey I think this project is a bit too involved to make a snippet. Maybe I can try later. Here is the variable in question a little earlier in the chain, and it is also perplexing:

              Screenshot 2025-08-02 at 6.49.01 PM.png

              The variable "MPN" is being set here from a ternary and the print just before that clearly shows that noteObject.y[0] has a value: "F5"
              And it shows that the direction is "up".

              Then again, it goes on to print a value that it says is "undefined".
              A bit perplexing... seems contradictory.

              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 said in Any ideas on why .charAt() would suddenly stop working?:

                I think this project is a bit too involved to make a snippet.

                Yeah it's probably one of those sneaky errors that appear in larger projects. Not much anyone can do without seeing it in the full context. If you can recreate it in a minimal snippet then that will help, but I expect the error won't show itself.

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

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

                  @d-healey Actually, I think I just found the error:

                  local MPN = direction == "up" ? noteObject.y[0] : noteobject.y[noteObject.y.length -1];

                  vs.

                  local MPN = direction == "up" ? noteObject.y[0] : noteObject.y[noteObject.y.length -1];

                  I forgot the camelCase on noteObject for the false branch :P

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

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

                  27

                  Online

                  1.9k

                  Users

                  12.2k

                  Topics

                  106.5k

                  Posts