HISE Logo Forum
    • Categories
    • Register
    • Login

    only when plugin is visible?

    Scheduled Pinned Locked Moved General Questions
    49 Posts 5 Posters 1.1k 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 @Morphoice
      last edited by

      @Morphoice You should add a simple gain to each of your samplers and connect the peak meters and your volume sliders to those rather than connecting to the sampler's volume knob. The sampler's knob doesn't have any smoothing applied so you can get glitchy sounds when automating it, but with the simple gain this doesn't happen.

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

      MorphoiceM 2 Replies Last reply Reply Quote 0
      • MorphoiceM
        Morphoice @d.healey
        last edited by

        @d-healey Aye, I'll try that. Sounds like a better solution and will probably fix the 0-1 linear value to dB which I'm having

        https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

        1 Reply Last reply Reply Quote 0
        • MorphoiceM
          Morphoice @d.healey
          last edited by

          @d-healey the simple gains got everything sorted!

          I did this to manage the eprom selection with the button colums

          function onControl(control, value)
          {
             if (snareProms.contains(control)) {
          	   var index = snareProms.indexOf(control);
          	   for(e in snareProms)
          	  	 e.setValue( e == control);
          	   Console.print(snareMaps[index]);
             }
          }
          

          there's the same problem with the controls all being triggered onInit unless I make them not a preset parameter. If I replace the console output with loading the samplemap the plugin get a bunch of commands to load maps at once, would that bother the sampler or be a performance problem? as I understand it the map is just parameters and the sampler lazy loads the samples anyways after it has read the map... however, setting an initial selection doesnt work that way again.

          is there a workaround to have my selections saved in a preset that still works?

          https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

            @Morphoice control callbacks should be inline functions and there you can use local instead of var.

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

            MorphoiceM 3 Replies Last reply Reply Quote 0
            • MorphoiceM
              Morphoice @d.healey
              last edited by

              @d-healey stops working when I make it an inline function

              this is the general onControl function if you go to Callbacks>onControl
              not something I put in onInit script

              https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

                @d-healey I'm just reading this https://docs.hise.audio/scripting/scripting-in-hise/javascript.html#variables so I guess I should declare my loop and index variables in onInit and get it out of the function

                https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

                1 Reply Last reply Reply Quote 0
                • MorphoiceM
                  Morphoice @d.healey
                  last edited by

                  @d-healey or in that case maybe avoid them completely by doing

                  	if (bassProms.contains(control)) {
                  	   for(e in bassProms)
                  	  	 e.setValue( e == control);
                  	   Bass.asSampler().loadSampleMap(bassMaps[bassProms.indexOf(control)]);
                  	}   
                  

                  that works too

                  https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

                    @Morphoice said in only when plugin is visible?:

                    you go to Callbacks>onControl

                    Don't use that, it's long deprecated. Assign individual callbacks to each control.

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

                    MorphoiceM 1 Reply Last reply Reply Quote 0
                    • MorphoiceM
                      Morphoice @d.healey
                      last edited by

                      @d-healey ah damn. that would be a lot of controls given the number of buttons to pick the soudns

                      https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

                        @Morphoice you can apply the same callback to multiple controls in a loop

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

                        MorphoiceM 1 Reply Last reply Reply Quote 1
                        • MorphoiceM
                          Morphoice @d.healey
                          last edited by Morphoice

                          @d-healey funny enough I've been doing that from the start, then discovered the onControl function and though "great, that new feature saves me a lot of code" and moved it all there

                          https://instagram.com/morphoice - 80s inspired Synthwave Music, Arcade & Gameboy homebrew!

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

                          17

                          Online

                          1.7k

                          Users

                          11.9k

                          Topics

                          103.4k

                          Posts