HISE Logo Forum
    • Categories
    • Register
    • Login

    What is the process for writing my own module (not scriptnode)

    Scheduled Pinned Locked Moved C++ Development
    52 Posts 11 Posters 1.6k 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.
    • O
      Orvillain @Christoph Hart
      last edited by

      @Christoph-Hart Right! That is really cool! I'll dig into this when I get some chance and see how I can leverage this kind of system for my thing.

      1 Reply Last reply Reply Quote 0
      • O
        Orvillain @Christoph Hart
        last edited by

        @Christoph-Hart I think this is going to be amazing. Been looking at the snippet, and it mostly makes sense. Being able to throw data from a custom node to the UI is exactly what I want to do.

        So ultimately, consider the title of this thread to be null and void - custom node is where it is at! I've just got to port my HISEscript over to c++ and start properly learning scriptnode.

        1 Reply Last reply Reply Quote 0
        • griffinboyG
          griffinboy @Christoph Hart
          last edited by griffinboy

          @Christoph-Hart

          Thanks, I'm already making use of the new Global Cable feature!
          It works great.

          Here we are sending the drawing straight from Hise into a c++ node for playback!

          ChazroxC ustkU LindonL Oli UllmannO ulrikU 5 Replies Last reply Reply Quote 9
          • ChazroxC
            Chazrox @griffinboy
            last edited by

            @griffinboy woah thats sick.

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

              Noice. Are you doing any kind of band limiting with the drawings to reduce aliasing?

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

                @griffinboy Coool!!! I've done this a while back using a hidden sliderpack with 1024 sliders with a drawing method and a SNEX node if I reckon well. It was working but wasn't very effective and aliasing was awful. Yours seems to be very responsive! 👏

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

                1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @griffinboy
                  last edited by

                  @griffinboy yes - very impressive - so you are going to use this to build a poly synth?

                  HISE Development for hire.
                  www.channelrobot.com

                  griffinboyG 1 Reply Last reply Reply Quote 0
                  • griffinboyG
                    griffinboy @Christoph Hart
                    last edited by griffinboy

                    @Christoph-Hart

                    no that's next. I'm either going to use the Vital or Serum method. Serum's is simpler so I might go with that. Precomputed mip maps using fir filters. Easier to program but it will use a lot of memory... Maybe I'll end up switching later down the line to a realtime FFT based mip map method like vital!

                    There is clear aliasing in the video - but it's not 'awful' that's probably because I am processing the drawing in real time using a buffer. I've got interpolation between a few different points using splines. I'm probably going to expose smoothing as a parameter for the user. This wasn't done to affect the sound of the waveform, I am just ocd about drawing shaky lines 🤷

                    Christoph HartC ustkU 2 Replies Last reply Reply Quote 1
                    • Oli UllmannO
                      Oli Ullmann @griffinboy
                      last edited by

                      @griffinboy
                      This looks great! :-)
                      Do you have any kind of hint how to realize this?

                      1 Reply Last reply Reply Quote 0
                      • ulrikU
                        ulrik @griffinboy
                        last edited by

                        @griffinboy Nice!

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

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

                          @griffinboy said in What is the process for writing my own module (not scriptnode):

                          Precomputed mip maps using fir filters. Easier to program but it will use a lot of memory...

                          Yup, that's what I'm doing with the wavetable synthesiser module too. Sounds good enough for me.

                          griffinboyG 2 Replies Last reply Reply Quote 1
                          • griffinboyG
                            griffinboy @Christoph Hart
                            last edited by griffinboy

                            @Christoph-Hart

                            That's good to know.
                            Doesn't it use a lot of memory? You'd have to store maps for each wavetable frame right, for various octaves? 😬
                            Did you find a way around this or is that just the cost of precomputation?

                            Vital gets around the memory issue by creating mip maps in real time. You probably already know, but it stores waveforms in the freq domain, silencing aliasing bins, and then inverse fft. Super nice, but the optimization sounds far more challenging since now the burden is on the cpu for efficient realtime fft.

                            1 Reply Last reply Reply Quote 0
                            • griffinboyG
                              griffinboy @Lindon
                              last edited by griffinboy

                              @Lindon
                              @Oli-Ullmann

                              This is potentially for a commercial project,
                              However if my the client says it's okay, I'll share how to do this.

                              It's about time for a new c++ node tutorial I think...

                              Oli UllmannO 1 Reply Last reply Reply Quote 3
                              • Oli UllmannO
                                Oli Ullmann @griffinboy
                                last edited by

                                @griffinboy
                                I'm keeping my fingers crossed for the project! :-)
                                But yes - a new C++ tutorial would be great! :-)

                                Christoph HartC 1 Reply Last reply Reply Quote 2
                                • Christoph HartC
                                  Christoph Hart @Oli Ullmann
                                  last edited by

                                  Doesn't it use a lot of memory?

                                  Less than samples lol. Something like 50-100MB per wavetable is completely neglible considering the fact that people are raw-dogging their uncompressed filmstrips into the system memory without hesitation.

                                  griffinboyG 1 Reply Last reply Reply Quote 2
                                  • griffinboyG
                                    griffinboy @Christoph Hart
                                    last edited by

                                    @Christoph-Hart

                                    Good point

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

                                      I think a third party node collection (like we did with LAF), would be very useful.

                                      develop Branch / XCode 13.1
                                      macOS Monterey / M1 Max

                                      griffinboyG 1 Reply Last reply Reply Quote 1
                                      • griffinboyG
                                        griffinboy @orange
                                        last edited by griffinboy

                                        @orange

                                        I've been wanting to.
                                        But the interface for 3rd party nodes is still a bit shaky.
                                        For instance I share things on the forum, but there is setup required for each of the nodes, and these are simple nodes.

                                        If we could get a Hise feature that could allow the safe importing of nodes into a project that would be neat. At the moment you can break nodes if you drag them into a project and try to compile them, you need to actually go through the process of using the create c++ode feature, and then compile (in order that hise creates all the correct files behind the scenes) and then you replace the node code with the external node...

                                        Also any nodes (such as my recent one here) that uses global cables, will only work in the project where the cables exist exactly the same way, because the c++ code inside the node n references the hise cables directly. We don't have agnostic input output ports for data in the nodes, excepting external data.

                                        Maybe if we could pass data through external data that would provide a more general interface... I don't know.

                                        But as it stands it's kind of difficult to share nodes because of these things. Although a collection of examples would probably be useful nonetheless.

                                        Christoph HartC HISEnbergH 2 Replies Last reply Reply Quote 1
                                        • Christoph HartC
                                          Christoph Hart @griffinboy
                                          last edited by

                                          At the moment you can break nodes if you drag them into a project and try to compile them, you need to actually go through the process of using the create c++ode feature, and then compile (in order that hise creates all the correct files behind the scenes) and then you replace the node code with the external node...

                                          The only thing that is needed is the node_properties.json file in the Third party node folder - if you copy that file (or manually merge the JSON objects) you can just paste in the files.

                                          Also any nodes (such as my recent one here) that uses global cables, will only work in the project where the cables exist exactly the same way,

                                          The global cables are identified through their hashed ID (that's what that boilerplate code generator is doing) so if you use the same cable names they will work across projects.

                                          griffinboyG 1 Reply Last reply Reply Quote 1
                                          • griffinboyG
                                            griffinboy @Christoph Hart
                                            last edited by

                                            @Christoph-Hart

                                            Ah so I was being presumptive!
                                            Thanks for clearing this up.

                                            I guess the only manual things would be to make sure the JSON is up to date, and with GCs, making sure that the 'cable_manager_t' that we subclass the node from is aligned with the users project.

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

                                            33

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            102.1k

                                            Posts