HISE Logo Forum
    • Categories
    • Register
    • Login

    snex_shaper - argument amount mismatch...

    Scheduled Pinned Locked Moved General Questions
    12 Posts 3 Posters 401 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
      last edited by

      This is driving me nuts... :man_shrugging:
      I'm trying to develop a shaper and boum this alert is showing from start, without even writing anything more in the template code...

      Screenshot 2023-06-20 at 20.35.01.png
      Screenshot 2023-06-20 at 20.35.46.png

      I tried to add a span in the function's arguments like in a simple snex_node, but with no luck.

      So I remembered @hisefilo recently posted a shaper example (here) so I just copied/pasted it, but same thing happens...

      The shaper node isn't in any other container than the DSP one.

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

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

        @Christoph-Hart This happens as soon as you insert a snex_shaper in a project

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

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

          I think that's a side-effect of the MIR backend rewrite - I haven't enabled the MIR backend in the current state, but I had to change the function calling convention so the old JIT backend doesn't compile anymore.

          Three options:

          1. Enable the MIR backend: Change SNEX_MIR_BACKEND to 1 in hi_snex.h, but there might be a few issues (the compiler test suite succeeds at ~95% of the tests but it's not completely finished).
          2. Use another module (snex_node)
          3. Don't use SNEX but a C++ node (I'm considering ditching the SNEX compiler altogether since we have so many other options for DSP development now (Faust / C++).
          Christoph HartC ustkU 2 Replies Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @Christoph Hart
            last edited by

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

              @Christoph-Hart So I guess this acts as a negative answer for my other thread about having a snex_filter node with a curve display...

              SNEX is not here for long and ditched already, that's a shame because it is quite easy to use.

              • How to get the curve appearing on the interface? ➡ Using the magnitude function of the algorithm...

              • Is a C++ node as easy as using SNEX? ➡ It seems to, when I'll be able to get no crash...

              • Is there any templates for a C++ node? ➡ Thanks @d-healey !

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

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

                @ustk

                Is there any templates for a C++ node?

                7b681763-10d7-4588-ae48-15545de6fc2a-image.png

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

                ustkU 1 Reply Last reply Reply Quote 1
                • ustkU
                  ustk @d.healey
                  last edited by

                  @d-healey Alright so it seems to be as easy as in SNEX 👍

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

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

                    @ustk yeah it‘s basically the same API but you can use the full power of C++ and the native IDEs.

                    ustkU 1 Reply Last reply Reply Quote 1
                    • ustkU
                      ustk @Christoph Hart
                      last edited by ustk

                      @Christoph-Hart It seems that I don't get the whole picture...
                      Is it possible to test the node in real time like a snex node? Or should it be compiled first?
                      Because then it would make it, much, much more cumbersome when you just want to go through tiny changes, trials, and tests... I thought it would appear instantly in the node browser. Or did I do it wrong?

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

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

                        @ustk you need to recompile the dll project but in debug mode that should take only a few seconds (at least on my machine).

                        But you get a proper breakpoint debugger with step through and so on.

                        I find myself using the SNEX nodes just for trivial stuff and resort to the C++ node template for more complex stuff.

                        ustkU 1 Reply Last reply Reply Quote 1
                        • ustkU
                          ustk @Christoph Hart
                          last edited by

                          @Christoph-Hart Yeah that's what I was thinking about using snex for simple real time stuff. So that might worth keeping it around in the end :)

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

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

                            @ustk Yeah, I'm not throwing away 2 years of work out of spite, I just hate the sunken cost fallacy here...

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

                            17

                            Online

                            1.7k

                            Users

                            11.8k

                            Topics

                            102.4k

                            Posts