HISE Logo Forum
    • Categories
    • Register
    • Login

    Can you add synth modules via script?

    Scheduled Pinned Locked Moved General Questions
    7 Posts 3 Posters 599 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.
    • LightandSoundL
      LightandSound
      last edited by LightandSound

      I know you can add modulators and effects, but what about adding a new sampler to a container that can then be populated with sample maps etc?

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

        @LightandSound No

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

        LightandSoundL 1 Reply Last reply Reply Quote 0
        • LightandSoundL
          LightandSound @d.healey
          last edited by

          @d-healey That's unfortunately what I'd come to the conclusion of based on the documentation, was hoping I'd missed something. Oh well!

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

            @LightandSound If you're C++ literate you can do it.

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

            LightandSoundL 1 Reply Last reply Reply Quote 0
            • LightandSoundL
              LightandSound @d.healey
              last edited by

              @d-healey Yeah I've used JUCE a bunch so I've already been dabbling in adding stuff where needed, but having the work done for you is always nice :)

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

                Adding Sound Generators is a more heavyweight task (also it will trigger a recompilation of every script), which is why it's not available as runtime function.

                But David is right, in C++ it's as easy as

                
                raw::Builder b(parentModule->getMainController());
                
                auto s = b.create<ModulatorSampler>(parentModule);
                s->setAttribute(ModulatorSampler::Purged, true); // or whatever...
                
                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @Christoph Hart
                  last edited by

                  @Christoph-Hart Oh you make C++ HISE seem so easy and tempting. I know that we've talked about a reasonable limit for the number of samplers in a project as being < 16, but what about in a multi-timbral plugin where each individual instrument might be using 4 samplers?

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

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

                  53

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts