Forum
    • Categories
    • Register
    • Login

    Recent commit to Processor.cpp breaking old project

    Scheduled Pinned Locked Moved Bug Reports
    23 Posts 3 Posters 875 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.
    • David HealeyD
      David Healey @Christoph Hart
      last edited by

      @Christoph-Hart said in Recent commit to Processor.cpp breaking old project:

      I totally overlooked that you added UI controls to the script FX like only a madman would do... Why?

      Haha, I'm using the scripting side of script node :p I made this years ago, I didn't need any of that fancy node graph stuff.

      @Christoph-Hart said in Recent commit to Processor.cpp breaking old project:

      Also the script FX doesn't contain a setForwardParametersToNetwork(false) (or whatever it's called) call so they are dead in the water anyways?

      I don't know what that is, but the effect was working fine up until the latest commits. I'm not compiling it to a DLL, if that makes a difference.

      @Christoph-Hart said in Recent commit to Processor.cpp breaking old project:

      What's your use case?

      I wanted a simple gain that can handle multiple channels.

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - HISE tutorials

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

        Did you use the actual processBlock method where you shuffled the buffers into a Libraries.load() module?

        Also the script is completely empty, all you're doing here is declaring some parameters in the XML.

        I wanted a simple gain that can handle multiple channels.

        If you were stuck with the "script" part in scriptnode, use that instead:

        HiseSnippet 1249.3ocuW8zSiaDEelDb1krzpcUaumaksBgBfS.odfPHv1nVfHbJp8Dch8jjQwdFK6w.oU8du0y6s9QnW6M9Nz9AoeCnuwyjDmD1.Dw1fDxu2ad9868+wshDtz3XQDBWr8vPJBulkyPtr+g8ILNpYCD9SsNgDKoQkzrpOLjDGS8PXb92oXfWcET5u+c+5DeB2kNgEBcgf4R+NV.SNgaXsuk46eLwi1lEj4z10Z5J3GJ7EI.dxaUFERbGP5QOknNVNKz2Ph6ivekkmcUJw11yktcWp8dU5r6N6rmaU6xdkqtMsR0tjx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Gv0JXkdevGkeYW698K6ZOfq7bjfVy5bZL0X5Oxoooq9vYbt0xTq776mvTmoaPN5Fvpbhelc7vdtFrXBrQv6C3lS4UOXnJKb+m6t6KuM81TbZ51qXykqLjlYYM8F2SONzn4kFWP0EhAAjzwzK2cz9edQFZQKxvKZQFZQKxvysHKf3FItzUee.Ur8kobfAb7zAkqBe1GPWZKzUyVDE.ebykttS+plSwsWVE2YYUzdYUrxxpX0kUwcWVE26gUT8smlg6p9DX1cqiRK7w3i35lUXcH5+.8tIYVB
        
        David HealeyD 2 Replies Last reply Reply Quote 0
        • David HealeyD
          David Healey @Christoph Hart
          last edited by

          @Christoph-Hart said in Recent commit to Processor.cpp breaking old project:

          Also the script is completely empty, all you're doing here is declaring some parameters in the XML.

          Not sure what you mean

          a3c8b145-6d2a-498c-8e9e-7cfb616e3c57-image.png

          c6710f15-5439-4161-8381-4a189005c274-image.png

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - HISE tutorials

          1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @Christoph Hart
            last edited by

            @Christoph-Hart I saw some scriptnode related commits, do any of them solve this issue?

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey
              last edited by David Healey

              I was able to recreate my 16 channel simple gain in scriptnode, not as elegant as my nice simple script though.

              HiseSnippet 2252.3oc6ct0biaaEGGz1P1V16ljI4g9n5aNc15g2Dk3zGZVeq0Sq7pYkqadaGXRnULlhPCI0tqZm9d9XkOR8aPB.uHRQKIKhrwBSKzCdD3AGgCO3+A3mksD5GRbvQQjPfRyamMACTNFNXVP7nyGg7B.WeAP4kvdnnXbXqzKc1rInnHrKPQY2+B6BJGtGH4w+8OeFxGE3fKtD.bGwyA+28F6EWb09e2eyy2+JjK9Vuwk5s42csCI3bhOYJMd1EpBlfbd.8d7MHV21AB9qnnQ.k+.D4XnopZ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FTgvEdQn68oyLKlwny80plJ4.HI.mbdOj7ExdQyLViqcm+cj97LR50RRGfk5P9m6z55gYs8ncs8vp1dnWCOl+m8n1tzY4tTUFtO7e54RWuP30gKDJOknbyzg4bC0N21t9tXTeWzpsK5102k5e6qW+aecimTMl8mkH+T75I2V4yibJg.pqpcacKCqNZc6XZaugpmR6dtv8V5dcKOaT9qBMNbRmGm3J7T4vIMadbpKON0YoNwy12mQHOLFkbzvv2wn0y7QMDXcG0PJq6nFBrtiZHk0cTCAV2QMjx5Npg.q6nFRYsG0Pf0eTCor9iZHv5OpgTV+QMDX8G0PJO9nFZLxIj7Nmzy2Jl7qUxUnqMEjfZeHrGqcKMvGRkdEGEYi8b8dmiyhuTOxQcdczfWGM40w175nEuN1gWG6xqi100wl4B.Ut8TiaO041SCt8zjaOaysmVb6YGt8rK2dxsFRmaMjN2ZHct0P5bqgz4VCoysFRmaMjN2ZHct0P5bqgL3VCYvsFxXCzPryt1r2mHF7G.zq+kITYJJWFjxxqnrK3W.XAYbxE
              

              Edit: I just found a real downside to using scriptnode for this purpose. If I have a project with less than 16 channels then it won't process any of them.

              With my scripted version the number of channels is passed in the process block so I can work with it dynamically.

              Is my only solution with the scriptnode version to create a separate effect for each channel configuration?

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              ustkU 3 Replies Last reply Reply Quote 0
              • ustkU
                ustk @David Healey
                last edited by

                @David-Healey A compilable third party node should be able to do it when loaded into an hardcoded FX. This is theory though, I've never done this...
                this way you could do it in C++

                Hise made me an F5 dude, any other app just suffers...

                1 Reply Last reply Reply Quote 1
                • ustkU
                  ustk @David Healey
                  last edited by

                  @David-Healey Just tried by curiosity but it's still half dynamic, because you still have to hard code the number of channel (getFixChannelAmount) and recompile the DLL...

                  Weird there's no way to get the hardcoded FX to actually fix the number of channel in the function parameter, @Christoph-Hart?

                  // ==================================| Third Party Node Template |==================================
                  
                  #pragma once
                  #include <JuceHeader.h>
                  
                  namespace project
                  {
                  using namespace juce;
                  using namespace hise;
                  using namespace scriptnode;
                  
                  // ==========================| The node class with all required callbacks |==========================
                  
                  template <int NV> struct MultiChannelThirdPartyGain_custom_node: public data::base
                  {
                  	// Metadata Definitions ------------------------------------------------------------------------
                  	
                  	SNEX_NODE(MultiChannelThirdPartyGain_custom_node);
                  	
                  	struct MetadataClass
                  	{
                  		SN_NODE_ID("MultiChannelThirdPartyGain_custom_node");
                  	};
                  	
                  	// set to true if you want this node to have a modulation dragger
                  	static constexpr bool isModNode() { return false; };
                  	static constexpr bool isPolyphonic() { return NV > 1; };
                  	// set to true if your node produces a tail
                  	static constexpr bool hasTail() { return false; };
                  	// set to true if your doesn't generate sound from silence and can be suspended when the input signal is silent
                  	static constexpr bool isSuspendedOnSilence() { return false; };
                  	// Undefine this method if you want a dynamic channel count
                  	static constexpr int getFixChannelAmount() { return 6; };
                  	
                  	// Define the amount and types of external data slots you want to use
                  	static constexpr int NumTables = 0;
                  	static constexpr int NumSliderPacks = 0;
                  	static constexpr int NumAudioFiles = 0;
                  	static constexpr int NumFilters = 0;
                  	static constexpr int NumDisplayBuffers = 0;
                  	
                  	// Scriptnode Callbacks ------------------------------------------------------------------------
                  	
                  	void prepare(PrepareSpecs specs)
                  	{
                  		
                  	}
                  	
                  	void reset()
                  	{
                  		
                  	}
                  	
                  	void handleHiseEvent(HiseEvent& e)
                  	{
                  		
                  	}
                  	
                  	template <typename T> void process(T& data)
                  	{
                  		auto gainFactor = Decibels::decibelsToGain(gain);
                  
                  		for (auto ch : data)
                  		{
                  			auto block = data.toChannelData(ch);
                  			for (auto& s : block)
                  				s *= gainFactor;
                  		}
                  	}
                  
                  	template <typename T> void processFrame(T& data)
                  	{
                  		auto gainFactor = Decibels::decibelsToGain(gain);
                  
                  		for (auto& s : data)
                  			s *= gainFactor;
                  	}
                  	
                  	int handleModulation(double& value)
                  	{
                  		
                  		return 0;
                  		
                  	}
                  	
                  	void setExternalData(const ExternalData& data, int index)
                  	{
                  		
                  	}
                  	// Parameter Functions -------------------------------------------------------------------------
                  	
                  	template <int P> void setParameter(double v)
                  	{
                  		if (P == 0)
                  		{
                  			gain = (float)v;
                  		}
                  		
                  	}
                  	
                  	void createParameters(ParameterDataList& data)
                  	{
                  		{
                  			parameter::data p("Gain", { -100.0, 0.0, 0.1 });
                  			registerCallback<0>(p);
                  			p.setDefaultValue(0.0);
                  			p.setSkewForCentre(-12.0);
                  			data.add(std::move(p));
                  		}
                  	}
                  
                  	float gain = 0.0f;
                  };
                  }
                  
                  
                  
                  

                  Hise made me an F5 dude, any other app just suffers...

                  1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @David Healey
                    last edited by

                    @David-Healey Oh... Didn't see you opened a thread precisely for that matter...
                    https://forum.hise.audio/topic/14770/compiled-network-fixed-channel-count

                    Hise made me an F5 dude, any other app just suffers...

                    David HealeyD 1 Reply Last reply Reply Quote 1
                    • David HealeyD
                      David Healey @ustk
                      last edited by

                      @ustk Yeah I'd rather avoid the c++ route (I'd rather avoid scriptnode too) but my preferred method is broken in the latest version of HISE and the fix requires more than Claude so I'm looking for the simplest alternative. It has to work with expansions so it's a bit of an edge case too.

                      Free HISE Bootcamp Full Course for beginners.
                      YouTube Channel - Public HISE tutorials
                      My Patreon - HISE tutorials

                      1 Reply Last reply Reply Quote 1
                      • David HealeyD
                        David Healey
                        last edited by

                        @Christoph-Hart How about this to fix the original issue? https://github.com/christophhart/HISE/pull/959

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

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

                        21

                        Online

                        2.3k

                        Users

                        13.7k

                        Topics

                        119.2k

                        Posts