HISE Logo Forum
    • Categories
    • Register
    • Login

    SNEX nodes - Waveshaping / Saturation / Distortion?

    Scheduled Pinned Locked Moved General Questions
    44 Posts 7 Posters 3.3k 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.
    • ustkU
      ustk @Dan Korneff
      last edited by ustk

      @dustbro

      float gain = 0.0f;
      
      float getSample(float input)
      {
      	return (1.0f + gain) * input / (1.0f + gain * Math.abs(input));
      }
      
      /*
      .
      .
      .
      */
      
      template <int P> void setParameter(double v)
      {
      	gain = (float)v;
      }
      

      This works if you have only one parameter, although if you have more then you'll need an enum to find which one is moved so you set the right variable

      Can't help pressing F5 in the forum...

      Dan KorneffD 1 Reply Last reply Reply Quote 1
      • Dan KorneffD
        Dan Korneff @ustk
        last edited by

        @ustk got it. Thanks!!

        Dan Korneff - Producer / Mixer / Audio Nerd

        Dan KorneffD 1 Reply Last reply Reply Quote 0
        • Dan KorneffD
          Dan Korneff @Dan Korneff
          last edited by

          Is anyone able to compile a SNEX node to dll?

          I'm getting this error from VS2017 and wanna make sure it's not just my rig

          Severity	Code	Description	Project	File	Line	Suppression State
          Error	C2662	'void scriptnode::wrap::no_data<scriptnode::core::snex_shaper<snex_shaper_impl::snex_shaper<1>>>::setParameter<0>(double)': cannot convert 'this' pointer from 'T' to 'scriptnode::wrap::no_data<scriptnode::core::snex_shaper<snex_shaper_impl::snex_shaper<1>>> &'	snex compile_DynamicLibrary	c:\users\dan\documents\github\hise\hi_dsp_library\node_api\nodes\processors.h	421	
          
          

          Dan Korneff - Producer / Mixer / Audio Nerd

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @Dan Korneff
            last edited by

            @dustbro I've compiled a script fx to .dll but it didn't have a SNEX node in it (in case that helps! :face_with_tears_of_joy: )

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            Dan KorneffD 1 Reply Last reply Reply Quote 0
            • Dan KorneffD
              Dan Korneff @DanH
              last edited by

              @danh said in SNEX nodes - Waveshaping / Saturation / Distortion?:

              it didn't have a SNEX node

              Same here. I can compile script FX that do not contain SNEX nodes.

              Dan Korneff - Producer / Mixer / Audio Nerd

              DanHD Matt_SFM 2 Replies Last reply Reply Quote 0
              • DanHD
                DanH @Dan Korneff
                last edited by

                @dustbro out of interest can you export a plugin that has a compiled .dll in it?

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                Dan KorneffD 1 Reply Last reply Reply Quote 0
                • Dan KorneffD
                  Dan Korneff @DanH
                  last edited by

                  @danh I can. It MOSTLY works pretty well ;)

                  Dan Korneff - Producer / Mixer / Audio Nerd

                  1 Reply Last reply Reply Quote 0
                  • Matt_SFM
                    Matt_SF @Dan Korneff
                    last edited by

                    @dustbro said in SNEX nodes - Waveshaping / Saturation / Distortion?:

                    Same here. I can compile script FX that do not contain SNEX nodes.

                    Do you get the "frozen" icon on your compiled nodes ? Here I can wrap the network, compiling it doesn't show any errors (seems to go well) but HISE is not using the compiled node.

                    BTW I didn't try to compile a SNEX node yet because I'm not smart enough ATM to understand how to write SNEX code 😂

                    Develop branch
                    Win10 & VS17 / Ventura & Xcode 14. 3

                    Dan KorneffD 1 Reply Last reply Reply Quote 0
                    • Dan KorneffD
                      Dan Korneff @Matt_SF
                      last edited by

                      @matt_sf said in SNEX nodes - Waveshaping / Saturation / Distortion?:

                      Do you get the "frozen" icon on your compiled nodes ?

                      I do. Just not on SNEX nodes. You have to use commit 9935411bb9bfcd4be583c93143121ccb75c57fc5 or newer for scriptnode compilation to work.

                      Dan Korneff - Producer / Mixer / Audio Nerd

                      Matt_SFM 1 Reply Last reply Reply Quote 0
                      • Matt_SFM
                        Matt_SF @Dan Korneff
                        last edited by

                        @dustbro I'm on the Dec. 22 commit but I'll try this one, thanks !

                        Develop branch
                        Win10 & VS17 / Ventura & Xcode 14. 3

                        1 Reply Last reply Reply Quote 0
                        • Dan KorneffD
                          Dan Korneff
                          last edited by Dan Korneff

                          cannot convert 'this' pointer from 'T'

                          @Christoph-Hart It looks like and issue the parameter data from the snex nodes. Anything I can do to remedy this?

                          Edit:
                          Just did a quick text. It appears to only affect the snex_shaper node. I was able to successfully compile the snex_node.

                          Dan Korneff - Producer / Mixer / Audio Nerd

                          Christoph HartC 1 Reply Last reply Reply Quote 0
                          • Christoph HartC
                            Christoph Hart @Dan Korneff
                            last edited by

                            @dustbro Good catch, should work now.

                            Dan KorneffD 1 Reply Last reply Reply Quote 1
                            • Dan KorneffD
                              Dan Korneff @Christoph Hart
                              last edited by

                              @christoph-hart Thank you!

                              Dan Korneff - Producer / Mixer / Audio Nerd

                              orangeO 1 Reply Last reply Reply Quote 0
                              • orangeO
                                orange @Dan Korneff
                                last edited by orange

                                @dustbro Just to follow up, does the snex_shaper node can be compiled as a dll DSP network?

                                It crashes here.

                                develop Branch / XCode 13.1
                                macOS Monterey / M1 Max

                                Dan KorneffD 2 Replies Last reply Reply Quote 0
                                • Dan KorneffD
                                  Dan Korneff @orange
                                  last edited by

                                  @orange I'm able to compile SNEX_Node and SNEX_Shaper here.

                                  Dan Korneff - Producer / Mixer / Audio Nerd

                                  1 Reply Last reply Reply Quote 0
                                  • Dan KorneffD
                                    Dan Korneff @orange
                                    last edited by

                                    @orange Beware, it's very picky... I have to compile the DSP dll in debug mode to sort out issues. Eventually it works

                                    Dan Korneff - Producer / Mixer / Audio Nerd

                                    orangeO d.healeyD 2 Replies Last reply Reply Quote 0
                                    • orangeO
                                      orange @Dan Korneff
                                      last edited by

                                      @dustbro said in SNEX nodes - Waveshaping / Saturation / Distortion?:

                                      @orange Beware, it's very picky... I have to compile the DSP dll in debug mode to sort out issues. Eventually it works

                                      So it is still buggy then. Ok I will try the debug mode thanks

                                      develop Branch / XCode 13.1
                                      macOS Monterey / M1 Max

                                      Dan KorneffD 1 Reply Last reply Reply Quote 0
                                      • d.healeyD
                                        d.healey @Dan Korneff
                                        last edited by

                                        @dustbro said in SNEX nodes - Waveshaping / Saturation / Distortion?:

                                        @orange Beware, it's very picky... I have to compile the DSP dll in debug mode to sort out issues. Eventually it works

                                        Can use a debug build dll in a release build plugin?

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

                                        1 Reply Last reply Reply Quote 0
                                        • Dan KorneffD
                                          Dan Korneff @orange
                                          last edited by

                                          @orange Just keep your eyes on the Data Table to make sure everything is doing what it's supposed to.
                                          Screenshot from 2022-03-15 13-49-43.png

                                          @d-healey I'm not sure. Haven't tried.

                                          Dan Korneff - Producer / Mixer / Audio Nerd

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

                                          16

                                          Online

                                          1.7k

                                          Users

                                          11.9k

                                          Topics

                                          103.4k

                                          Posts