HISE Logo Forum
    • Categories
    • Register
    • Login

    Manage user files

    Scheduled Pinned Locked Moved Scripting
    6 Posts 3 Posters 637 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.
    • B
      breezykermo
      last edited by breezykermo

      Hi there- I'm trying to create a file browser in a HISE app, where the user can upload a file that exists on their own file system, and whereby I can then parse the file contents, and (more specifically) use Engine.dumpAsJSON to store it in the Presets folder.

      Furthermore, I would also like to send this JSON to a remote server. Does HISEScript have any async library functionality for HTTP requests? If not, would someone be able to advise regarding how I would implement this custom file browser/uploader?

      I'm comfortable with C++, but I've only just started using HISE, so am unsure where to start with writing this as a custom module. (And I also want to confirm that this is not possible in pure HISEScript.)

      Thanks!

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

        It is not possible with HISE script. That's as much as I know.

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

        B 1 Reply Last reply Reply Quote 0
        • B
          breezykermo @d.healey
          last edited by

          @d-healey I feared as much, thanks for confirming.

          If anyone can advise on how I'd go about adding C++ modules for:

          1. a user file browser
          2. basic HTTP networking to send and retrieve JSON presets.

          I'd be very much appreciative!

          1 Reply Last reply Reply Quote 2
          • B
            breezykermo
            last edited by

            A couple of thoughts/questions on this:

            • @Christoph-Hart how did you manage user login within HISE for Auddict's PercX - https://www.auddict.com/percx? Is it relatively easy to add a component in JUCE C++, and manage networking from there?
            • Would it make sense to try to add networking as a more general capability in HISE's Javascript engine? I'm imagining some simple additional functions such as a new Networking module, with standard HTTP functionality e.g. Networking.get, Networking.post... would this work, or is there something about HISE's architecture/design that advises against?
            1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart
              last edited by

              Is it relatively easy to add a component in JUCE C++, and manage networking from there?

              Yes, that's the entire idea of the C++ framework side of HISE... You can either just create a C++ UI element and add that as ExternalFloatingTile or create everything in C++ including the module tree & preset handling.

              Link Preview Image
              HISE | Docs

              favicon

              (docs.hise.audio)

              Link Preview Image
              hise_tutorial/ExternalFloatingTileTest at master · christophhart/hise_tutorial

              The Tutorial project for HISE. Contribute to christophhart/hise_tutorial development by creating an account on GitHub.

              favicon

              GitHub (github.com)

              Would it make sense to try to add networking as a more general capability in HISE's Javascript engine?

              Nah, that will lead to so many feature requests that I'll get a panic attack from just thinking about it :) If you can do C++, just use JUCE's networking capabilities, that's what I did with PercX.

              B 1 Reply Last reply Reply Quote 2
              • B
                breezykermo @Christoph Hart
                last edited by

                @Christoph-Hart Ah right, sorry- should have been able to find that. Thanks!

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

                42

                Online

                1.7k

                Users

                11.7k

                Topics

                101.9k

                Posts