HISE Logo Forum
    • Categories
    • Register
    • Login

    Snex_node Needs to be wrapped into a compileable DSP Network

    Scheduled Pinned Locked Moved General Questions
    92 Posts 10 Posters 7.7k 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.
    • NatanN
      Natan @d.healey
      last edited by

      @d-healey Same Here

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

        Actually I‘m not aware that it crashes on Windows so I just thought it‘s a Linux problem. Can you try to debug it in VS2017, it should point you to the crash location.

        d.healeyD 2 Replies Last reply Reply Quote 1
        • d.healeyD
          d.healey @Christoph Hart
          last edited by

          @Christoph-Hart I'll take a look

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

          1 Reply Last reply Reply Quote 1
          • d.healeyD
            d.healey @Christoph Hart
            last edited by d.healey

            @Christoph-Hart No crash on Windows 10. I built with VS 2019. Because of this in order to compile the network I had to open the solution directly in VS and retartget it for 2019.

            On GNU/Linux the crash happens instantly before the popup asking to select debug/release - but only in the release build.

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

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

              Thanks @d-healey and @Christoph-Hart for clearing this up ! I'll check it on my side and keep you posted.

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

                @Christoph-Hart First time I'm running a debug session but this is what the console outputs when I click on "compile DSP networks" :

                JUCE Assertion failure in maincontroller.cpp:755
                

                Then

                Unhandled Exception at 0x00007FF77DF3F428 in snex_workbench.exe : 0xC00000FD: Stack overflow (paramètres : 0x0000000000000001, 0x0000003E40E63000).
                

                Then

                Unhandled Exception at 0x00007FF77DF3F428 in snex_workbench.exe : 0xC0000005:access violation writing location 0x0000003E40E60000.
                

                Not sure if I'm helping or if I'm diving into something too complex for me that I don't understand but I gave it a try... 🤔
                I'm using VS2017 (also built the WB with VS2019 but ended with the same crash)

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

                  @Matt_SF

                  Using latest commit, Win10.

                  Develop branch?

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

                  Matt_SFM 1 Reply Last reply Reply Quote 0
                  • Matt_SFM
                    Matt_SF @d.healey
                    last edited by

                    @d-healey said in Snex_node Needs to be wrapped into a compileable DSP Network:

                    Develop branch?

                    Yes sir

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

                      @Christoph-Hart custom math test-node successfully exported and used inside HISE. Great job ! 👏 👏 👏

                      NatanN 1 Reply Last reply Reply Quote 1
                      • NatanN
                        Natan @Matt_SF
                        last edited by

                        @Matt_SF Yeah, Today's Rolling Updates Was Fire :)

                        Right Now At >>> https://github.com/christophhart/HISE/commits/develop

                        alt text

                        1 Reply Last reply Reply Quote 1
                        • BrianB
                          Brian
                          last edited by Brian

                          I spent a few hours trying to go through the procedure but keep getting a crash on the ‘save and reload’ step and was not able to go further, using a freshly built version from the latest Develop branch on Mac. Is anybody using a Mac and be able to get this going? If so if you could point to the right version it would be super appreciated :)

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

                            @Brian I didn't build HISE on mac for a little while but I have the version from Sept. 02. Save and reload + wrapping are working fine.
                            Compiling DSP network is not though.

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

                              @Brian save and reload is just a shortcut. If you reopen the workbench and load your network it should be the same

                              @Matt_SF What‘s the error message?

                              Matt_SFM 1 Reply Last reply Reply Quote 0
                              • Matt_SFM
                                Matt_SF @Christoph Hart
                                last edited by

                                @Christoph-Hart It says "too many errors".
                                Here's the output of the compiler :

                                Last login: Sat Sep 25 20:54:33 on ttys000
                                soundfingers@MacBook-Air-de-Mathieu ~ % /Users/WORK/Hise\ Projects\ Mac/Test\ Project/DspNetworks/Binaries/batchCompileOSX ; exit;
                                Re-saving file: /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/AutogeneratedProject.jucer
                                Finished saving: Visual Studio 2017
                                Finished saving: Xcode (macOS)
                                Finished saving: Linux Makefile
                                Compiling Test Project ...
                                ▸ Compiling include_juce_events.mm
                                ▸ Compiling include_juce_core.mm
                                ▸ Compiling include_juce_data_structures.mm
                                ▸ Compiling include_juce_gui_basics.mm
                                ▸ Compiling include_juce_audio_formats.mm
                                ▸ Compiling include_juce_graphics.mm
                                
                                ⚠️  /Applications/HISE-develop/JUCE/modules/juce_graphics/fonts/juce_GlyphArrangement.cpp:188:30: unused variable 'x2' [-Wunused-variable]
                                
                                                        auto x2 = xOffset;
                                                             ^
                                
                                
                                ▸ Compiling include_juce_dsp.mm
                                ▸ Compiling include_juce_audio_basics.mm
                                ▸ Compiling include_hi_tools.mm
                                ▸ Compiling include_hi_dsp_library_02.cpp
                                ▸ Compiling include_hi_dsp_library_01.cpp
                                
                                ⚠️  /Applications/HISE-develop/hi_dsp_library/snex_basics/snex_TypeHelpers.cpp:141:9: unused variable 'byteOffset' [-Wunused-variable]
                                
                                        size_t byteOffset = (uint8*)dataPointer - (uint8*)dataStart;
                                               ^
                                
                                
                                ▸ Compiling Main.cpp
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:22:56: use of undeclared identifier 'project'
                                
                                using dspTest_1_t_ = container::chain<parameter::plain<project::test_1, 0>, 
                                                                                       ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:22:75: expected a type
                                
                                using dspTest_1_t_ = container::chain<parameter::plain<project::test_1, 0>, 
                                                                                                          ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:27:41: expected class name
                                
                                struct instance: public dspTest_1_impl::dspTest_1_t_
                                                                        ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:52:24: no member named 'get' in 'dspTest_1_impl::instance'
                                
                                                auto& test_1 = this->getT(0); // project::test_1
                                                                     ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:52:24: expected unqualified-id
                                
                                /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:6:31: note: expanded from macro 'getT'
                                                           ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:52:24: expected expression
                                
                                /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:6:37: note: expanded from macro 'getT'
                                                              ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:56:9: no member named 'getParameter' in 'dspTest_1_impl::instance'
                                
                                                this->getParameterT(0).connectT(0, test_1); // Saturation -> test_1::Value
                                                                    ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:56:9: expected unqualified-id
                                
                                /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:8:49: note: expanded from macro 'getParameterT'
                                                                    ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:56:9: expected expression
                                
                                /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:8:55: note: expanded from macro 'getParameterT'
                                                                                ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:56:26: 'template' keyword not permitted here
                                
                                                this->getParameterT(0).connectT(0, test_1); // Saturation -> test_1::Value
                                                                                      ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:62:9: no member named 'setParameter' in 'dspTest_1_impl::instance'
                                
                                                this->setParameterT(0, 1.);
                                                              ^
                                
                                
                                
                                ❌  /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:62:9: expected unqualified-id
                                
                                /Users/WORK/Hise Projects Mac/Test Project/DspNetworks/Binaries/Source/dspTest_1.h:9:56: note: expanded from macro 'setParameterT'
                                                                           ^
                                
                                
                                
                                ❌  /Applications/HISE-develop/hi_dsp_library/node_api/nodes/processors.h:1203:7: no member named 'prepare' in 'dspTest_1_impl::instance'
                                
                                                obj.prepare(ps);
                                                                                       ^
                                
                                
                                ** BUILD FAILED **
                                
                                
                                The following build commands failed:
                                	CompileC /Users/WORK/Hise\ Projects\ Mac/Test\ Project/DspNetworks/Binaries/Builds/MacOSX/build/Test\ Project.build/Release/Test\ Project\ -\ Dynamic\ Library.build/Objects-normal/x86_64/Main.o /Users/WORK/Hise\ Projects\ Mac/Test\ Project/DspNetworks/Binaries/Source/Main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
                                (1 failure)
                                
                                ❌  /Applications/HISE-develop/hi_dsp_library/node_api/nodes/processors.h:1227:30: no member named 'reset' in 'dspTest_1_impl::instance'
                                
                                        void reset() noexcept { obj.reset(); }
                                                ^
                                
                                
                                
                                ❌  /Applications/HISE-develop/hi_dsp_library/node_api/nodes/processors.h:1192:7: no member named 'process' in 'dspTest_1_impl::instance'
                                
                                                obj.process(fd);
                                                ^
                                
                                
                                
                                ❌  /Applications/HISE-develop/hi_dsp_library/node_api/nodes/processors.h:1198:7: no member named 'processFrame' in 'dspTest_1_impl::instance'
                                
                                                obj.processFrame(fd);
                                                ^
                                
                                
                                
                                ❌  /Applications/HISE-develop/hi_dsp_library/node_api/nodes/processors.h:1198:7: no member named 'processFrame' in 'dspTest_1_impl::instance'
                                
                                                obj.processFrame(fd);
                                                ^
                                
                                
                                
                                ❌  /Applications/HISE-develop/hi_dsp_library/node_api/nodes/processors.h:1172:7: no member named 'initialise' in 'dspTest_1_impl::instance'
                                
                                                obj.initialise(n);
                                                ^
                                
                                
                                
                                ❌  /Applications/HISE-develop/hi_dsp_library/node_api/nodes/processors.h:1208:7: no member named 'handleHiseEvent' in 'dspTest_1_impl::instance'
                                
                                                obj.handleHiseEvent(e);
                                                ^
                                
                                
                                
                                ❌  fatal error: too many errors emitted, stopping now [-ferror-limit=]
                                
                                
                                Compiling finished. Cleaning up...
                                
                                [Opération terminée]
                                
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • Christoph HartC
                                  Christoph Hart
                                  last edited by

                                  Can you send me the project (just the DspNetworks subfolder)? It seems that the order of includes doesn‘t detect the inclusion of test1 in your main network.

                                  Matt_SFM 2 Replies Last reply Reply Quote 0
                                  • Matt_SFM
                                    Matt_SF @Christoph Hart
                                    last edited by Matt_SF

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • Matt_SFM
                                      Matt_SF @Christoph Hart
                                      last edited by

                                      @Christoph-Hart Here's the folder. (Don't mind the Math.expr equation, I was just messing around :beaming_face_with_smiling_eyes: )
                                      DspNetworks.zip

                                      Christoph HartC 1 Reply Last reply Reply Quote 0
                                      • BrianB
                                        Brian
                                        last edited by

                                        Thank you @Christoph-Hart & @Matt_SF ! ( Just waking up here on North American time ). I'll be on standby to download and test the fixes, super excited to see this work and try some crazy DSP experiments :)

                                        1 Reply Last reply Reply Quote 1
                                        • Christoph HartC
                                          Christoph Hart @Matt_SF
                                          last edited by

                                          @Matt_SF Thanks for the example. It also doesn't work here for a few reasons, some are trivial, some are a bit harder to fix. BTW, I noticed you're using the stk.DelayA node, this is deprecated (I removed the entire stk module). Use the jdsp.jdelay node for a interpolating delay line instead.

                                          Matt_SFM ustkU 2 Replies Last reply Reply Quote 0
                                          • Matt_SFM
                                            Matt_SF @Christoph Hart
                                            last edited by

                                            @Christoph-Hart Noted thanks ! Yes this was not meant to be anything, I was just testing something.

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

                                            24

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.4k

                                            Posts