HISE Logo Forum
    • Categories
    • Register
    • Login

    Add/Remove "Sound Generators" at runtime using scripting

    Scheduled Pinned Locked Moved General Questions
    7 Posts 4 Posters 787 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.
    • BastiaanB
      Bastiaan
      last edited by Bastiaan

      Hi.

      Is it possible to create/remove instances of sound generators (for example a Waveform Generator) at runtime from the Javascript Engine?

      Thanks!

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

        @bastiaan You can't add/remove them but you can bypass them.

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

        1 Reply Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart
          last edited by

          To be honest, all questions from you the last days are hinting that you are trying to do things outside of the scope of the scripting engine. It is designed to add custom MIDI processing and build UI interfaces. But you can't expect it to be the foundation of a complex and fully modulator synthesiser.

          However I was thinking about this problem for quite some time and I want to expand the accessibility of HISE from the C++ side, so that you can build the interface entirely in C++ / JUCE and also use C++ to build up the module architecture, which would give you the full flexibility to do this dynamically.

          The basics are there, but I need a "real world" example project to find the API, so if you're interested and willing to be the guinea pig for this approach, I am happy to work with you together and support you along the way by improving the API and / or make helper classes for common tasks. The requirement for this would be that your C++ skills (especially the C++11 stuff like lambdas as well as basic knowledge of the JUCE library) are sufficient though.

          A starting point can be seen here:

          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)

          It's a demo project that shows how to use a custom interface. It's not what you are after, but shows the general idea of the workflow. You'll still be using HISE as project management tool and it takes care of the sample map handling, pooled resources, etc.

          The only other viable option would be to heavily simplify the specifications of your project completely removing everything that is "dynamic" in some kind of way, but otherwise I guarantee you will be hitting this wall again and again.

          JayJ 2 Replies Last reply Reply Quote 2
          • BastiaanB
            Bastiaan
            last edited by

            @christoph-hart: Your assumption is right and thank you for the offer. I think we can work something out here (which works constructive in both directions), i'll contact you as soon as i get back to the office.

            1 Reply Last reply Reply Quote 1
            • JayJ
              Jay @Christoph Hart
              last edited by

              @christoph-hart this is getting better and better

              Joansi Villalona

              1 Reply Last reply Reply Quote 0
              • JayJ
                Jay @Christoph Hart
                last edited by

                @christoph-hart so this mean you are taking out the simplicity of using hise or just adding this to it, because I really like the way it is know to work with, but you're the man.

                Joansi Villalona

                1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart
                  last edited by

                  Nope, HISE as you know it will remain the same, it's just that for people who know C++, it's a real burden getting into the workflow of HISE (learning the GUI, figuring out the scripting language) and this will help them get things done faster.

                  I have found myself in many situations where I would prefer having C++ at my fingertips (eg. writing the modular FX chains for HEXERACT was a nightmare which is a trivial task for C++).

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

                  51

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts