HISE Logo Forum
    • Categories
    • Register
    • Login

    How do I create a matrix modulator for a given slotFX/HardcodedMasterFX instance?

    Scheduled Pinned Locked Moved General Questions
    3 Posts 1 Posters 38 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.
    • OrvillainO
      Orvillain
      last edited by

      ea47e7fb-d68c-4e79-9536-26ae31626881-image.png

      I've got this far. What I want to do is create a matrix modulator for the first 8 hardcoded modulation slots.

      Musician - Instrument Designer - Sonic Architect - Creative Product Owner
      Crafting sound at every level. From strings to signal paths, samples to systems.

      1 Reply Last reply Reply Quote 1
      • OrvillainO
        Orvillain
        last edited by

        It doesn't seem like slotfx or hardcoded support the .addModulator() method.

        Musician - Instrument Designer - Sonic Architect - Creative Product Owner
        Crafting sound at every level. From strings to signal paths, samples to systems.

        1 Reply Last reply Reply Quote 0
        • OrvillainO
          Orvillain
          last edited by

          Figured it out. It does support addModulator. This is how you do it:

          d3660d2c-72ae-45d4-8e6d-f5110a221950-image.png

          Content.makeFrontInterface(600, 600);
          
          const var builder = Synth.createBuilder();
          builder.clear();
          
          const var generator = builder.create(builder.Effects.SlotFX,
                                               "generator",
                                               0,
                                               builder.ChainIndexes.FX);
          
          
          const var slotfx = Synth.getSlotFX("generator");
          slotfx.setEffect("Hardcoded Master FX");
          
          const hardcoded = Synth.getEffect("generator_Hardcoded Master FX");
          
          const numP = 4;
          
          for (i = 0; i < numP; i++)
          {
              hardcoded.addModulator(i, "MatrixModulator", "P" + (i+1) + " Modulation");
          }
          
          builder.flush();
          

          Musician - Instrument Designer - Sonic Architect - Creative Product Owner
          Crafting sound at every level. From strings to signal paths, samples to systems.

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

          41

          Online

          2.1k

          Users

          12.9k

          Topics

          112.0k

          Posts