HISE Logo Forum
    • Categories
    • Register
    • Login

    There's something I don't understand about compiling a plugin

    Scheduled Pinned Locked Moved General Questions
    20 Posts 3 Posters 375 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.
    • d.healeyD
      d.healey @Orvillain
      last edited by

      @Orvillain said in There's something I don't understand about compiling a plugin:

      This is about 2GB of content all told.

      That shouldn't cause any issues left unconverted.

      @Orvillain said in There's something I don't understand about compiling a plugin:

      I did try the "convert all samples to monolith + samplemap"

      Try the option in the mapping editor. Right click in the mapping window >> Tools >> Reencode All Sample Maps to HLAC Monolith.

      @Orvillain said in There's something I don't understand about compiling a plugin:

      my suspicion is that it is trying to address sample content I don't care about.

      Easy to test. Create a new project that uses the same wavetables you already have, but don't include any sample content. See if it works.

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

      OrvillainO 1 Reply Last reply Reply Quote 0
      • OrvillainO
        Orvillain @d.healey
        last edited by

        @d-healey said in There's something I don't understand about compiling a plugin:

        Easy to test. Create a new project that uses the same wavetables you already have, but don't include any sample content. See if it works.

        Yeah, just had the same thought. Except my approach was to take out all sample maps and samples from the project folder. Double checked that nothing was showing up or "being looked for" inside HISE, so confirmed it wasn't looking for samples.

        Turned on embed audio files, and recompiled the plugin. Insto-crash when I drag it to a track in Ableton.

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

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

          @Orvillain Test with pluginval, see if it gives any useful output

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

          OrvillainO 2 Replies Last reply Reply Quote 0
          • OrvillainO
            Orvillain @d.healey
            last edited by

            @d-healey Will do! Will report back.

            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 @d.healey
              last edited by

              @d-healey It crashes pluginval - I'm building a VST3.

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

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

                @Orvillain debug build?

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

                OrvillainO 2 Replies Last reply Reply Quote 0
                • OrvillainO
                  Orvillain @d.healey
                  last edited by

                  @d-healey Okay, I went back to your suggestion of making a new project and just putting in the wavetable synth and including the wavetable files. That plugin does instantiate.

                  So either clearing the sample maps and samples wasn't enough to make my actual plugin no longer attempt to reference sample maps... or something is going on with my custom DSP networks (hardcoded)

                  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 @d.healey
                    last edited by

                    @d-healey No, wasn't running the debug build of pluginval. I can do.

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

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

                      @Orvillain Okay.... went to my original project.... but a new xml file.... added a waveform generator and my poly ring mod network. Compiled plugin. It loads. I'll do this and go through each of my networks to isolate the one that doesn't run. If they all do... then I'm back to suspecting the samplers as the issue.

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

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

                        @Orvillain Okay. It isn't my networks. They will all run inside a plugin - one instance of them anyway.

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

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

                          @Orvillain Godddd I am so dumb.

                          cfbec723-d45d-476e-acdd-8555171c263d-image.png

                          I even bloomin' new about this, and just totally forgot! Commenting this out, and now the plugin compiles.

                          Basically, I found in the past that calls to the Builder could crash plugins. So I wrap all my Builder logic in a namespace, and I am SUPPOSED to remind myself to comment these lines out when building the plugin.

                          I'm pretty sure this is what was causing the crash on instantiation.

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

                          OrvillainO d.healeyD 2 Replies Last reply Reply Quote 0
                          • OrvillainO
                            Orvillain @Orvillain
                            last edited by

                            @Orvillain Also something to bear in mind, the docs say this:

                            Be aware that the wavetables will not be embedded into the binary, so if you don't want to use the monolith format, you have to untick the Embed AudioFiles option in your project settings. Also the Monolith file takes precedence over the source .hwt files, so as soon as you've created a .hwc file in the sample folder, the list of available wavetables will not reflect the audio file folder content.

                            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
                            • d.healeyD
                              d.healey @Orvillain
                              last edited by d.healey

                              @Orvillain said in There's something I don't understand about compiling a plugin:

                              Basically, I found in the past that calls to the Builder could crash plugins. So I wrap all my Builder logic in a namespace, and I am SUPPOSED to remind myself to comment these lines out when building the plugin.

                              According to the docs it should be disabled automatically anyway, even if you forget

                              This is connected to the former point: never ever use calls to the Builder in a compiled plugin (in fact, they are deactivated in the compiled plugin so don't expect them to work).

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

                              OrvillainO 1 Reply Last reply Reply Quote 0
                              • OrvillainO
                                Orvillain @d.healey
                                last edited by

                                @d-healey Probably a bug of some kind then. All I can say is, commenting out TreeBuilder.buildModuleLayout() cured my crash. Chased my own tail for a bit over that is all!

                                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

                                20

                                Online

                                1.8k

                                Users

                                12.1k

                                Topics

                                105.7k

                                Posts