HISE Logo Forum
    • Categories
    • Register
    • Login

    no member named handleModulation

    Scheduled Pinned Locked Moved General Questions
    2 Posts 1 Posters 167 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.
    • ?
      A Former User
      last edited by A Former User

      While trying to compile the snex node as dll, I see the below error in the Terminal.

      no member named 'handleModulation' in 'snex_node_impl::snex_cls<1>'
      

      Also modulation target appears on the wrapped node, I didn't do that.

      Screen Shot 2022-08-17 at 20.02.01.png

      I am using the below template.

      template <int NV> struct WS_snex_cls
      {
      SNEX_NODE(snex_cls);
      
      float ParamOne = 0.01f;
      float ParamTwo = 0.01f;
      float ParamThree = 0.0f;
      
      
      float getSamples(float input)
      {
      	// My code is here		
      			
      	
      	return input + cleansig;		
      }
      
      // Initialise the processing specs here
      void prepare(PrepareSpecs ps)
      {
      }
      
      // Reset the processing pipeline here
      void reset()
      {
      	
      }
      
      // Process the signal here
      template <typename ProcessDataType> void process(ProcessDataType& data)
      {
      	for(auto ch: data)
      	{
      		for(auto& s: data.toChannelData(ch))
      		{
      			s = getSamples(s);
      		}
      	}
      }
      
      // Process the signal as frame here
      template <int C> void processFrame(span<float, C>& data)
      {
      	for(auto& s: data)
      	{
      		s = getSamples(s);
      	}	
      }
      
      // Process the MIDI events here
      void handleHiseEvent(HiseEvent& e)
      {
      	
      }
      
      // Use this function to setup the external data
      void setExternalData(const ExternalData& d, int index)
      {
      	
      }
      
      // Set the parameters here
      template <int P> void setParameter(double v)
      {
      	if (P == 0) ParamOne = (float)v;
      	if (P == 1) ParamTwo = (float)v;	
              if (P == 2) ParamThree = (float)v;	
      }
      };
      
      
      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @A Former User
        last edited by

        @Steve-Mohican Any thoughts?

        It seems like this bug happens when the SNEX node is wrapped. If that node is wrapped with other nodes, it doesn't happen.

        I think this is a bug.

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

        13

        Online

        1.8k

        Users

        11.9k

        Topics

        103.9k

        Posts